author | Jon Tibble <meths@btinternet.com> |
Sat, 06 Oct 2012 16:11:50 +0100 | |
branch | s11express-2010-11 |
changeset 22109 | db10202d5f6d |
parent 20090 | 437564f99ab5 |
child 20343 | 4198ebdad7ef |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWogg-vorbis.spec |
|
3 |
# |
|
4 |
# includes module(s): libogg, libvorbis |
|
5 |
# |
|
12008 | 6 |
# Copyright (c) 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 |
# |
|
16434 | 10 |
%define owner yippi |
9397 | 11 |
# |
12 |
%include Solaris.inc |
|
12252 | 13 |
%ifarch amd64 sparcv9 |
14 |
%include arch64.inc |
|
15 |
%use libogg64 = libogg.spec |
|
16 |
%use libvorbis64 = libvorbis.spec |
|
17 |
%endif |
|
18 |
||
19 |
%include base.inc |
|
9397 | 20 |
%use libogg = libogg.spec |
21 |
%use libvorbis = libvorbis.spec |
|
22 |
||
23 |
Name: SUNWogg-vorbis |
|
17937
664c0536875a
Added tags IPS_package_name and Meta(info.consolidation)
davelam
parents:
17902
diff
changeset
|
24 |
IPS_package_name: codec/ogg-vorbis |
664c0536875a
Added tags IPS_package_name and Meta(info.consolidation)
davelam
parents:
17902
diff
changeset
|
25 |
Meta(info.classification): %{classification_prefix}:System/Multimedia Libraries |
9397 | 26 |
Summary: Ogg bitstream and Vorbis audio codec libraries |
27 |
Version: %{default_pkg_version} |
|
28 |
Source: %{name}-manpages-0.1.tar.gz |
|
29 |
SUNW_BaseDir: %{_basedir} |
|
12008 | 30 |
SUNW_Copyright: %{name}.copyright |
9397 | 31 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
32 |
||
33 |
%include default-depend.inc |
|
34 |
BuildRequires: SUNWgnome-common-devel |
|
17276 | 35 |
BuildRequires: SUNWbison |
20090 | 36 |
BuildRequires: SUNWPython26 |
9397 | 37 |
Requires: SUNWlibms |
38 |
||
39 |
%package devel |
|
40 |
Summary: %{summary} - development files |
|
41 |
SUNW_BaseDir: %{_basedir} |
|
42 |
%include default-depend.inc |
|
43 |
||
44 |
%prep |
|
45 |
rm -rf %name-%version |
|
46 |
mkdir %name-%version |
|
12252 | 47 |
|
48 |
%ifarch amd64 sparcv9 |
|
49 |
mkdir %name-%version/%_arch64 |
|
50 |
%libogg64.prep -d %name-%version/%_arch64 |
|
51 |
%libvorbis64.prep -d %name-%version/%_arch64 |
|
52 |
%endif |
|
53 |
||
54 |
mkdir %name-%version/%{base_arch} |
|
55 |
%libogg.prep -d %name-%version/%{base_arch} |
|
56 |
%libvorbis.prep -d %name-%version/%{base_arch} |
|
57 |
||
9397 | 58 |
cd %{_builddir}/%name-%version |
59 |
gzcat %SOURCE0 | tar xf - |
|
60 |
||
61 |
%build |
|
12252 | 62 |
%ifarch amd64 sparcv9 |
17844 | 63 |
export PKG_CONFIG_PATH="/usr/lib/%{_arch64}/pkgconfig:%{_pkg_config_path}" |
12252 | 64 |
%libogg64.build -d %name-%version/%_arch64 |
17844 | 65 |
|
66 |
export PKG_CONFIG_PATH="%{_builddir}/%name-%version/%{_arch64}/libogg-%{libogg.version}:/usr/lib/%{_arch64}/pkgconfig:%{_pkg_config_path}" |
|
12252 | 67 |
%libvorbis64.build -d %name-%version/%_arch64 |
68 |
unset PKG_CONFIG_PATH |
|
69 |
%endif |
|
9397 | 70 |
|
17844 | 71 |
export PKG_CONFIG_PATH="%{_pkg_config_path}" |
12252 | 72 |
%libogg.build -d %name-%version/%{base_arch} |
73 |
export PKG_CONFIG_PATH=%{_builddir}/%name-%version/%{base_arch}/libogg-%{libogg.version}:%{_pkg_config_path} |
|
74 |
%libvorbis.build -d %name-%version/%{base_arch} |
|
9397 | 75 |
|
76 |
%install |
|
12252 | 77 |
rm -rf $RPM_BUILD_ROOT |
78 |
||
79 |
%ifarch amd64 sparcv9 |
|
80 |
%libogg64.install -d %name-%version/%_arch64 |
|
81 |
%libvorbis64.install -d %name-%version/%_arch64 |
|
82 |
%endif |
|
83 |
||
84 |
%libogg.install -d %name-%version/%{base_arch} |
|
85 |
%libvorbis.install -d %name-%version/%{base_arch} |
|
9397 | 86 |
|
87 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
88 |
cd %{_builddir}/%name-%version/sun-manpages |
|
89 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
90 |
||
91 |
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*a |
|
12252 | 92 |
%ifarch amd64 sparcv9 |
93 |
rm -f $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/lib*a |
|
94 |
%endif |
|
9397 | 95 |
|
96 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
97 |
||
98 |
%clean |
|
99 |
rm -rf $RPM_BUILD_ROOT |
|
100 |
||
101 |
%files |
|
102 |
%defattr (-, root, bin) |
|
103 |
%dir %attr (0755, root, bin) %{_libdir} |
|
104 |
%{_libdir}/lib*.so* |
|
12252 | 105 |
%ifarch amd64 sparcv9 |
106 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64} |
|
107 |
%{_libdir}/%{_arch64}/lib*.so* |
|
108 |
%endif |
|
13574 | 109 |
%dir %attr (0755, root, sys) %{_datadir} |
110 |
%doc %{base_arch}/libogg-%{libogg.version}/AUTHORS |
|
111 |
%doc %{base_arch}/libogg-%{libogg.version}/README |
|
112 |
%doc(bzip2) %{base_arch}/libogg-%{libogg.version}/COPYING |
|
113 |
%doc(bzip2) %{base_arch}/libogg-%{libogg.version}/CHANGES |
|
114 |
%doc %{base_arch}/libvorbis-%{libvorbis.version}/AUTHORS |
|
115 |
%doc %{base_arch}/libvorbis-%{libvorbis.version}/README |
|
116 |
%doc(bzip2) %{base_arch}/libvorbis-%{libvorbis.version}/COPYING |
|
117 |
%doc(bzip2) %{base_arch}/libvorbis-%{libvorbis.version}/CHANGES |
|
13642 | 118 |
%dir %attr (0755, root, other) %{_datadir}/doc |
9397 | 119 |
|
120 |
%files devel |
|
121 |
%defattr (-, root, bin) |
|
122 |
%dir %attr (0755, root, bin) %{_libdir} |
|
12252 | 123 |
%ifarch amd64 sparcv9 |
124 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64} |
|
125 |
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig |
|
126 |
%{_libdir}/%{_arch64}/pkgconfig/* |
|
127 |
%endif |
|
9397 | 128 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
129 |
%{_libdir}/pkgconfig/* |
|
130 |
%dir %attr (0755, root, bin) %{_includedir} |
|
131 |
%{_includedir}/* |
|
132 |
%dir %attr (0755, root, sys) %{_datadir} |
|
133 |
%dir %attr (0755, root, other) %{_datadir}/aclocal |
|
134 |
%{_datadir}/aclocal/* |
|
135 |
%{_datadir}/gtk-doc |
|
136 |
%dir %attr(0755, root, bin) %{_mandir} |
|
137 |
%dir %attr(0755, root, bin) %{_mandir}/man3 |
|
138 |
%{_mandir}/man3/* |
|
139 |
||
140 |
%changelog |
|
17276 | 141 |
* Tue Jan 05 2010 - [email protected] |
142 |
- Changed the dependency from CBEbison to SUNWbison. |
|
13642 | 143 |
* Wed Sep 17 2008 - [email protected] |
144 |
- Fix up pkg'ing section. |
|
13583 | 145 |
* Mon Sep 15 2008 - [email protected] |
146 |
- Remove /usr/share/doc from %files. |
|
13574 | 147 |
* Fri Sep 12 2008 - [email protected] |
148 |
- Add new copyright files. |
|
12263 | 149 |
* Wed May 07 2008 - [email protected] |
150 |
- Remove PERL5LIB setting as it is not necessary. |
|
12252 | 151 |
* Mon May 05 2008 - [email protected] |
152 |
- Port amd64 building from SFEogg-vorbis.spec |
|
12008 | 153 |
* Wed Apr 02 2008 - [email protected] |
154 |
- Add SUNW_Copyright. |
|
9397 | 155 |
* Mon Sep 04 2006 - [email protected] |
156 |
- New Manpage tarball |
|
157 |
* Sun Jun 11 2006 - [email protected] |
|
158 |
- change group from other to bin/sys |
|
159 |
* Wed May 10 2006 - [email protected] |
|
160 |
- merge -share pkg(s) into the base pkg(s) |
|
161 |
* Fri Feb 17 2006 - [email protected] |
|
162 |
- Update Build/Requires after running check-deps.pl script. |
|
163 |
* Mon Sep 12 2005 - [email protected] |
|
164 |
- remove unpackaged files |
|
165 |
* Sat Oct 02 2004 - [email protected] |
|
166 |
- added %pkgbuild_postprocess |
|
167 |
* Thu Sep 09 2004 - [email protected] |
|
168 |
- Added libogg.3, libvorbis.3 manpages |
|
169 |
* Sat Jun 26 2004 - [email protected] |
|
170 |
- changed install location to /usr/lib and /usr/bin |
|
171 |
* Fri Jun 04 - [email protected] |
|
172 |
- Initial spec-file created |