[5394] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
[521] | 3 | Summary: Theora video compression codec |
---|
| 4 | Summary(ja): Theora 映像圧縮コーデック |
---|
| 5 | Name: libtheora |
---|
| 6 | Version: 1.1.1 |
---|
[5394] | 7 | Release: 3%{?_dist_release} |
---|
[521] | 8 | License: BSD |
---|
| 9 | URL: http://www.theora.org/ |
---|
| 10 | Source: http://www.theora.org/files/libtheora-%{version}.tar.bz2 |
---|
| 11 | Group: System Environment/Libraries |
---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 13 | BuildRequires: libogg-devel >= 1.1 |
---|
| 14 | BuildRequires: libvorbis-devel >= 1.0.1 |
---|
| 15 | BuildRequires: SDL-devel |
---|
| 16 | # Seems like a devel package forgot to include this one (ogg? vorbis? SDL?) |
---|
| 17 | #BuildRequires: alsa-lib-devel |
---|
| 18 | |
---|
| 19 | %description |
---|
| 20 | Ogg Theora is a fully open, non-proprietary, patent-and-royalty-free, |
---|
| 21 | general-purpose compressed video format. |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | %package devel |
---|
| 25 | Summary: Headers for developing programs that will use libtheora |
---|
| 26 | Summary(ja): libtheora の開発用ファイル |
---|
| 27 | Group: Development/Libraries |
---|
[5394] | 28 | Requires: %{name} = %{version}-%{release} |
---|
[521] | 29 | Requires: libogg-devel >= 1.1 |
---|
| 30 | |
---|
| 31 | %description devel |
---|
| 32 | This package contains the headers that programmers will need to develop |
---|
| 33 | applications which will use %{name}. |
---|
| 34 | |
---|
[5394] | 35 | # compat32 |
---|
| 36 | %package -n compat32-%{name} |
---|
| 37 | Summary: Theora video compression codec |
---|
| 38 | Summary(ja): Theora 映像圧縮コーデック |
---|
| 39 | Group: System Environment/Libraries |
---|
| 40 | Requires: %{name} = %{version}-%{release} |
---|
[521] | 41 | |
---|
[5394] | 42 | %description -n compat32-%{name} |
---|
| 43 | Ogg Theora is a fully open, non-proprietary, patent-and-royalty-free, |
---|
| 44 | general-purpose compressed video format. |
---|
| 45 | |
---|
| 46 | %package -n compat32-%{name}-devel |
---|
| 47 | Summary: Headers for developing programs that will use libtheora |
---|
| 48 | Summary(ja): libtheora の開発用ファイル |
---|
| 49 | Group: Development/Libraries |
---|
| 50 | Requires: compat32-%{name} = %{version}-%{release} |
---|
| 51 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 52 | Requires: compat32-libogg-devel >= 1.1 |
---|
| 53 | |
---|
| 54 | %description -n compat32-%{name}-devel |
---|
| 55 | This package contains the headers that programmers will need to develop |
---|
| 56 | applications which will use %{name}. |
---|
| 57 | |
---|
| 58 | |
---|
[521] | 59 | %prep |
---|
| 60 | %setup -q -n %{name}-%{version} |
---|
| 61 | |
---|
| 62 | %build |
---|
| 63 | %configure --disable-static |
---|
| 64 | make %{?_smp_mflags} |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | %install |
---|
| 68 | rm -rf %{buildroot} installed-docs |
---|
| 69 | %makeinstall |
---|
| 70 | mv %{buildroot}%{_datadir}/doc/libtheora* installed-docs |
---|
| 71 | # Fix the location of the include file |
---|
| 72 | #mkdir -p %{buildroot}%{_includedir}/theora |
---|
| 73 | #mv %{buildroot}%{_includedir}/theora.h %{buildroot}%{_includedir}/theora/ |
---|
| 74 | |
---|
| 75 | # remove unpackage files |
---|
| 76 | rm -f $RPM_BUILD_ROOT%{_libdir}/libtheora*.la |
---|
| 77 | |
---|
| 78 | %clean |
---|
| 79 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
| 80 | |
---|
[5394] | 81 | %post -p /sbin/ldconfig |
---|
| 82 | |
---|
| 83 | %postun -p /sbin/ldconfig |
---|
| 84 | |
---|
| 85 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
| 86 | |
---|
| 87 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 88 | |
---|
[521] | 89 | %files |
---|
| 90 | %defattr(-, root, root, 0755) |
---|
| 91 | %doc README COPYING |
---|
| 92 | %{_libdir}/libtheora*.so.* |
---|
| 93 | |
---|
| 94 | %files devel |
---|
| 95 | %defattr(-, root, root, 0755) |
---|
| 96 | %doc installed-docs/* |
---|
| 97 | %{_includedir}/theora |
---|
| 98 | #{_libdir}/libtheora*.a |
---|
| 99 | %{_libdir}/libtheora*.so |
---|
| 100 | %{_libdir}/pkgconfig/*.pc |
---|
| 101 | |
---|
[5394] | 102 | # compat32 |
---|
| 103 | %if %{build_compat32} |
---|
| 104 | %files -n compat32-%{name} |
---|
| 105 | %defattr(-, root, root) |
---|
| 106 | %{_libdir}/*.so.* |
---|
[521] | 107 | |
---|
[5394] | 108 | %files -n compat32-%{name}-devel |
---|
| 109 | %defattr(-, root, root) |
---|
| 110 | %{_libdir}/*.so |
---|
| 111 | %endif |
---|
| 112 | |
---|
| 113 | |
---|
[521] | 114 | %changelog |
---|
[5394] | 115 | * Wed Jan 11 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.1-3 |
---|
| 116 | - create compat32 sub packages |
---|
| 117 | |
---|
[1860] | 118 | * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 1.1.1-2 |
---|
| 119 | - build with rpm-4.8.1-1 for pkg-config file |
---|
| 120 | |
---|
[521] | 121 | * Sun Nov 22 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.1-1 |
---|
| 122 | - new upstream relase |
---|
| 123 | |
---|
| 124 | * Thu Nov 06 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-1 |
---|
| 125 | - new upstream release |
---|
| 126 | |
---|
| 127 | * Sat Apr 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-0.beta2.1vl5 |
---|
| 128 | - new upstream relase |
---|
| 129 | |
---|
| 130 | * Fri Sep 29 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-0.alpha7vl1 |
---|
| 131 | - new upstream relase |
---|
| 132 | |
---|
| 133 | * Sat Sep 24 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-0.alpha5vl1 |
---|
| 134 | - new upstream relase |
---|
| 135 | |
---|
| 136 | * Thu Mar 17 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-0.alpha4vl1 |
---|
| 137 | - new upstream relase |
---|
| 138 | - added Japanese summary |
---|
| 139 | |
---|
| 140 | * Sun Sep 5 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-0.alpha3vl1 |
---|
| 141 | - Build for Vine |
---|
| 142 | |
---|
| 143 | * Wed May 19 2004 Matthias Saou <http://freshrpms.net/> 1.0-0.alpha3.1 |
---|
| 144 | - Initial RPM release, only devel as there is only a static lib for now. |
---|
| 145 | |
---|