From: Anas Nashif Date: Sun, 4 Nov 2012 15:15:41 +0000 (-0800) Subject: add packaging X-Git-Tag: accepted/tizen/20130503.222038~2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Flibtheora.git;a=commitdiff_plain;h=8238d700dc9ed2ecde9be476af6e639e61c9f989 add packaging --- 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- <= " + provides "libtheora- = " 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