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 |
#
|
|
10 |
# Owner: yippi
|
|
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
|
|
24 |
Summary: Ogg bitstream and Vorbis audio codec libraries
|
|
25 |
Version: %{default_pkg_version}
|
|
26 |
Source: %{name}-manpages-0.1.tar.gz
|
|
27 |
SUNW_BaseDir: %{_basedir}
|
12008
|
28 |
SUNW_Copyright: %{name}.copyright
|
9397
|
29 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
30 |
|
|
31 |
%include default-depend.inc
|
|
32 |
BuildRequires: SUNWgnome-common-devel
|
|
33 |
BuildRequires: CBEbison
|
|
34 |
BuildRequires: SUNWPython
|
|
35 |
Requires: SUNWlibms
|
|
36 |
|
|
37 |
%package devel
|
|
38 |
Summary: %{summary} - development files
|
|
39 |
SUNW_BaseDir: %{_basedir}
|
|
40 |
%include default-depend.inc
|
|
41 |
|
|
42 |
%prep
|
|
43 |
rm -rf %name-%version
|
|
44 |
mkdir %name-%version
|
12252
|
45 |
|
|
46 |
%ifarch amd64 sparcv9
|
|
47 |
mkdir %name-%version/%_arch64
|
|
48 |
%libogg64.prep -d %name-%version/%_arch64
|
|
49 |
%libvorbis64.prep -d %name-%version/%_arch64
|
|
50 |
%endif
|
|
51 |
|
|
52 |
mkdir %name-%version/%{base_arch}
|
|
53 |
%libogg.prep -d %name-%version/%{base_arch}
|
|
54 |
%libvorbis.prep -d %name-%version/%{base_arch}
|
|
55 |
|
9397
|
56 |
cd %{_builddir}/%name-%version
|
|
57 |
gzcat %SOURCE0 | tar xf -
|
|
58 |
|
|
59 |
%build
|
12252
|
60 |
%ifarch amd64 sparcv9
|
|
61 |
%libogg64.build -d %name-%version/%_arch64
|
|
62 |
export PKG_CONFIG_PATH=%{_builddir}/%name-%version/%{_arch64}/libogg-%{libogg.version}:%{_pkg_config_path}
|
|
63 |
%libvorbis64.build -d %name-%version/%_arch64
|
|
64 |
unset PKG_CONFIG_PATH
|
|
65 |
%endif
|
9397
|
66 |
|
12252
|
67 |
%libogg.build -d %name-%version/%{base_arch}
|
|
68 |
export PKG_CONFIG_PATH=%{_builddir}/%name-%version/%{base_arch}/libogg-%{libogg.version}:%{_pkg_config_path}
|
|
69 |
%libvorbis.build -d %name-%version/%{base_arch}
|
9397
|
70 |
|
|
71 |
%install
|
12252
|
72 |
rm -rf $RPM_BUILD_ROOT
|
|
73 |
|
|
74 |
%ifarch amd64 sparcv9
|
|
75 |
%libogg64.install -d %name-%version/%_arch64
|
|
76 |
%libvorbis64.install -d %name-%version/%_arch64
|
|
77 |
%endif
|
|
78 |
|
|
79 |
%libogg.install -d %name-%version/%{base_arch}
|
|
80 |
%libvorbis.install -d %name-%version/%{base_arch}
|
9397
|
81 |
|
|
82 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
83 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
84 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
85 |
|
|
86 |
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*a
|
12252
|
87 |
%ifarch amd64 sparcv9
|
|
88 |
rm -f $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/lib*a
|
|
89 |
%endif
|
9397
|
90 |
|
|
91 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
92 |
|
|
93 |
%clean
|
|
94 |
rm -rf $RPM_BUILD_ROOT
|
|
95 |
|
|
96 |
%files
|
|
97 |
%defattr (-, root, bin)
|
|
98 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
99 |
%{_libdir}/lib*.so*
|
12252
|
100 |
%ifarch amd64 sparcv9
|
|
101 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
|
|
102 |
%{_libdir}/%{_arch64}/lib*.so*
|
|
103 |
%endif
|
9397
|
104 |
|
|
105 |
%files devel
|
|
106 |
%defattr (-, root, bin)
|
|
107 |
%dir %attr (0755, root, bin) %{_libdir}
|
12252
|
108 |
%ifarch amd64 sparcv9
|
|
109 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
|
|
110 |
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig
|
|
111 |
%{_libdir}/%{_arch64}/pkgconfig/*
|
|
112 |
%endif
|
9397
|
113 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
114 |
%{_libdir}/pkgconfig/*
|
|
115 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
116 |
%{_includedir}/*
|
|
117 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
118 |
%dir %attr (0755, root, other) %{_datadir}/aclocal
|
|
119 |
%{_datadir}/aclocal/*
|
|
120 |
%{_datadir}/gtk-doc
|
|
121 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
122 |
%dir %attr(0755, root, bin) %{_mandir}/man3
|
|
123 |
%{_mandir}/man3/*
|
|
124 |
|
|
125 |
%changelog
|
12263
|
126 |
* Wed May 07 2008 - [email protected]
|
|
127 |
- Remove PERL5LIB setting as it is not necessary.
|
12252
|
128 |
* Mon May 05 2008 - [email protected]
|
|
129 |
- Port amd64 building from SFEogg-vorbis.spec
|
12008
|
130 |
* Wed Apr 02 2008 - [email protected]
|
|
131 |
- Add SUNW_Copyright.
|
9397
|
132 |
* Mon Sep 04 2006 - [email protected]
|
|
133 |
- New Manpage tarball
|
|
134 |
* Sun Jun 11 2006 - [email protected]
|
|
135 |
- change group from other to bin/sys
|
|
136 |
* Wed May 10 2006 - [email protected]
|
|
137 |
- merge -share pkg(s) into the base pkg(s)
|
|
138 |
* Fri Feb 17 2006 - [email protected]
|
|
139 |
- Update Build/Requires after running check-deps.pl script.
|
|
140 |
* Mon Sep 12 2005 - [email protected]
|
|
141 |
- remove unpackaged files
|
|
142 |
* Sat Oct 02 2004 - [email protected]
|
|
143 |
- added %pkgbuild_postprocess
|
|
144 |
* Thu Sep 09 2004 - [email protected]
|
|
145 |
- Added libogg.3, libvorbis.3 manpages
|
|
146 |
* Sat Jun 26 2004 - [email protected]
|
|
147 |
- changed install location to /usr/lib and /usr/bin
|
|
148 |
* Fri Jun 04 - [email protected]
|
|
149 |
- Initial spec-file created
|