%define name libquicktime %define major 0 %define version 1.2.3 %define fversion %version %define release %mkrel 3 %define build_plf 0 %define libname %mklibname quicktime %major %define develname %mklibname quicktime -d %if "%{?distro_section}" == "tainted" %define build_plf 1 %endif Summary: A library for manipulating QuickTime files Name: %name Version: %version Release: %release %if %build_plf License: GPLv2+ %else License: LGPLv2+ %endif Group: Video Source0: http://prdownloads.sourceforge.net/libquicktime/%{name}-%{fversion}.tar.gz URL: http://libquicktime.sourceforge.net/ BuildRequires: png-devel BuildRequires: jpeg-devel BuildRequires: oggvorbis-devel BuildRequires: autoconf BuildRequires: automake BuildRequires: MesaGLU-devel BuildRequires: libgtk+2.0-devel BuildRequires: libffmpeg-devel BuildRequires: libalsa-devel BuildRequires: libice-devel BuildRequires: libxaw-devel BuildRequires: libxv-devel BuildRequires: libschroedinger-devel BuildRequires: doxygen %description Libquicktime is a library for reading and writing QuickTime files on UNIX systems. Video CODECs supported by this library are OpenDivX, MJPA, JPEG Photo, PNG, RGB, YUV 4:2:2, and YUV 4:2:0 compression. Supported audio CODECs are Ogg Vorbis, IMA4, ulaw, and any linear PCM format. Libquicktime is based on the quicktime4linux library. Libquicktime add features such as a GNU build tools-based build process and dynamically loadable CODECs. %if %build_plf This package is in the 'tainted' section as it violates some patents. %endif %package -n %libname Summary: Shared library of libquicktime Group: System/Libraries %description -n %libname Libquicktime is a library for reading and writing QuickTime files on UNIX systems. Video CODECs supported by this library are OpenDivX, MJPA, JPEG Photo, PNG, RGB, YUV 4:2:2, and YUV 4:2:0 compression. Supported audio CODECs are Ogg Vorbis, IMA4, ulaw, and any linear PCM format. Libquicktime is based on the quicktime4linux library. Libquicktime add features such as a GNU build tools-based build process and dynamically loadable CODECs. %package -n %develname Summary: Header files and development documentation for libquicktime Group: Development/C Provides: libquicktime-devel = %version-%release Provides: quicktime-devel = %version-%release Provides: quicktime-static-devel = %version-%release Provides: %libname-static-devel = %version-%release Obsoletes: %libname-static-devel = %version-%release Obsoletes: %mklibname -d quicktime 0 Requires: %{libname} = %{version} %description -n %develname Header files and development documentation for libquicktime. %package dv Summary: Libquicktime plugin supporting the DV codec Group: Video Requires: %{name} = %{version} BuildRequires: libdv-devel >= 0.103 %description dv Libquicktime plugin supporting the DV codec. %package progs Summary: Useful tools to operate at QuickTime files Group: Video Requires: %name = %version %description progs Useful tools to operate on QuickTime files. %if 0 # faac is not in core or tainted %package faac Summary: Libquicktime plugin for encoding AAC Group: Video Requires: %{name} = %{version} BuildRequires: libfaac-devel %description faac This is a libquicktime plugin for AAC encoding based on faac. This package is in the 'tainted' section as it violates some patents. %endif %if %build_plf %package lame Summary: Libquicktime plugin supporting the MP3 codec Group: Video Requires: %{name} = %{version} BuildRequires: liblame-devel %description lame This is a libquicktime plugin supporting the MP3 codec based on lame. This package is in the 'tainted' section as it violates some patents. %package faad Summary: Libquicktime plugin for decoding AAC Group: Video Requires: %{name} = %{version} BuildRequires: libfaad2-devel %description faad This is a libquicktime plugin for AAC decoding based on faad2. This package is in the 'tainted' section as it violates some patents. %package x264 Summary: Libquicktime plugin for encoding H.264/MPEG-4 streams Group: Video Requires: %{name} = %{version} BuildRequires: libx264-devel %description x264 This is a libquicktime plugin for encoding H.264/MPEG-4 streams. This package is in the 'tainted' section as it violates some patents. %endif %prep %setup -q -n %name-%fversion %build %configure2_5x \ --with-libdv \ %ifarch x86_64 --with-pic \ %endif %if %build_plf --enable-gpl %endif %make %install rm -rf %{buildroot} %makeinstall_std rm -f %buildroot%_libdir/libquicktime/*a rm -f %buildroot%_libdir/*.la rm -f %buildroot%_libdir/libquicktime/lqt_opendivx.so %find_lang %name %clean rm -rf %{buildroot} %files -f %name.lang %defattr(-,root,root) %doc README %dir %{_libdir}/libquicktime/ %{_libdir}/libquicktime/lqt_audiocodec.so %{_libdir}/libquicktime/lqt_ffmpeg.so %{_libdir}/libquicktime/lqt_mjpeg.so %{_libdir}/libquicktime/lqt_png.so %{_libdir}/libquicktime/lqt_videocodec.so %{_libdir}/libquicktime/lqt_rtjpeg.so %{_libdir}/libquicktime/lqt_schroedinger.so %{_libdir}/libquicktime/lqt_vorbis.so %files dv %defattr(-,root,root) %{_libdir}/libquicktime/lqt_dv.so %files -n %libname %defattr(-,root,root) %{_libdir}/libquicktime.so.%{major}* %files -n %develname %defattr(-,root,root) %{_libdir}/lib*.so %{_includedir}/lqt %_libdir/pkgconfig/*.pc %files progs %defattr(-,root,root) %doc README TODO %{_bindir}/libquicktime_config %_bindir/lqtplay %_bindir/lqtremux %_bindir/lqt_transcode %_bindir/qt* %_mandir/man1/lqtplay.1* %if 0 %files faac %defattr(-,root,root) %{_libdir}/libquicktime/lqt_faac.so %endif %if %build_plf %files lame %defattr(-,root,root) %{_libdir}/libquicktime/lqt_lame.so %files faad %defattr(-,root,root) %{_libdir}/libquicktime/lqt_faad2.so %files x264 %defattr(-,root,root) %{_libdir}/libquicktime/lqt_x264.so %endif %changelog * Tue Dec 13 2011 fwang <fwang> 1.2.3-3.mga2 + Revision: 181282 - rebuild for new x264 * Sat Sep 10 2011 fwang <fwang> 1.2.3-2.mga2.tainted + Revision: 142127 - rebuild for new libpng * Thu Jul 07 2011 fwang <fwang> 1.2.3-1.mga2 + Revision: 119677 - new version 1.2.3 * Fri Jun 24 2011 fwang <fwang> 1.2.2-4.mga2.tainted + Revision: 113116 - add upstream cvs patch to build with ffmpeg 0.8 - rebuild for new ffmpeg * Sun May 29 2011 cjw <cjw> 1.2.2-3.mga1.tainted + Revision: 100694 - disable aac encoding support in tainted builds - add support for tainted builds * Sat Feb 05 2011 ahmad <ahmad> 1.2.2-2.mga1 + Revision: 47176 - drop old/unneeded scriptlets - imported package libquicktime