2008-11-12 04:29:28 +01:00
|
|
|
#
|
2011-09-13 12:09:57 +02:00
|
|
|
# spec file for package dirac
|
2008-11-12 04:29:28 +01:00
|
|
|
#
|
2017-07-04 15:31:56 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2008-11-12 04:29:28 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: dirac
|
2009-07-04 09:54:55 +02:00
|
|
|
Version: 1.0.2
|
2011-12-09 13:03:07 +01:00
|
|
|
Release: 0
|
2011-04-15 21:18:32 +02:00
|
|
|
Summary: The Dirac_Video Codec
|
2011-12-09 13:03:07 +01:00
|
|
|
License: MPL-1.1
|
|
|
|
Group: Productivity/Multimedia/Video/Editors and Convertors
|
2017-07-04 15:31:56 +02:00
|
|
|
Url: https://sourceforge.net/projects/dirac/
|
|
|
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
2015-05-26 19:22:24 +02:00
|
|
|
Source1: baselibs.conf
|
2011-04-15 21:18:32 +02:00
|
|
|
Patch0: 0001-Fix-uninitialised-memory-read-that-causes-the-encode.patch
|
|
|
|
Patch1: %{name}-%{version}-gcc45.patch
|
2019-03-08 18:32:01 +01:00
|
|
|
%if 0%{?suse_version} > 1315
|
2011-12-09 13:03:07 +01:00
|
|
|
BuildRequires: gcc-c++
|
2019-03-08 18:32:01 +01:00
|
|
|
%else
|
|
|
|
BuildRequires: gcc7-c++
|
|
|
|
%endif
|
|
|
|
BuildRequires: fdupes
|
2011-10-02 17:40:17 +02:00
|
|
|
BuildRequires: libtool
|
2017-07-04 15:31:56 +02:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(cppunit)
|
2008-11-12 04:29:28 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
Dirac can code just about any size of video, from streaming up to HD
|
|
|
|
and beyond, although certain presets are defined for different
|
|
|
|
applications and standards. These cover the parameters that need to be
|
|
|
|
set for the encoder to work, such as block sizes and temporal
|
|
|
|
prediction structures, which must otherwise be set by hand.
|
|
|
|
|
|
|
|
%package -n libdirac_decoder0
|
|
|
|
Summary: Dirac Video Codec Decoder Library
|
2011-12-09 13:03:07 +01:00
|
|
|
Group: System/Libraries
|
2008-11-12 04:29:28 +01:00
|
|
|
|
|
|
|
%description -n libdirac_decoder0
|
|
|
|
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.
|
|
|
|
|
|
|
|
Dirac can code just about any size of video, from streaming up to HD
|
|
|
|
and beyond, although certain presets are defined for different
|
|
|
|
applications and standards. These cover the parameters that need to be
|
|
|
|
set for the encoder to work, such as block sizes and temporal
|
|
|
|
prediction structures, which must otherwise be set by hand.
|
|
|
|
|
|
|
|
%package -n libdirac_encoder0
|
|
|
|
Summary: Dirac Video Codec Encoder Library
|
2011-12-09 13:03:07 +01:00
|
|
|
Group: System/Libraries
|
2008-11-12 04:29:28 +01:00
|
|
|
|
|
|
|
%description -n libdirac_encoder0
|
|
|
|
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.
|
|
|
|
|
|
|
|
Dirac can code just about any size of video, from streaming up to HD
|
|
|
|
and beyond, although certain presets are defined for different
|
|
|
|
applications and standards. These cover the parameters that need to be
|
|
|
|
set for the encoder to work, such as block sizes and temporal
|
|
|
|
prediction structures, which must otherwise be set by hand.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development Files for Dirac Video Codec
|
2011-12-09 13:03:07 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2008-11-12 04:29:28 +01:00
|
|
|
Requires: libdirac_decoder0 = %{version}
|
|
|
|
Requires: libdirac_encoder0 = %{version}
|
2011-04-15 21:18:32 +02:00
|
|
|
Provides: libdirac-devel = %{version}-%{release}
|
|
|
|
Obsoletes: libdirac-devel < %{version}-%{release}
|
2008-11-12 04:29:28 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
Dirac can code just about any size of video, from streaming up to HD
|
|
|
|
and beyond, although certain presets are defined for different
|
|
|
|
applications and standards. These cover the parameters that need to be
|
|
|
|
set for the encoder to work, such as block sizes and temporal
|
|
|
|
prediction structures, which must otherwise be set by hand.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2010-05-12 18:22:49 +02:00
|
|
|
%patch0 -p1
|
2011-04-15 21:18:32 +02:00
|
|
|
%patch1 -p1
|
2008-11-12 04:29:28 +01:00
|
|
|
# Code is not mature enough for -Werror (unused results)
|
|
|
|
sed -i 's/-Werror//' configure.ac
|
|
|
|
|
|
|
|
%build
|
2019-03-08 18:32:01 +01:00
|
|
|
test -x "$(type -p gcc)" && export CC=$_
|
|
|
|
test -x "$(type -p g++)" && export CXX=$_
|
|
|
|
test -x "$(type -p gcc-7)" && export CC=$_
|
|
|
|
test -x "$(type -p g++-7)" && export CXX=$_
|
|
|
|
test -x "$(type -p gcc-8)" && export CC=$_
|
|
|
|
test -x "$(type -p g++-8)" && export CXX=$_
|
2017-07-04 15:31:56 +02:00
|
|
|
ACLOCAL="aclocal -I m4" autoreconf -fvi
|
|
|
|
%configure \
|
|
|
|
--disable-silent-rules \
|
2011-04-15 21:18:32 +02:00
|
|
|
--disable-static \
|
2017-07-04 15:31:56 +02:00
|
|
|
--docdir=%{_docdir}/packages/%{name} \
|
|
|
|
--enable-mmx \
|
|
|
|
--enable-overlay
|
2011-09-19 10:03:47 +02:00
|
|
|
make %{?_smp_mflags}
|
2008-11-12 04:29:28 +01:00
|
|
|
|
|
|
|
%install
|
2017-07-04 15:31:56 +02:00
|
|
|
%make_install htmldir=%{_docdir}/%{name}/code/api_html
|
|
|
|
# remove the docs we want with main pkg
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2008-11-12 04:29:28 +01:00
|
|
|
%fdupes %{buildroot}%{_docdir}/%{name}
|
|
|
|
|
|
|
|
%post -n libdirac_decoder0 -p /sbin/ldconfig
|
|
|
|
%postun -n libdirac_decoder0 -p /sbin/ldconfig
|
|
|
|
%post -n libdirac_encoder0 -p /sbin/ldconfig
|
|
|
|
%postun -n libdirac_encoder0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
2017-07-04 15:31:56 +02:00
|
|
|
%doc AUTHORS COPYING ChangeLog NEWS README TODO
|
2008-11-12 04:29:28 +01:00
|
|
|
%{_bindir}/*
|
|
|
|
|
|
|
|
%files -n libdirac_decoder0
|
|
|
|
%{_libdir}/libdirac_decoder.so.0*
|
|
|
|
|
|
|
|
%files -n libdirac_encoder0
|
|
|
|
%{_libdir}/libdirac_encoder.so.0*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2011-04-15 21:18:32 +02:00
|
|
|
%{_includedir}/%{name}
|
|
|
|
|
2008-11-12 04:29:28 +01:00
|
|
|
%changelog
|