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
|
|
|
#
|
2011-09-13 12:09:57 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products 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-09-13 12:09:57 +02:00
|
|
|
Release: 15
|
2008-11-12 04:29:28 +01:00
|
|
|
Url: http://diracvideo.org/
|
|
|
|
Group: Productivity/Multimedia/Video/Editors and Convertors
|
2010-05-12 18:22:48 +02:00
|
|
|
License: MPL ..
|
2011-04-15 21:18:32 +02:00
|
|
|
Summary: The Dirac_Video Codec
|
2008-11-12 04:29:28 +01:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2011-04-15 21:18:32 +02:00
|
|
|
Patch0: 0001-Fix-uninitialised-memory-read-that-causes-the-encode.patch
|
|
|
|
Patch1: %{name}-%{version}-gcc45.patch
|
2008-11-12 04:29:28 +01:00
|
|
|
BuildRequires: gcc-c++ libstdc++-devel
|
2008-11-28 14:56:18 +01:00
|
|
|
BuildRequires: libcppunit-devel
|
2011-10-02 17:40:17 +02:00
|
|
|
BuildRequires: libtool
|
2009-12-26 11:52:40 +01:00
|
|
|
%ifnarch ia64 s390 s390x %sparc
|
2010-05-12 18:22:49 +02:00
|
|
|
BuildRequires: pkg-config valgrind-devel
|
2008-11-28 14:56:18 +01:00
|
|
|
%endif
|
2008-11-12 04:29:28 +01:00
|
|
|
BuildRequires: doxygen fdupes graphviz-gd texlive-latex
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
Dirac is intended to develop into real coding and decoding software,
|
|
|
|
capable of plugging into video processing applications and media
|
|
|
|
players that need compression. It is intended to develop into a simple
|
|
|
|
set of reliable but effective coding tools that work over a wide
|
|
|
|
variety of content and formats, using well-understood compression
|
|
|
|
techniques, in a clear and accessible software structure. It is not
|
|
|
|
intended as a demonstration or reference coder.
|
|
|
|
|
|
|
|
%package -n libdirac_decoder0
|
2009-07-04 09:54:55 +02:00
|
|
|
License: MPL ..
|
2008-11-12 04:29:28 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Dirac Video Codec Decoder Library
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
Dirac is intended to develop into real coding and decoding software,
|
|
|
|
capable of plugging into video processing applications and media
|
|
|
|
players that need compression. It is intended to develop into a simple
|
|
|
|
set of reliable but effective coding tools that work over a wide
|
|
|
|
variety of content and formats, using well-understood compression
|
|
|
|
techniques, in a clear and accessible software structure. It is not
|
|
|
|
intended as a demonstration or reference coder.
|
|
|
|
|
|
|
|
%package -n libdirac_encoder0
|
2009-07-04 09:54:55 +02:00
|
|
|
License: MPL ..
|
2008-11-12 04:29:28 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Dirac Video Codec Encoder Library
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
Dirac is intended to develop into real coding and decoding software,
|
|
|
|
capable of plugging into video processing applications and media
|
|
|
|
players that need compression. It is intended to develop into a simple
|
|
|
|
set of reliable but effective coding tools that work over a wide
|
|
|
|
variety of content and formats, using well-understood compression
|
|
|
|
techniques, in a clear and accessible software structure. It is not
|
|
|
|
intended as a demonstration or reference coder.
|
|
|
|
|
|
|
|
%package devel
|
2009-07-04 09:54:55 +02:00
|
|
|
License: MPL ..
|
2008-11-12 04:29:28 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Summary: Development Files for Dirac Video Codec
|
|
|
|
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.
|
|
|
|
|
|
|
|
Dirac is intended to develop into real coding and decoding software,
|
|
|
|
capable of plugging into video processing applications and media
|
|
|
|
players that need compression. It is intended to develop into a simple
|
|
|
|
set of reliable but effective coding tools that work over a wide
|
|
|
|
variety of content and formats, using well-understood compression
|
|
|
|
techniques, in a clear and accessible software structure. It is not
|
|
|
|
intended as a demonstration or reference coder.
|
|
|
|
|
2011-04-15 21:18:32 +02:00
|
|
|
%package doc
|
|
|
|
License: MPL ..
|
|
|
|
Group: Documentation/HTML
|
|
|
|
Summary: Dirac Video Codec api documentation
|
|
|
|
%if 0%{?suse_version} > 1110
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package provides the api reference documentation for using dirac libraries
|
|
|
|
in your program.
|
|
|
|
|
2008-11-12 04:29:28 +01:00
|
|
|
%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
|
2009-07-13 17:54:04 +02:00
|
|
|
# fix build in disabling as-needed
|
|
|
|
export SUSE_ASNEEDED=0
|
2008-11-12 04:29:28 +01:00
|
|
|
ACLOCAL="aclocal -I m4" autoreconf -f -i
|
2009-07-04 09:54:55 +02:00
|
|
|
%if %suse_version == 1100
|
|
|
|
%ifarch x86_64
|
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS -O0"
|
|
|
|
%endif
|
|
|
|
%endif
|
2008-11-12 04:29:28 +01:00
|
|
|
%configure\
|
2011-04-15 21:18:32 +02:00
|
|
|
--disable-static \
|
|
|
|
--docdir=%{_docdir}/packages/%{name}
|
2011-09-19 10:03:47 +02:00
|
|
|
make %{?_smp_mflags}
|
2011-04-15 21:18:32 +02:00
|
|
|
#htmldir=%{_docdir}/%{name}/code/api_html
|
2008-11-12 04:29:28 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall htmldir=%{_docdir}/%{name}/code/api_html
|
|
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
|
|
|
%{__cp} -a AUTHORS COPYING ChangeLog NEWS README TODO %{buildroot}%{_docdir}/%{name}/
|
|
|
|
%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
|
|
|
|
%defattr (-, root, root)
|
2011-04-15 21:18:32 +02:00
|
|
|
#%%doc AUTHORS COPYING ChangeLog NEWS README TODO
|
|
|
|
#%%doc %{_docdir}/%{name}/[ACNRT]*
|
2008-11-12 04:29:28 +01:00
|
|
|
%{_bindir}/*
|
|
|
|
|
|
|
|
%files -n libdirac_decoder0
|
|
|
|
%defattr (-, root, root)
|
|
|
|
%{_libdir}/libdirac_decoder.so.0*
|
|
|
|
|
|
|
|
%files -n libdirac_encoder0
|
|
|
|
%defattr (-, root, root)
|
|
|
|
%{_libdir}/libdirac_encoder.so.0*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr (-, root, root)
|
2011-04-15 21:18:32 +02:00
|
|
|
#%%doc %{_docdir}/%{name}/[ACNRT]*
|
2008-11-12 04:29:28 +01:00
|
|
|
%{_libdir}/*.so
|
|
|
|
#%{_libdir}/*.*a
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2011-04-15 21:18:32 +02:00
|
|
|
%{_includedir}/%{name}
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr (-, root, root)
|
|
|
|
%doc %{_docdir}/%{name}
|
2008-11-12 04:29:28 +01:00
|
|
|
|
|
|
|
%changelog
|