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