diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-04 07:15:41 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-04 07:15:41 -0800 |
commit | 8238d700dc9ed2ecde9be476af6e639e61c9f989 (patch) | |
tree | c3253308b2743650ed92999a4989a99e16f33f26 | |
parent | 20e158548a02a6ac87e5e662d790e88882e0e4d9 (diff) | |
download | libtheora-8238d700dc9ed2ecde9be476af6e639e61c9f989.tar.gz libtheora-8238d700dc9ed2ecde9be476af6e639e61c9f989.tar.bz2 libtheora-8238d700dc9ed2ecde9be476af6e639e61c9f989.zip |
add packaging
-rw-r--r-- | packaging/baselibs.conf | 3 | ||||
-rw-r--r-- | packaging/libtheora.spec | 71 |
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 |