author | wangke |
Mon, 19 Oct 2009 08:12:22 +0000 | |
changeset 16807 | 7e525fdc53c0 |
parent 16805 | ea058114c717 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWlibtheora |
|
3 |
# |
|
4 |
# includes module(s): libtheora |
|
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 jerrytan |
9397 | 11 |
# |
12 |
%include Solaris.inc |
|
16805 | 13 |
|
14 |
%ifarch amd64 sparcv9 |
|
15 |
%include arch64.inc |
|
16 |
%use libtheora_64 = libtheora.spec |
|
17 |
%endif |
|
18 |
||
19 |
%include base.inc |
|
20 |
%use libtheora = libtheora.spec |
|
9397 | 21 |
|
12008 | 22 |
Name: SUNWlibtheora |
23 |
Summary: Theora video compression codec |
|
16805 | 24 |
Version: %{libtheora.version} |
15535 | 25 |
Source: %{name}-manpages-0.1.tar.gz |
12008 | 26 |
SUNW_BaseDir: %{_basedir} |
27 |
SUNW_Copyright: %{name}.copyright |
|
28 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
9397 | 29 |
Autoreqprov: on |
16805 | 30 |
|
9397 | 31 |
%include default-depend.inc |
32 |
BuildRequires: SUNWgnome-common-devel |
|
33 |
BuildRequires: SUNWogg-vorbis-devel |
|
34 |
Requires: SUNWogg-vorbis |
|
35 |
||
36 |
%package devel |
|
37 |
Summary: %{summary} - development files |
|
38 |
SUNW_BaseDir: %{_basedir} |
|
39 |
%include default-depend.inc |
|
40 |
||
41 |
%prep |
|
42 |
rm -rf %name-%version |
|
43 |
mkdir %name-%version |
|
16805 | 44 |
|
45 |
%ifarch amd64 sparcv9 |
|
46 |
mkdir %name-%version/%_arch64 |
|
47 |
%libtheora_64.prep -d %name-%version/%_arch64 |
|
48 |
%endif |
|
49 |
||
50 |
mkdir %name-%version/%base_arch |
|
51 |
%libtheora.prep -d %name-%version/%base_arch |
|
52 |
||
16543 | 53 |
cd %{_builddir}/%name-%version* |
15535 | 54 |
gzcat %SOURCE0 | tar xf - |
9397 | 55 |
|
56 |
%build |
|
57 |
export ACLOCAL_FLAGS="-I /usr/share/aclocal" |
|
16805 | 58 |
|
59 |
%ifarch amd64 sparcv9 |
|
60 |
export PKG_CONFIG_LIBDIR=%{_pkg_config_path64} |
|
61 |
%libtheora_64.build -d %name-%version/%_arch64 |
|
62 |
%endif |
|
63 |
||
64 |
export PKG_CONFIG_LIBDIR=%{_pkg_config_path} |
|
65 |
%libtheora.build -d %name-%version/%base_arch |
|
9397 | 66 |
|
67 |
%install |
|
16805 | 68 |
%ifarch amd64 sparcv9 |
69 |
%libtheora_64.install -d %name-%version/%_arch64 |
|
70 |
%endif |
|
71 |
||
72 |
%libtheora.install -d %name-%version/%base_arch |
|
73 |
||
15535 | 74 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
75 |
cd %{_builddir}/%name-%version/sun-manpages |
|
76 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
77 |
||
78 |
chmod 755 $RPM_BUILD_ROOT%{_mandir}/man3/*.3 |
|
9397 | 79 |
|
80 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
81 |
||
82 |
%clean |
|
83 |
rm -rf $RPM_BUILD_ROOT |
|
84 |
||
85 |
%files |
|
86 |
%defattr (-, root, bin) |
|
87 |
%dir %attr (0755, root, bin) %{_libdir} |
|
12965
49530f31c923
downgrade libtheora to 1.0alpha7, due to bug 6722237
jerrytan
parents:
12232
diff
changeset
|
88 |
%{_libdir}/*.so* |
16805 | 89 |
%ifarch amd64 sparcv9 |
90 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64} |
|
91 |
%{_libdir}/%{_arch64}/*.so* |
|
92 |
%endif |
|
13574 | 93 |
%dir %attr (0755, root, sys) %{_datadir} |
16805 | 94 |
%doc -d %{base_arch}/libtheora-%{libtheora.tarball_version} AUTHORS README |
95 |
%doc(bzip2) -d %{base_arch}/libtheora-%{libtheora.tarball_version} COPYING CHANGES |
|
13574 | 96 |
%dir %attr (0755, root, other) %{_datadir}/doc |
16805 | 97 |
|
9397 | 98 |
%files devel |
99 |
%defattr (-, root, bin) |
|
100 |
%dir %attr (0755, root, bin) %{_libdir} |
|
101 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
102 |
%{_libdir}/pkgconfig/* |
|
16805 | 103 |
%ifarch amd64 sparcv9 |
104 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64} |
|
105 |
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig |
|
106 |
%{_libdir}/%{_arch64}/pkgconfig/*.pc |
|
107 |
%endif |
|
9397 | 108 |
%dir %attr (0755, root, bin) %{_includedir} |
109 |
%{_includedir}/* |
|
110 |
%dir %attr (0755, root, sys) %{_datadir} |
|
111 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
16807 | 112 |
%dir %attr (0755, root, other) %{_datadir}/doc/libtheora-%{libtheora.tarball_version} |
113 |
%{_datadir}/doc/libtheora-%{libtheora.tarball_version}/* |
|
15535 | 114 |
%dir %attr (0755, root, bin) %{_mandir} |
115 |
%dir %attr (0755, root, bin) %{_mandir}/man3 |
|
116 |
%{_mandir}/man3/* |
|
9397 | 117 |
|
118 |
%changelog |
|
16805 | 119 |
* Mon Oct 19 2009 - [email protected] |
120 |
- Add 64-bit support. |
|
13574 | 121 |
* Fri Sep 12 2008 - [email protected] |
122 |
- Add new copyright files. |
|
12008 | 123 |
* Wed Apr 02 2008 - [email protected] |
124 |
- Add SUNW_Copyright. |
|
9397 | 125 |
* Sun Jun 11 2006 - [email protected] |
126 |
- change group from other to bin/sys |
|
127 |
* Tue Sep 13 2005 - [email protected] |
|
128 |
- Now use theora version number. |
|
129 |
* Tue Jul 26 2005 - [email protected] |
|
130 |
- Add ogg and vorbis dependency |
|
131 |
* Tue Jul 26 2005 - [email protected] |
|
132 |
- Initial spec-file created |