libdirac/libdirac.spec

165 lines
5.9 KiB
RPMSpec
Raw Normal View History

Name: libdirac
Version: 1.0.2
Release: 5mamba
Summary: Libraries for Dirac
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://diracvideo.org/
Source: http://diracvideo.org/download/dirac-research/dirac-%{version}.tar.gz
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libcppunit-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: doxygen
BuildRequires: libgraphviz-devel
BuildRequires: tetex-latex
BuildRequires: tetex
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Dirac is an open source video codec. It uses a traditional hybrid video codec architecture, but with the wavelet transform instead of the usual block transforms. Motion compensation uses overlapped blocks to reduce block artefacts that would upset the transform coding stage.
This package contains libraries for Dirac
%package devel
Group: Development/Libraries
Summary: Libraries and headers for Dirac
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
Dirac is an open source video codec. It uses a traditional hybrid video codec architecture, but with the wavelet transform instead of the usual block transforms. Motion compensation uses overlapped blocks to reduce block artefacts that would upset the transform coding stage.
This package contains libraries and header files need for development.
%package static
Group: Development/Libraries
Summary: Static libraries for Dirac
Requires: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
%description static
Dirac is an open source video codec. It uses a traditional hybrid video codec architecture, but with the wavelet transform instead of the usual block transforms. Motion compensation uses overlapped blocks to reduce block artefacts that would upset the transform coding stage.
This package contains static libraries need for development.
%package -n dirac-docs
Group: Documentation
Summary: Documentation for Dirac
Requires: dirac = %{?epoch:%epoch:}%{version}-%{release}
Obsoletes: Dirac-docs < 1.0.2-4mamba
%description -n dirac-docs
Dirac is an open source video codec. It uses a traditional hybrid video codec architecture, but with the wavelet transform instead of the usual block transforms. Motion compensation uses overlapped blocks to reduce block artefacts that would upset the transform coding stage.
This package contains documentation files for Dirac.
%package -n dirac
Group: System/Libraries
Summary: Dirac is an open source video codec
Obsoletes: Dirac < 1.0.2-4mamba
%description -n dirac
Dirac is an open source video codec. It uses a traditional hybrid video codec architecture, but with the wavelet transform instead of the usual block transforms. Motion compensation uses overlapped blocks to reduce block artefacts that would upset the transform coding stage.
%debug_package
%prep
%setup -q -n dirac-%{version}
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub
install -pm 644 README README.Dirac
install -pm 644 util/instrumentation/README README.instrumentation
# fix permission mode for sources.
find doc unit_tests util libdirac_encoder libdirac_byteio -type f -name \* -exec chmod 644 {} \;
# Only update the doxygen file before generated with make
pushd doc/
%{_bindir}/doxygen -u dirac_api.doxygen
popd
%build
%configure\
--program-prefix=dirac_ \
--program-transform-name=s,dirac_dirac_,dirac_, \
--enable-overlay \
--enable-mmx=no
sed -i -e 's|-Werror||' decoder/Makefile
# remove rpath from libtool (may be unneeded)
sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
# Transform-name fix
mv %{buildroot}%{_bindir}/dirac_create_dirac_testfile.pl \
%{buildroot}%{_bindir}/create_dirac_testfile.pl
sed -i -e 's|"RGBtoYUV"|"dirac_RGBtoYUV"|g' %{buildroot}%{_bindir}/create_dirac_testfile.pl
sed -i -e 's|/home/guest/dirac-0.5.0/util/conversion|%{_bindir}|' %{buildroot}%{_bindir}/create_dirac_testfile.pl
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libdirac_*.so.*
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%dir %{_includedir}/dirac/libdirac_common
%{_includedir}/dirac/libdirac_common/*.h
%dir %{_includedir}/dirac/libdirac_decoder
%{_includedir}/dirac/libdirac_decoder/*.h
%dir %{_includedir}/dirac/libdirac_encoder
%{_includedir}/dirac/libdirac_encoder/*.h
%{_libdir}/libdirac_*.so
%{_libdir}/pkgconfig/*.pc
%doc ChangeLog NEWS README TODO
%files static
%defattr(-,root,root)
%{_libdir}/libdirac_*.a
%{_libdir}/libdirac_*.la
%files -n dirac-docs
%defattr(-,root,root)
%dir %{_docdir}/dirac/code/api_html
%{_docdir}/dirac/code/api_html/*
%files -n dirac
%defattr(-,root,root)
%{_bindir}/create_dirac_testfile.pl
%{_bindir}/dirac_*
%changelog
* Fri Jan 29 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.2-5mamba
- rebuilt with debug package and aarch64 build fix
* Sun May 03 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.2-4mamba
- rebuilt by autoport with build requirements: libcppunit-devel>=1.15.1-1mamba
* Tue Aug 21 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.2-3mamba
- rebuilt by autoport with build requirements: libcppunit-devel>=1.14.0-1mamba
* Tue Dec 04 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.2-2mamba
- rebuilt with libcppunit 1.13.1
* Mon Mar 02 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.2-1mamba
- automatic update by autodist
* Fri Nov 21 2008 gil <puntogil@libero.it> 1.0.0-1mamba
- package created by autospec