1 # |
1 # |
2 # spec file for package SUNWgnome-audio |
2 # spec file for package SUNWgnome-audio |
3 # |
3 # |
4 # includes module(s): gnome-audio |
4 # includes module(s): gnome-audio |
5 # |
5 # |
6 # Copyright 2008 Sun Microsystems, Inc. |
6 # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. |
7 # This file and all modifications and additions to the pristine |
7 # This file and all modifications and additions to the pristine |
8 # package are under the same license as the package itself. |
8 # package are under the same license as the package itself. |
9 # |
9 # |
10 %define owner yippi |
10 %define owner yippi |
11 # |
11 # |
12 %include Solaris.inc |
12 %include Solaris.inc |
13 |
13 |
14 %ifarch amd64 sparcv9 |
14 %ifarch amd64 sparcv9 |
15 %include arch64.inc |
15 %include arch64.inc |
16 %use audiofile_64 = audiofile.spec |
16 %use audiofile_64 = audiofile.spec |
17 %use esound_64 = esound.spec |
|
18 %endif |
17 %endif |
19 |
18 |
20 %include base.inc |
19 %include base.inc |
21 %use audiofile = audiofile.spec |
20 %use audiofile = audiofile.spec |
22 %use esound = esound.spec |
|
23 |
21 |
24 Name: SUNWgnome-audio |
22 Name: SUNWgnome-audio |
25 IPS_package_name: gnome/gnome-audio |
23 IPS_package_name: gnome/gnome-audio |
26 Meta(info.classification): %{classification_prefix}:System/Multimedia Libraries |
24 Meta(info.classification): %{classification_prefix}:System/Multimedia Libraries |
27 Summary: GNOME audio support framework |
25 Summary: GNOME audio support framework |
73 CPUS=1 |
69 CPUS=1 |
74 fi |
70 fi |
75 export ACLOCAL_FLAGS="-I `pwd`/%name-%version/%base_arch/audiofile-%{audiofile.version}" |
71 export ACLOCAL_FLAGS="-I `pwd`/%name-%version/%base_arch/audiofile-%{audiofile.version}" |
76 |
72 |
77 %ifarch amd64 sparcv9 |
73 %ifarch amd64 sparcv9 |
78 export PKG_CONFIG_PATH=../audiofile-%{audiofile.version} |
|
79 export REAL_AUDIOFILE_CFLAGS=" " |
74 export REAL_AUDIOFILE_CFLAGS=" " |
80 export REAL_AUDIOFILE_LIBS="-L%{_libdir}/%{_arch64} -R%{_libdir}/%{_arch64} -laudiofile -lm" |
75 export REAL_AUDIOFILE_LIBS="-L%{_libdir}/%{_arch64} -R%{_libdir}/%{_arch64} -laudiofile -lm" |
81 %audiofile_64.build -d %name-%version/%_arch64 |
76 %audiofile_64.build -d %name-%version/%_arch64 |
82 export PKG_CONFIG_TOP_BUILD_DIR=%{_builddir}/%name-%version/%{_arch64}/esound-%{esound_64.version} |
77 %endif |
83 %esound_64.build -d %name-%version/%_arch64 |
78 |
84 unset PKG_CONFIG_TOP_BUILD_DIR |
|
85 %endif |
|
86 |
|
87 export PKG_CONFIG_PATH=../audiofile-%{audiofile.version} |
|
88 export REAL_AUDIOFILE_CFLAGS=" " |
79 export REAL_AUDIOFILE_CFLAGS=" " |
89 export REAL_AUDIOFILE_LIBS="-laudiofile -lm" |
80 export REAL_AUDIOFILE_LIBS="-laudiofile -lm" |
90 %audiofile.build -d %name-%version/%base_arch |
81 %audiofile.build -d %name-%version/%base_arch |
91 export PKG_CONFIG_TOP_BUILD_DIR=%{_builddir}/%name-%version/%{base_arch}/esound-%{esound.version} |
|
92 %esound.build -d %name-%version/%base_arch |
|
93 unset PKG_CONFIG_TOP_BUILD_DIR |
|
94 |
82 |
95 %install |
83 %install |
96 rm -rf $RPM_BUILD_ROOT |
84 rm -rf $RPM_BUILD_ROOT |
97 |
85 |
98 %ifarch amd64 sparcv9 |
86 %ifarch amd64 sparcv9 |
99 %audiofile_64.install -d %name-%version/%_arch64 |
87 %audiofile_64.install -d %name-%version/%_arch64 |
100 %esound_64.install -d %name-%version/%_arch64 |
|
101 |
|
102 # leave only esd-config |
|
103 rm $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/{sfconvert,sfinfo,esd[a-z]}* |
|
104 rm $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/lib*a |
|
105 rm $RPM_BUILD_ROOT%{_prefix}/lib/esd |
|
106 %endif |
88 %endif |
107 |
89 |
108 %audiofile.install -d %name-%version/%base_arch |
90 %audiofile.install -d %name-%version/%base_arch |
109 %esound.install -d %name-%version/%base_arch |
91 |
110 |
92 rm $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/{sfconvert,sfinfo} |
111 rm $RPM_BUILD_ROOT%{_libdir}/lib*a |
93 rm $RPM_BUILD_ROOT%{_bindir}/{sfconvert,sfinfo} |
112 rm $RPM_BUILD_ROOT%{_bindir}/{sfconvert,sfinfo,esdfilt,esdloop} |
94 find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.a" -exec rm -f {} ';' |
113 |
95 find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" -exec rm -f {} ';' |
114 rm -r $RPM_BUILD_ROOT%{_mandir} |
96 |
115 cd %name-%version/sun-manpages |
97 cd %name-%version/sun-manpages |
116 make install DESTDIR=$RPM_BUILD_ROOT |
98 make install DESTDIR=$RPM_BUILD_ROOT |
117 |
99 |
118 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
100 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
119 |
101 |
120 %clean |
102 %clean |
121 rm -rf $RPM_BUILD_ROOT |
103 rm -rf $RPM_BUILD_ROOT |
122 |
104 |
123 %files |
105 %files |
124 %defattr (-, root, bin) |
106 %defattr (-, root, bin) |
125 %dir %attr (0755, root, bin) %{_bindir} |
|
126 # Intentionally omitted essddsp, esdfilt and esdloop because not in |
|
127 # 2.0.4 SUNWgnome-audio. |
|
128 %{_bindir}/esdcat |
|
129 %{_bindir}/esdctl |
|
130 %{_bindir}/esdmon |
|
131 %{_bindir}/esdplay |
|
132 %{_bindir}/esdrec |
|
133 %{_bindir}/esdsample |
|
134 %dir %attr (0755, root, bin) %{_libdir} |
107 %dir %attr (0755, root, bin) %{_libdir} |
135 %{_libdir}/esd |
|
136 %ifarch amd64 sparcv9 |
108 %ifarch amd64 sparcv9 |
137 %{_libdir}/%{_arch64}/lib*.so* |
109 %{_libdir}/%{_arch64}/lib*.so* |
138 %endif |
110 %endif |
139 %{_libexecdir}/lib*.so* |
111 %{_libexecdir}/lib*.so* |
140 %dir %attr (0755, root, sys) %{_datadir} |
112 %dir %attr (0755, root, sys) %{_datadir} |
142 %doc %{base_arch}/audiofile-%{audiofile.version}/README |
114 %doc %{base_arch}/audiofile-%{audiofile.version}/README |
143 %doc(bzip2) %{base_arch}/audiofile-%{audiofile.version}/COPYING |
115 %doc(bzip2) %{base_arch}/audiofile-%{audiofile.version}/COPYING |
144 %doc(bzip2) %{base_arch}/audiofile-%{audiofile.version}/COPYING.GPL |
116 %doc(bzip2) %{base_arch}/audiofile-%{audiofile.version}/COPYING.GPL |
145 %doc(bzip2) %{base_arch}/audiofile-%{audiofile.version}/ChangeLog |
117 %doc(bzip2) %{base_arch}/audiofile-%{audiofile.version}/ChangeLog |
146 %doc(bzip2) %{base_arch}/audiofile-%{audiofile.version}/NEWS |
118 %doc(bzip2) %{base_arch}/audiofile-%{audiofile.version}/NEWS |
147 %doc %{base_arch}/esound-%{esound.version}/AUTHORS |
|
148 %doc %{base_arch}/esound-%{esound.version}/README |
|
149 %doc(bzip2) %{base_arch}/esound-%{esound.version}/COPYING.LIB |
|
150 %doc(bzip2) %{base_arch}/esound-%{esound.version}/ChangeLog |
|
151 %doc(bzip2) %{base_arch}/esound-%{esound.version}/NEWS |
|
152 %dir %attr (0755, root, other) %{_datadir}/doc |
119 %dir %attr (0755, root, other) %{_datadir}/doc |
153 %dir %attr(0755, root, bin) %{_mandir} |
120 %dir %attr(0755, root, bin) %{_mandir} |
154 %dir %attr(0755, root, bin) %{_mandir}/man1 |
121 %dir %attr(0755, root, bin) %{_mandir}/man1 |
155 %{_mandir}/man1/* |
122 %{_mandir}/man1/* |
156 |
123 |
157 %files root |
|
158 %defattr (0644, root, sys) |
|
159 %attr (0755, root, sys) %dir %{_sysconfdir} |
|
160 %{_sysconfdir}/* |
|
161 |
|
162 %files devel |
124 %files devel |
163 %defattr (-, root, bin) |
125 %defattr (-, root, bin) |
164 %dir %attr (0755, root, bin) %{_bindir} |
126 %dir %attr (0755, root, bin) %{_bindir} |
165 %{_bindir}/audiofile-config |
127 %{_bindir}/audiofile-config |
166 %{_bindir}/esd-config |
|
167 %ifarch amd64 sparcv9 |
128 %ifarch amd64 sparcv9 |
168 %dir %attr (0755, root, bin) %{_bindir}/%{_arch64} |
129 %dir %attr (0755, root, bin) %{_bindir}/%{_arch64} |
169 %{_bindir}/%{_arch64}/esd-config |
|
170 %{_bindir}/%{_arch64}/audiofile-config |
130 %{_bindir}/%{_arch64}/audiofile-config |
171 %endif |
131 %endif |
172 %dir %attr (0755, root, bin) %{_libdir} |
132 %dir %attr (0755, root, bin) %{_libdir} |
173 %dir %attr (0755, root, other) %{_libdir}/pkgconfig |
133 %dir %attr (0755, root, other) %{_libdir}/pkgconfig |
174 %{_libdir}/pkgconfig/* |
134 %{_libdir}/pkgconfig/* |
185 %dir %attr(0755, root, bin) %{_mandir} |
145 %dir %attr(0755, root, bin) %{_mandir} |
186 %dir %attr(0755, root, bin) %{_mandir}/man3 |
146 %dir %attr(0755, root, bin) %{_mandir}/man3 |
187 %{_mandir}/man3/* |
147 %{_mandir}/man3/* |
188 |
148 |
189 %changelog |
149 %changelog |
|
150 * Thu Dec 02 2010 - [email protected] |
|
151 - Remove ESounD. |
190 * Wed Jun 02 2009 - [email protected] |
152 * Wed Jun 02 2009 - [email protected] |
191 - Use PKG_CONFIG_TOP_BUILD_DIR environment variable when building esound, |
153 - Use PKG_CONFIG_TOP_BUILD_DIR environment variable when building esound, |
192 so that pkg-config expands $(top_builddir), otherwise audiofile pkg-config |
154 so that pkg-config expands $(top_builddir), otherwise audiofile pkg-config |
193 variables do not expand nicely and the build fails. |
155 variables do not expand nicely and the build fails. |
194 * Sun Sep 14 2008 - [email protected] |
156 * Sun Sep 14 2008 - [email protected] |