diff --git a/.gitignore b/.gitignore index e69de29..256273d 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/daala-4eddbab.tar.gz diff --git a/daala.spec b/daala.spec new file mode 100644 index 0000000..f86f970 --- /dev/null +++ b/daala.spec @@ -0,0 +1,85 @@ +%global commit0 4eddbab067fa434e2d3d96eb5c872ec8a2064468 +%global date 20161117 +%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) + +Name: daala +Version: 0 +Release: 2%{?shortcommit0:.%{date}git%{shortcommit0}}%{?dist} +Summary: Daala video compression +License: BSD +URL: http://xiph.org/daala/ + +Source0: https://git.xiph.org/?p=%{name}.git;a=snapshot;h=%{commit0};sf=tgz#/%{name}-%{shortcommit0}.tar.gz + +BuildRequires: autoconf +BuildRequires: automake +# Not yet enabled in the docs makefile: +# BuildRequires: doxygen +BuildRequires: gcc-c++ +BuildRequires: libjpeg-devel +BuildRequires: libtool +BuildRequires: pkgconfig(check) >= 0.9.8 +BuildRequires: pkgconfig(libpng) +BuildRequires: pkgconfig(ogg) >= 1.3 +BuildRequires: pkgconfig(sdl2) +# Required for examples: +# BuildRequires: wxGTK-devel + +%description +A new video compression technology. The goal of the project is to provide a +video format that's free to implement, use and distribute, and a reference +implementation with technical performance superior to H.265. + +%package libs +Summary: Daala video codec libraries + +%description libs +A new video compression technology. The goal of the project is to provide a +video format that's free to implement, use and distribute, and a reference +implementation with technical performance superior to H.265. + +%package devel +Summary: Development files for the Daala video codec libraries +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for developing +applications that use %{name}. + +%prep +%setup -q -n %{name}-%{shortcommit0} + +%build +autoreconf -vif +%configure --disable-static +%make_build + +%install +%make_install +find %{buildroot} -name "*.la" -delete + +# Let rpm pick up the docs in the files section +rm -fr %{buildroot}/%{_datadir} + +%post libs -p /sbin/ldconfig + +%postun libs -p /sbin/ldconfig + +%files libs +%license COPYING +%doc AUTHORS +%{_libdir}/*.so.* + +%files devel +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc +%{_includedir}/%{name}/ + +%changelog +* Fri Nov 25 2016 Simone Caronni - 0-2.20161117git4eddbab +- Update to latest snapshot. +- Use make_build macro, license macro. + +* Fri Nov 18 2016 Simone Caronni - 0-1.20161114git4403315 +- First build. + diff --git a/sources b/sources index e69de29..2b84aaf 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (daala-4eddbab.tar.gz) = aaa7dee11633285aebf517e1a79283800653a4528f5b82768a4295eb5bf4a04a68295ed5e3aa9fe0b174381989bf16f3beab57a81c7e3ba93914f520978cdde0