summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/baselibs.conf3
-rw-r--r--packaging/libtheora.spec71
2 files changed, 74 insertions, 0 deletions
diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644
index 0000000..871ea97
--- /dev/null
+++ b/packaging/baselibs.conf
@@ -0,0 +1,3 @@
+libtheora
+ obsoletes "libtheora-<targettype> <= <version>"
+ provides "libtheora-<targettype> = <version>"
diff --git a/packaging/libtheora.spec b/packaging/libtheora.spec
new file mode 100644
index 0000000..f054442
--- /dev/null
+++ b/packaging/libtheora.spec
@@ -0,0 +1,71 @@
+Name: libtheora
+Version: 1.1.1
+Release: 14
+License: BSD-3-Clause
+Summary: Free Video Codec
+Url: http://www.theora.org/
+Group: Productivity/Multimedia/Other
+%define pkg_version %{version}
+Source: %{name}-%{version}.tar.bz2
+Source2: baselibs.conf
+BuildRequires: gcc-c++
+BuildRequires: libogg-devel
+BuildRequires: libtool
+BuildRequires: libvorbis-devel
+BuildRequires: pkg-config
+BuildRequires: python
+
+%description
+Theora is a free video codec based on VP3. The package contains the
+library that can decode and encode Theora streams. Theora is also able
+to playback VP3 streams.
+
+%package devel
+License: BSD-3-Clause
+Summary: Free Video Codec
+Group: Development/Libraries/C and C++
+Requires: libogg-devel
+Requires: libtheora = %{version}
+
+%description devel
+Theora is a free video codec based on VP3. The package contains the
+library that can decode and encode Theora streams. Theora is also able
+to playback VP3 streams.
+
+%prep
+%setup -q -n %{name}-%{pkg_version}
+
+%build
+ACLOCAL="aclocal -I m4" autoreconf -f -i
+%configure --disable-examples \
+ --disable-static \
+ --with-pic
+make %{?_smp_mflags} docdir=%{_docdir}/%{name}
+
+%check
+make check
+
+%install
+%make_install
+install -d %{buildroot}%{_bindir}
+
+rm -rf %{buildroot}/%{_datadir}/doc/%{name}-%{version}/*
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root)
+%{_libdir}/libtheora.so.0*
+%{_libdir}/libtheoradec.so.1*
+%{_libdir}/libtheoraenc.so.1*
+
+%files devel
+%defattr(-,root,root)
+%doc COPYING LICENSE
+%{_includedir}/theora
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/theoradec.pc
+%{_libdir}/pkgconfig/theoraenc.pc
+%{_libdir}/pkgconfig/theora.pc