libcanberra.spec revision 20885
13598N/A#
13598N/A# spec file for package libcanberra
13598N/A#
13598N/A# includes module(s): libcanberra
13598N/A#
13598N/A# Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
13598N/A# This file and all modifications and additions to the pristine
16714N/A# package are under the same license as the package itself.
13598N/A#
17178N/A%define owner yippi
17178N/A# bugdb: bugzilla.freedesktop.org
17178N/A#
13611N/A
13598N/A%define OSR 9780:0.6
13598N/A
13598N/AName: libcanberra
13611N/ALicense: LGPL v2.1
13598N/AGroup: Libraries/Multimedia
17018N/AVersion: 0.28
13611N/ADistribution: Java Desktop System
13598N/AVendor: 0pointer.de
16714N/ASummary: Event Sound API Using XDG Sound Theming Specification
13598N/ASource: http://0pointer.de/lennart/projects/libcanberra/libcanberra-%{version}.tar.gz
14049N/A# This patch is needed until autoconf is updated to 2.63 and libtool to 2.2.
14049N/A#owner:yippi date:2008-09-02 type:branding
13611N/APatch1: libcanberra-01-solaris.diff
13611N/A#owner:yippi date:2010-09-24 type:bug doo:16974
13598N/APatch2: libcanberra-02-device.diff
13598N/AURL: http://0pointer.de/blog/projects/sixfold-announcement.html
13598N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
13598N/A%include default-depend.inc
13598N/A
14049N/ARequires: SUNWgnome-config
13598N/ABuildRequires: SUNWgnome-config-devel
13598N/A
13598N/A%package root
13598N/ASummary: %{summary} - / filesystem
13598N/ASUNW_BaseDir: /
13598N/A
13598N/A%package devel
13598N/ASummary: %{summary} - development files
13598N/ASUNW_BaseDir: %{_basedir}
13598N/ARequires: %name
13598N/A
13598N/A%prep
13598N/A%setup -q -n %{name}-%{version}
13598N/A%patch1 -p1
13598N/A%patch2 -p1
13598N/A
13598N/A%build
13598N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
13598N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
13598N/A CPUS=1
13598N/Afi
13598N/A
13598N/Aexport LDFLAGS="%{_ldflags}"
13598N/A
17018N/Aglib-gettextize -f
17018N/Aaclocal $ACLOCAL_FLAGS -I ./m4
17018N/Alibtoolize --force --copy
16714N/Aautoheader
16714N/Aautoconf
14049N/Aautomake -a -c -f
14049N/A
14049N/A./configure --prefix=%{_prefix} --mandir=%{_mandir} \
13611N/A --libdir=%{_libdir} --bindir=%{_bindir} \
13611N/A --libexecdir=%{_libexecdir} \
13611N/A --sysconfdir=%{_sysconfdir} \
13611N/A --enable-gtk \
13598N/A --disable-static
13598N/A
13598N/Amake -j$CPUS
%install
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
%if %build_l10n
%else
# REMOVE l10n FILES
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%changelog
* Wed Jul 06 2011 - brian.cameron@oracle.com
- Bump to 0.28.
* Mon Oct 04 2010 - brian.cameron@oracle.com
- Bump to 0.26.
* Tue Sep 14 2010 - brian.cameron@oracle.com
- Add patch libcanberra-02-device.diff so that libcanberra respects the
device setting from gnome-volume-control. This adds a dependency on
GConf (SUNWgnome-config).
* Mon Jun 14 2010 - brian.cameron@oracle.com
- Bump to 0.25.
* Tue Apr 02 2010 - christian.kelly@oracle.com
- Set LDFLAGS, otherwise libs in /usr/lib are 64bit versions.
* Mon Apr 19 2010 - brian.cameron@oracle.com
- Bump to 0.24.
* Mon Mar 01 2010 - brian.cameron@sun.com
- Bump to 0.23.
* Mon Oct 19 2009 - brian.cameron@sun.com
- Bump to 0.22.
* Thu Oct 15 2009 - brian.cameron@sun.com
- Bump to 0.21.
* Wed Oct 14 2009 - brian.cameron@sun.com
- Bump to 0.20.
* Wed Oct 14 2009 - brian.cameron@sun.com
- Bump to 0.19.
* Mon Sep 21 2009 - brian.cameron@sun.com
- Bump to 0.18.
* Sun Sep 13 2009 - brian.cameron@sun.com
- Bump to 0.17.
* Thu Aug 27 2009 - brian.cameron@sun.com
- Bump to 0.16.
* Wed Aug 05 2009 - brian.cameron@sun.com
- Bump to 0.15.
* Fri Jul 24 2009 - ke.wang@sun.com
- Split from SUNWlibcanberra.spec to add 64-bit support