diff --git a/libtheora.spec b/libtheora.spec index 36b7a06bd1e32eb6f483b355fea393b756e9b06d..72ee165c1a69181d111dfed927d4ca3e5438e4de 100644 --- a/libtheora.spec +++ b/libtheora.spec @@ -1,4 +1,4 @@ -%define anolis_release 4 +%define anolis_release 5 Name: libtheora Epoch: 2 Version: 1.1.1 @@ -7,37 +7,32 @@ Summary: Theora Video Compression Codec License: BSD URL: http://www.theora.org Source0: http://downloads.xiph.org/releases/theora/%{name}-%{version}.tar.xz + Patch0: libtheora-1.1.1-fix-pp_sharp_mod-calc.patch -# https://bugs.archlinux.org/task/35985 Patch1: libtheora-1.1.1-libpng16.patch Patch2: libtheora-1.1.1-libm.patch -BuildRequires: make BuildRequires: autoconf BuildRequires: automake -BuildRequires: libtool +BuildRequires: doxygen BuildRequires: libogg-devel >= 2:1.1 +BuildRequires: libpng-devel +BuildRequires: libtool BuildRequires: libvorbis-devel +BuildRequires: make BuildRequires: SDL-devel -BuildRequires: libpng-devel -BuildRequires: doxygen BuildRequires: tetex-latex %description -Theora is Xiph.Org's first publicly released video codec, intended -for use within the Ogg's project's Ogg multimedia streaming system. -Theora is derived directly from On2's VP3 codec; Currently the two are -nearly identical, varying only in encapsulating decoder tables in the -bitstream headers, but Theora will make use of this extra freedom -in the future to improve over what is possible with VP3. +Theora is a free and open video compression format from the Xiph.org +Foundation. Like all our multimedia technology it can be used to distribute +film and video online and on disc without the licensing and royalty fees or +vendor lock-in associated with other formats. -%package doc -Summary: Documentation files for %{name} -Requires: %{name} = %{epoch}:%{version}-%{release} -BuildArch: noarch - -%description doc -The %{name}-doc package contains documentation files for %{name}. +Theora scales from postage stamp to HD resolution, and is considered +particularly competitive at low bitrates. It is in the same class as +MPEG-4/DiVX, and like the Vorbis audio codec it has lots of room for +improvement as encoder technology develops. %package devel Summary: Development tools for Theora applications @@ -45,19 +40,10 @@ Requires: libogg-devel >= 2:1.1 Requires: %{name} = %{epoch}:%{version}-%{release} %description devel -The libtheora-devel package contains the header files needed to develop +The %{name}-devel package contains the header files needed to develop applications with libtheora. -%package devel-docs -Summary: Documentation for developing Theora applications -BuildArch: noarch - -%description devel-docs -The libtheora-devel-docs package contains the documentation needed -to develop applications with libtheora. - - %package -n theora-tools Summary: Command line tools for Theora videos Requires: %{name} = %{epoch}:%{version}-%{release} @@ -66,6 +52,22 @@ Requires: %{name} = %{epoch}:%{version}-%{release} The theora-tools package contains simple command line tools for use with theora bitstreams. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{epoch}:%{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + +%package devel-docs +Summary: Documentation for developing Theora applications +BuildArch: noarch + +%description devel-docs +The libtheora-devel-docs package contains the documentation needed +to develop applications with libtheora. + %prep %setup -q @@ -73,60 +75,68 @@ with theora bitstreams. %patch1 -p0 -b .libpng16 %patch2 -p1 -# Update config.guess/sub to fix builds on new architectures (aarch64) cp /usr/lib/rpm/anolis/config.* . %build ./autogen.sh -# no custom CFLAGS please sed -i 's/CFLAGS="$CFLAGS $cflags_save"/CFLAGS="$cflags_save"/g' configure %configure --enable-shared --disable-static -# Don't use rpath! sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool -%{make_build} - -make -C doc/spec %{?_smp_mflags} +%make_build +%make_build -C doc/spec %install -%{make_install} +%make_install find %{buildroot} -type f -name "*.la" -delete rm -r %{buildroot}/%{_docdir}/* mkdir -p %{buildroot}/%{_bindir} -install -m 755 examples/.libs/dump_video $RPM_BUILD_ROOT/%{_bindir}/theora_dump_video -install -m 755 examples/.libs/encoder_example $RPM_BUILD_ROOT/%{_bindir}/theora_encode -install -m 755 examples/.libs/player_example $RPM_BUILD_ROOT/%{_bindir}/theora_player -install -m 755 examples/.libs/png2theora $RPM_BUILD_ROOT/%{_bindir}/png2theora +install -m 0755 examples/.libs/dump_video $RPM_BUILD_ROOT/%{_bindir}/theora_dump_video +install -m 0755 examples/.libs/encoder_example $RPM_BUILD_ROOT/%{_bindir}/theora_encode +install -m 0755 examples/.libs/player_example $RPM_BUILD_ROOT/%{_bindir}/theora_player +install -m 0755 examples/.libs/png2theora $RPM_BUILD_ROOT/%{_bindir}/png2theora %generate_compatibility_deps %files %dir %{abidir} %doc COPYING -%{_libdir}/*.so.* +%{_libdir}/libtheora.so.0* +%{_libdir}/libtheoradec.so.1* +%{_libdir}/libtheoraenc.so.1* %{abidir}/*.dump -%files doc -%doc README - %files devel %{_includedir}/theora -%{_libdir}/*.so -%{_libdir}/pkgconfig/theora*.pc - -%files devel-docs -%doc doc/libtheora/html doc/vp3-format.txt doc/spec/Theora.pdf -%doc doc/color.html doc/draft-ietf-avt-rtp-theora-00.txt +%{_libdir}/libtheora.so +%{_libdir}/libtheoradec.so +%{_libdir}/libtheoraenc.so +%{_libdir}/pkgconfig/theora.pc +%{_libdir}/pkgconfig/theoradec.pc +%{_libdir}/pkgconfig/theoraenc.pc %files -n theora-tools -%{_bindir}/* +%{_bindir}/png2theora +%{_bindir}/theora_dump_video +%{_bindir}/theora_encode +%{_bindir}/theora_player %{abidir}/*-option.list +%files doc +%doc README + +%files devel-docs +%doc doc/spec/Theora.pdf +%doc doc/vp3-format.txt doc/draft-ietf-avt-rtp-theora-00.txt +%doc doc/libtheora/html doc/color.html %changelog +* Fri Apr 14 2023 Shawn Wang - 2:1.1.1-5 +- Optimize the spec file + * Mon Mar 27 2023 Xuchun Shang - 2:1.1.1-4 - Remove build require for transfig