Silvan Calarco
f0e2240fa3
aded debug package and aarch64 build fix [release 1.2.0alpha1.20201211git-1mamba;Fri Dec 11 2020]
168 lines
5.0 KiB
RPMSpec
168 lines
5.0 KiB
RPMSpec
Name: libtheora
|
|
Version: 1.2.0alpha1.20201211git
|
|
Release: 1mamba
|
|
Summary: Theora video compression codec
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Aleph0 <aleph0@openmamba.org>
|
|
URL: http://www.theora.org/
|
|
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
|
|
## 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
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
# libtheora 1.0: Automatic configuration OK.
|
|
|
|
# General configuration:
|
|
|
|
# Encoding support: ........... yes
|
|
# Floating point support: ..... yes
|
|
# Assembly optimization: ...... 32 bit x86
|
|
# Build example code: ......... yes
|
|
# API Documentation: .......... yes
|
|
# Format Documentation: ....... yes
|
|
|
|
# Installation paths:
|
|
|
|
# libtheora: ................... /usr/lib
|
|
# C header files: .............. /usr/include/theora
|
|
# Documentation: ............... /usr/share/doc/libtheora
|
|
|
|
%description
|
|
Ogg Theora is a fully open, non-proprietary, patent-and-royalty-free, general-purpose compressed video format.
|
|
|
|
%package devel
|
|
Summary: Headers for developing programs that will use libtheora
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description devel
|
|
Ogg Theora is a fully open, non-proprietary, patent-and-royalty-free, general-purpose compressed video format.
|
|
|
|
This package contains the headers that programmers will need to develop applications which will use %{name}.
|
|
|
|
%package tools
|
|
Summary: Command line tools for Theora videos
|
|
Group: Applications/Multimedia
|
|
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
|
|
|
|
%debug_package
|
|
|
|
%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 \
|
|
%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
|
|
%make
|
|
make -C doc/spec
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall
|
|
|
|
#rm -r %{buildroot}%{_docdir}/*
|
|
|
|
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/png2theora %{buildroot}%{_bindir}/png2theora
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libtheora.so.*
|
|
%{_libdir}/libtheoradec.so.*
|
|
%{_libdir}/libtheoraenc.so.*
|
|
%doc COPYING
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%dir %{_includedir}/theora
|
|
%{_includedir}/theora/*.h
|
|
%{_libdir}/libtheora.la
|
|
%{_libdir}/libtheoraenc.la
|
|
%{_libdir}/libtheoradec.la
|
|
%{_libdir}/libtheoradec.so
|
|
%{_libdir}/libtheoraenc.so
|
|
%{_libdir}/libtheora.so
|
|
%{_libdir}/pkgconfig/theora.pc
|
|
%{_libdir}/pkgconfig/theoradec.pc
|
|
%{_libdir}/pkgconfig/theoraenc.pc
|
|
%dir %{_datadir}/doc/libtheora
|
|
%{_datadir}/doc/libtheora/*
|
|
|
|
%files tools
|
|
%defattr(-,root,root)
|
|
%{_bindir}/png2theora
|
|
%{_bindir}/theora_dump_video
|
|
%{_bindir}/theora_encode
|
|
#%{_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
|
|
|
|
* Fri Jan 02 2009 gil <puntogil@libero.it> 1.0-6mamba
|
|
- fixed some error in the spec file
|
|
|
|
* Wed Dec 31 2008 gil <puntogil@libero.it> 1.0-5mamba
|
|
- update to 1.0RC2
|
|
- added package tools
|
|
|
|
* Tue Jun 12 2007 Aleph0 <aleph0@openmamba.org> 1.0-4mamba
|
|
- update to 1.0alpha7
|
|
- new package mantainer
|
|
- run ldconfig
|
|
- do not build libtheora.a
|
|
|
|
* Tue Jun 14 2005 Davide Madrisan <davide.madrisan@qilinux.it> 1.0-3qilnx
|
|
- package updated (version 1.0alpha4)
|
|
- added documentation to devel package
|
|
|
|
* Sat Oct 02 2004 Davide Madrisan <davide.madrisan@qilinux.it> 1.0-2qilnx
|
|
- specfile modified to match QiLinux standards
|
|
|
|
* Sun Sep 19 2004 Matteo Bernasconi <voyagernm@virgilio.it> 1.0-1qilnx
|
|
- first build
|