1 # 2 # spec file for package SUNWgnome-audio 3 # 4 # includes module(s): gnome-audio 5 # 6 # Copyright 2008 Sun Microsystems, Inc. 7 # This file and all modifications and additions to the pristine 8 # package are under the same license as the package itself. 9 # 10 %define owner yippi 11 # 12 %include Solaris.inc 13 %use gnome_audio = gnome-audio.spec 14 15 %ifarch amd64 sparcv9 16 %include arch64.inc 17 %use audiofile_64 = audiofile.spec 18 %use esound_64 = esound.spec 19 %endif 20 21 %include base.inc 22 %use audiofile = audiofile.spec 23 %use esound = esound.spec 24 25 Name: SUNWgnome-audio 26 Summary: GNOME audio support framework 27 Version: %{default_pkg_version} 28 Source1: %{name}-manpages-0.1.tar.gz 29 SUNW_BaseDir: %{_basedir} 30 SUNW_Copyright: %{name}.copyright 31 BuildRoot: %{_tmppath}/%{name}-%{version}-build 32 33 %include default-depend.inc 34 BuildRequires: SUNWgnome-common-devel 35 BuildRequires: SUNWaudh 36 Requires: SUNWlibms 37 38 %package root 39 Summary: %{summary} - / filesystem 40 SUNW_BaseDir: / 41 %include default-depend.inc 42 43 %package devel 44 Summary: %{summary} - development files 45 SUNW_BaseDir: %{_basedir} 46 %include default-depend.inc 47 48 %prep 49 rm -rf %name-%version 50 mkdir %name-%version 51 52 %gnome_audio.prep -d %name-%version 53 54 %ifarch amd64 sparcv9 55 mkdir %name-%version/%_arch64 56 %audiofile_64.prep -d %name-%version/%_arch64 57 %esound_64.prep -d %name-%version/%_arch64 58 %endif 59 60 mkdir %name-%version/%base_arch 61 %audiofile.prep -d %name-%version/%base_arch 62 %esound.prep -d %name-%version/%base_arch 63 64 cd %name-%version 65 gzcat %SOURCE1 | tar xf - 66 67 %build 68 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 69 if test "x$CPUS" = "x" -o $CPUS = 0; then 70 CPUS=1 71 fi 72 export ACLOCAL_FLAGS="-I `pwd`/%name-%version/%base_arch/audiofile-%{audiofile.version}" 73 74 %gnome_audio.build -d %name-%version 75 76 %ifarch amd64 sparcv9 77 export PKG_CONFIG_PATH=../audiofile-%{audiofile.version} 78 export REAL_AUDIOFILE_CFLAGS=" " 79 export REAL_AUDIOFILE_LIBS="-L%{_libdir}/%{_arch64} -R%{_libdir}/%{_arch64} -laudiofile -lm" 80 %audiofile_64.build -d %name-%version/%_arch64 81 %esound_64.build -d %name-%version/%_arch64 82 %endif 83 84 export PKG_CONFIG_PATH=../audiofile-%{audiofile.version} 85 export REAL_AUDIOFILE_CFLAGS=" " 86 export REAL_AUDIOFILE_LIBS="-laudiofile -lm" 87 %audiofile.build -d %name-%version/%base_arch 88 %esound.build -d %name-%version/%base_arch 89 90 %install 91 rm -rf $RPM_BUILD_ROOT 92 93 %gnome_audio.install -d %name-%version 94 95 %ifarch amd64 sparcv9 96 %audiofile_64.install -d %name-%version/%_arch64 97 %esound_64.install -d %name-%version/%_arch64 98 99 # leave only esd-config 100 rm $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/{sfconvert,sfinfo,esd[a-z]}* 101 rm $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/lib*a 102 rm $RPM_BUILD_ROOT%{_prefix}/lib/esd 103 %endif 104 105 %audiofile.install -d %name-%version/%base_arch 106 %esound.install -d %name-%version/%base_arch 107 108 rm $RPM_BUILD_ROOT%{_libdir}/lib*a 109 rm $RPM_BUILD_ROOT%{_bindir}/{sfconvert,sfinfo,esdfilt,esdloop} 110 111 rm -r $RPM_BUILD_ROOT%{_mandir} 112 cd %name-%version/sun-manpages 113 make install DESTDIR=$RPM_BUILD_ROOT 114 115 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 116 117 %clean 118 rm -rf $RPM_BUILD_ROOT 119 120 %files 121 %defattr (-, root, bin) 122 %dir %attr (0755, root, bin) %{_bindir} 123 # Intentionally omitted essddsp, esdfilt and esdloop because not in 124 # 2.0.4 SUNWgnome-audio. 125 %{_bindir}/esdcat 126 %{_bindir}/esdctl 127 %{_bindir}/esdmon 128 %{_bindir}/esdplay 129 %{_bindir}/esdrec 130 %{_bindir}/esdsample 131 %dir %attr (0755, root, bin) %{_libdir} 132 %{_libdir}/esd 133 %ifarch amd64 sparcv9 134 %{_libdir}/%{_arch64}/lib*.so* 135 %endif 136 %{_libexecdir}/lib*.so* 137 %dir %attr (0755, root, sys) %{_datadir} 138 %doc %{base_arch}/audiofile-%{audiofile.version}/AUTHORS 139 %doc %{base_arch}/audiofile-%{audiofile.version}/README 140 %doc(bzip2) %{base_arch}/audiofile-%{audiofile.version}/COPYING 141 %doc(bzip2) %{base_arch}/audiofile-%{audiofile.version}/COPYING.GPL 142 %doc(bzip2) %{base_arch}/audiofile-%{audiofile.version}/ChangeLog 143 %doc(bzip2) %{base_arch}/audiofile-%{audiofile.version}/NEWS 144 %doc %{base_arch}/esound-%{esound.version}/AUTHORS 145 %doc %{base_arch}/esound-%{esound.version}/README 146 %doc(bzip2) %{base_arch}/esound-%{esound.version}/COPYING.LIB 147 %doc(bzip2) %{base_arch}/esound-%{esound.version}/ChangeLog 148 %doc(bzip2) %{base_arch}/esound-%{esound.version}/NEWS 149 %doc gnome-audio-%{gnome_audio.version}/README 150 %doc(bzip2) gnome-audio-%{gnome_audio.version}/COPYING 151 %doc(bzip2) gnome-audio-%{gnome_audio.version}/ChangeLog 152 %dir %attr (0755, root, other) %{_datadir}/doc 153 %{_datadir}/sounds/*.wav 154 %{_datadir}/sounds/gtk-events/*.wav 155 %{_datadir}/sounds/panel/*.wav 156 %dir %attr(0755, root, bin) %{_mandir} 157 %dir %attr(0755, root, bin) %{_mandir}/man1 158 %{_mandir}/man1/* 159 160 %files root 161 %defattr (0644, root, sys) 162 %attr (0755, root, sys) %dir %{_sysconfdir} 163 %{_sysconfdir}/* 164 165 %files devel 166 %defattr (-, root, bin) 167 %dir %attr (0755, root, bin) %{_bindir} 168 %{_bindir}/audiofile-config 169 %{_bindir}/esd-config 170 %ifarch amd64 sparcv9 171 %dir %attr (0755, root, bin) %{_bindir}/%{_arch64} 172 %{_bindir}/%{_arch64}/esd-config 173 %{_bindir}/%{_arch64}/audiofile-config 174 %endif 175 %dir %attr (0755, root, bin) %{_libdir} 176 %dir %attr (0755, root, other) %{_libdir}/pkgconfig 177 %{_libdir}/pkgconfig/* 178 %ifarch amd64 sparcv9 179 %dir %attr (0755, root, bin) %{_libdir}/%{_arch64} 180 %dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig 181 %{_libdir}/%{_arch64}/pkgconfig/* 182 %endif 183 %dir %attr (0755, root, bin) %{_includedir} 184 %{_includedir}/* 185 %dir %attr (0755, root, sys) %{_datadir} 186 %dir %attr (0755, root, other) %{_datadir}/aclocal 187 %{_datadir}/aclocal/* 188 %dir %attr(0755, root, bin) %{_mandir} 189 %dir %attr(0755, root, bin) %{_mandir}/man3 190 %{_mandir}/man3/* 191 192 %changelog 193 * Sun Sep 14 2008 - brian.cameron@sun.com 194 - Add new copyright files. 195 * Thu Mar 27 2008 - brian.cameron@sun.com 196 - Add SUNW_Copyright. 197 * Wed Apr 4 2007 - laca@sun.com 198 - convert to new style multi-isa build 199 * Fri Feb 23 2007 - dougs@truemail.co.th 200 - PKG_CONFIG_PATH64 should use _pkg_config_path64 201 * Mon Feb 19 2007 - laca@sun.com 202 - move esound and audiofile into their own spec files 203 - update for 64-bit audiofile and esound libs 204 * Tue Nov 28 2006 - damien.carbery@sun.com 205 - Change defattr in root package to 0644 to fix 6497737. 206 * Tue Sep 12 2006 - Matt.Keenan@sun.com 207 - Add back "rm" of _mandir, as needed 208 * Fri Sep 08 2006 - Matt.Keenan@sun.com 209 - Remove "rm" of _mandir during %install 210 * Fri Sep 01 2006 - Matt.Keenan@sun.com 211 - New Manpage tarball 212 * Fri Jul 21 2006 - damien.carbery@sun.com 213 - Bump audiofile to 0.2.6. 214 * Sun Jun 11 2006 - laca@sun.com 215 - change group from other to bin/sys 216 * Tue May 09 2006 - laca@sun.com 217 - merge -share pkg(s) into the base pkg(s) 218 * Wed Dec 21 2005 - damien.carbery@sun.com 219 - Redo patch 1. Remove patch 2 (pkgconfig) as it was undoing patch 1!! 220 * Tue Dec 20 2005 - damien.carbery@sun.com 221 - Bump esound to 0.2.36. 222 * Fri Sep 09 2005 - <laca@sun.com> 223 - remove unpackaged files 224 * Wed Jun 15 2005 - laca@sun.com 225 - add patch to make esound work with recent pkgconfig 226 - add libtoolize so that it uses the newer libtool in the CBE 227 * Sat Oct 02 2004 - laca@sun.com 228 - added %pkgbuild_postprocess 229 * Mon Aug 30 2004 - shirley.woo@sun.com 230 - Bug 5091588 : sman3/4 files should be in a separate devel package 231 * Wed Aug 18 2004 - damien.carbery@sun.com 232 - Change manpage perms for Solaris integration. 233 * Tue Jun 22 2004 - shirley.woo@sun.com 234 - changed install location to /usr/lib and /usr/bin 235 * Thu May 27 2004 - brian.cameron 236 - added --with-esd-dir option to configure so esd gets installed 237 to libexec. 238 * Wed May 19 2004 - brian.cameron@sun.com 239 - Added missing man pages. 240 * Fri May 07 2004 - brian.cameron@sun.com 241 - Add esound patch1 to fix esd-config to have correct values. 242 Now call aclocal/autoconf for esound so patch takes effect. 243 * Thu May 06 2004 - brian.cameron@sun.com 244 - added missing *.m4 and *-config files to packaging. 245 * Thu Feb 26 2004 - niall.power@sun.com 246 - add missing -devel pkg 247 * Thu Feb 26 2004 - laca@sun.com 248 - fix audiofile dependency in esound 249