libcanberra.spec revision 16961
16913N/A#
16913N/A# spec file for package libcanberra
16913N/A#
16913N/A# includes module(s): libcanberra
16913N/A#
16913N/A# Copyright 2009 Sun Microsystems, Inc.
16913N/A# This file and all modifications and additions to the pristine
16913N/A# package are under the same license as the package itself.
16913N/A#
16913N/A# Owner: yippi
16913N/A# bugdb: bugzilla.freedesktop.org
16913N/A#
16913N/A
16913N/AName: libcanberra
16913N/ASummary: Event Sound API Using XDG Sound Theming Specification
16961N/AVersion: 0.15
16913N/ALicense: LGPL v2.1
16913N/AURL: http://0pointer.de/blog/projects/sixfold-announcement.html
16913N/ASource: http://0pointer.de/lennart/projects/libcanberra/libcanberra-%{version}.tar.gz
16913N/A# This patch is needed until autoconf is updated to 2.63 and libtool to 2.2.
16913N/A#owner:yippi date:2008-09-02 type:branding
16913N/APatch1: libcanberra-01-solaris.diff
16913N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
16913N/A%include default-depend.inc
16913N/A
16913N/A%package root
16913N/ASummary: %{summary} - / filesystem
16913N/ASUNW_BaseDir: /
16913N/A
16913N/A%package devel
16913N/ASummary: %{summary} - development files
16913N/ASUNW_BaseDir: %{_basedir}
16913N/ARequires: %name
16913N/A
16913N/A%prep
16913N/A%setup -q -n %{name}-%{version}
16913N/A%patch1 -p1
16913N/A
16913N/A%build
16913N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
16913N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
16913N/A CPUS=1
16913N/Afi
16913N/A
16913N/Aglib-gettextize -f
16961N/Aaclocal $ACLOCAL_FLAGS -I ./m4
16913N/Aautoheader
16913N/Aautoconf
16913N/Aautomake -a -c -f
16913N/A
16913N/Aexport CFLAGS="%optflags"
16913N/Aexport LDFLAGS="%_ldflags"
16913N/A
16913N/A./configure --prefix=%{_prefix} --mandir=%{_mandir} \
16913N/A --libdir=%{_libdir} --bindir=%{_bindir} \
16913N/A --libexecdir=%{_libexecdir} \
16913N/A --sysconfdir=%{_sysconfdir} \
16913N/A --disable-static
16913N/A
16913N/Amake -j$CPUS
16913N/A
16913N/A%install
16913N/Amake install DESTDIR=$RPM_BUILD_ROOT
16913N/Afind $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
16913N/Afind $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
16913N/A
16913N/A%if %build_l10n
16913N/A%else
16913N/A# REMOVE l10n FILES
16913N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/locale
16913N/A%endif
16913N/A
16913N/A%clean
16913N/Arm -rf $RPM_BUILD_ROOT
16913N/A
16913N/A%changelog
16961N/A* Wed Aug 05 2009 - brian.cameron@sun.com
16961N/A- Bump to 0.15.
16913N/A* Fri Jul 24 2009 - ke.wang@sun.com
16913N/A- Split from SUNWlibcanberra.spec to add 64-bit support