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