Search
j0ke.net Open Build Service
>
Projects
>
multimedia
:
EL5
>
dirac
> dirac.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File dirac.spec of Package dirac (Revision 2)
Currently displaying revision
2
,
show latest
# norootforbuild Summary: Video Codec based on wavelets Name: dirac Version: 1.0.2 Release: 1 Source: http://prdownloads.sourceforge.net/dirac/%{name}-%{version}.tar.gz Source90: %{name}-rpmlintrc License: MPL Group: Productivity/Multimedia/Other Url: http://sf.net/projects/dirac Packager: Toni Graffy <toni@links2linux.de> BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: doxygen %if 0%{?suse_version} >= 1030 BuildRequires: fdupes %endif BuildRequires: freefont %if 0%{?suse_version} <= 1100 #BuildRequires: ghostscript-std %else #BuildRequires: ghostscript-mini %endif BuildRequires: gcc-c++ BuildRequires: graphviz %if 0%{?suse_version} >= 1030 #BuildRequires: hpijs-standalone BuildRequires: texlive BuildRequires: texlive-latex %else BuildRequires: te_latex BuildRequires: tetex %endif BuildRequires: valgrind %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_encoder0 Group: System/Libraries Summary: Dirac Video Codec Encoder Library Provides: libdirac = 0.7.0 Obsoletes: libdirac <= 0.7.0 Provides: libdirac0 = 1.0.0 Obsoletes: libdirac0 <= 1.0.0 %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 -n libdirac_decoder0 Group: System/Libraries Summary: Dirac Video Codec Decoder Library Provides: libdirac0:%{_libdir}/libdirac_decoder.so.0.0.0 %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-devel Group: Development/Languages/C and C++ Summary: Development files of the Dirac Video codec Requires: libdirac_decoder0 = %{version} Requires: libdirac_encoder0 = %{version} %description -n libdirac-devel This package contains the files needed to compile programs that use the libdirac library. %package doc Group: Documentation/HTML Summary: Documentation for Dirac Video codec %description doc Documentation for the Dirac Video codec. %debug_package %prep %setup -q %{?suse_update_config:%{suse_update_config -f}} # fix line-endings of Docs %__sed -i 's/\r//g' doc/*.html %__install -pm 644 README \ README.Dirac %__install -pm 644 util/instrumentation/README \ README.instrumentation %build %configure \ --program-prefix=dirac_ \ --program-transform-name=s,dirac_dirac_,dirac_, \ --enable-overlay \ %ifarch x86_64 --enable-mmx=no %else --enable-mmx=yes %endif %__sed -i -e 's|-Werror||g' \ decoder/Makefile %__sed -i -e 's|-Werror||g' \ libdirac_common/Makefile %__make %{?jobs:-j%{jobs}} %install %__make DESTDIR=%{buildroot} install %__install -dm 755 %{buildroot}%{_docdir} %__mv %{buildroot}%{_datadir}/doc/%{name} \ %{buildroot}%{_docdir} %__install -m 644 AUTHORS COPYING ChangeLog NEWS README TODO \ %{buildroot}%{_docdir}/%{name} # 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 %__rm -f %{buildroot}%{_bindir}/dirac_unittest find %{buildroot} -name '*.la' -exec %__rm -f {} ';' # Move doc in docdir macro %__install -dm 755 %{buildroot}%{_docdir}/%{name}-doc %__mv %{buildroot}%{_docdir}/dirac/* \ %{buildroot}%{_docdir}/%{name}-doc %if 0%{?suse_version} >= 1030 %fdupes -s %{buildroot} %endif %clean [ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}" %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) %doc AUTHORS ChangeLog COPYING NEWS README.* TODO %{_bindir}/%{name}_* %{_bindir}/create_dirac_testfile.pl %files -n libdirac_decoder0 %defattr(-,root,root) %{_libdir}/libdirac_decoder*.so.* %files -n libdirac_encoder0 %defattr(-,root,root) %{_libdir}/libdirac_encoder*.so.* %files -n libdirac-devel %defattr(-,root,root) %{_includedir}/%{name} %{_libdir}/libdirac*.a %{_libdir}/libdirac*.so %{_libdir}/pkgconfig/%{name}.pc %files doc %defattr(-,root,root) %doc %{_docdir}/%{name}-doc %changelog * Tue May 25 2010 Carsten Schoene <cs@linux-administrator.com> - 1.0.2-1 - initial import to BS