libmpeg2/libmpeg2.spec

119 lines
3.1 KiB
RPMSpec
Raw Permalink Normal View History

Name: libmpeg2
Version: 0.5.1
Release: 2mamba
Summary: MPEG-2 and MPEG-1 decoding library and test program
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://libmpeg2.sourceforge.net/
Source: http://libmpeg2.sourceforge.net/files/libmpeg2-%{version}.tar.gz
Patch0: libmpeg2-0.5.1-arm-disable-asm.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libICE-devel
BuildRequires: libSDL-devel
BuildRequires: libSM-devel
BuildRequires: libX11-devel
BuildRequires: libXext-devel
BuildRequires: libXv-devel
## AUTOBUILDREQ-END
BuildRequires: pkgconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
A free library for decoding MPEG-2 and MPEG-1 video streams.
%package devel
Summary: Development files for mpeg2dec's libmpeg2
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Provides: mpeg2dec-devel
Obsoletes: mpeg2dec-devel
%description devel
A free library for decoding MPEG-2 and MPEG-1 video streams.
This package contains files needed to build applications that use mpeg2dec's libmpeg2.
%package -n mpeg2dec
Summary: A tool for decoding MPEG-2 and MPEG-1 video streams.
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description -n mpeg2dec
A tool for decoding MPEG-2 and MPEG-1 video streams.
%debug_package
%prep
%setup -q
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," .auto/config.sub
%ifarch arm
%patch0 -p1
./bootstrap
%endif
%build
%configure --enable-shared
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%{_libdir}/libmpeg2.so.*
%{_libdir}/libmpeg2convert.so.*
%doc AUTHORS COPYING
%files devel
%defattr(-, root, root)
%dir %{_includedir}/mpeg2dec/
%{_includedir}/mpeg2dec/*.h
%{_libdir}/libmpeg2.a
%{_libdir}/libmpeg2.la
%{_libdir}/libmpeg2.so
%{_libdir}/libmpeg2convert.a
%{_libdir}/libmpeg2convert.la
%{_libdir}/libmpeg2convert.so
%{_libdir}/pkgconfig/*
%doc doc/*.txt doc/*.c
%doc NEWS README TODO
%files -n mpeg2dec
%defattr(-, root, root)
%{_bindir}/*
%{_mandir}/man1/*
%changelog
* Mon Dec 14 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.1-2mamba
- rebuilt with debug package
* Sun Nov 06 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.1-1mamba
- update to 0.5.1
* Sun Nov 06 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.1-2mamba
- removed requirement for autoconf
* Sun Jun 01 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.1-1mamba
- update to 0.4.1
* Wed Jun 29 2005 Davide Madrisan <davide.madrisan@qilinux.it> 0.4.0-3qilnx
- own %{_includedir}/mpeg2dec
- fixed package group
- use rpm macros for building/installing
* Fri Jun 10 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 0.4.0-2qilnx
- rebuild and moved from devel-contrib repository to devel repository
* Fri Jun 10 2005 Matteo Bernasconi <voyagernm@virgilio.it> 0.4.0-1qilnx
- first build