update to 1.2.0alpha1.20201211git

aded debug package and aarch64 build fix [release 1.2.0alpha1.20201211git-1mamba;Fri Dec 11 2020]
This commit is contained in:
Silvan Calarco 2024-01-06 05:55:06 +01:00
parent ad89b3cba6
commit f0e2240fa3
1 changed files with 26 additions and 23 deletions

View File

@ -1,7 +1,5 @@
#%d efine prever RC2
Name: libtheora
Version: 1.1.1
Version: 1.2.0alpha1.20201211git
Release: 1mamba
Summary: Theora video compression codec
Group: System/Libraries
@ -9,20 +7,22 @@ Vendor: openmamba
Distribution: openmamba
Packager: Aleph0 <aleph0@openmamba.org>
URL: http://www.theora.org/
Source0: http://downloads.xiph.org/releases/theora/libtheora-%{version}%{?prever}.tar.bz2
Source0: https://gitlab.xiph.org/xiph/theora.git/master/theora-%{version}%{?prever}.tar.bz2
# missing from tarball
Source1: dct_decode_mmx.c
Patch0: libtheora-1.0RC2-docdir.patch
Patch1: libtheora-1.0beta3-undef-nonweak-symbols.patch
License: BSD
BuildRequires: libalsa-devel
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libogg-devel
BuildRequires: libpng-devel
BuildRequires: libSDL-devel
BuildRequires: libvorbis-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: libalsa-devel
BuildRequires: doxygen
BuildRequires: tetex-latex
BuildRequires: transfig
@ -64,22 +64,23 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description tools
Ogg Theora is a fully open, non-proprietary, patent-and-royalty-free, general-purpose compressed video format.
The %{name}-tools package contains simple command line tools for use with theora bitstreams
%prep
#%{?prever}
%setup -q -n %{name}-%{version}
#if [ ! -f lib/enc/x86_64/dct_decode_mmx.c ] ; then
# cp %{S:1} lib/enc/x86_64
#fi
#%patch0 -p1
#%patch1 -p1
%debug_package
sed -i 's/CFLAGS="$CFLAGS $cflags_save"/CFLAGS="$cflags_save"/g' configure
%prep
%setup -q -n theora-%{version}
./autogen.sh
#sed -i 's/CFLAGS="$CFLAGS $cflags_save"/CFLAGS="$cflags_save"/g' configure
%build
%configure --enable-shared --disable-static
%configure \
--enable-shared \
--disable-static \
%ifarch arm
--disable-asflag-probe
%endif
# 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
@ -95,7 +96,7 @@ make -C doc/spec
mkdir -p %{buildroot}%{_bindir}
install -m 755 examples/.libs/dump_video %{buildroot}%{_bindir}/theora_dump_video
install -m 755 examples/.libs/encoder_example %{buildroot}%{_bindir}/theora_encode
install -m 755 examples/.libs/player_example %{buildroot}%{_bindir}/theora_player
#install -m 755 examples/.libs/player_example %{buildroot}%{_bindir}/theora_player
install -m 755 examples/.libs/png2theora %{buildroot}%{_bindir}/png2theora
%clean
@ -109,7 +110,7 @@ install -m 755 examples/.libs/png2theora %{buildroot}%{_bindir}/png2theora
%{_libdir}/libtheora.so.*
%{_libdir}/libtheoradec.so.*
%{_libdir}/libtheoraenc.so.*
%doc README COPYING
%doc COPYING
%files devel
%defattr(-,root,root)
@ -124,19 +125,21 @@ install -m 755 examples/.libs/png2theora %{buildroot}%{_bindir}/png2theora
%{_libdir}/pkgconfig/theora.pc
%{_libdir}/pkgconfig/theoradec.pc
%{_libdir}/pkgconfig/theoraenc.pc
#%doc %{_datadir}/doc/%{name}-%{version}%{?prever}/
%doc doc/libtheora/html doc/vp3-format.txt doc/spec/Theora.pdf
%doc doc/color.html doc/draft-ietf-avt-rtp-theora-00.txt
#%doc doc/libtheora/latex
%dir %{_datadir}/doc/libtheora
%{_datadir}/doc/libtheora/*
%files tools
%defattr(-,root,root)
%{_bindir}/png2theora
%{_bindir}/theora_dump_video
%{_bindir}/theora_encode
%{_bindir}/theora_player
#%{_bindir}/theora_player
%changelog
* Fri Dec 11 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.0alpha1.20201211git-1mamba
- update to 1.2.0alpha1.20201211git
- aded debug package and aarch64 build fix
* Sat Dec 11 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.1-1mamba
- update to 1.1.1