ALT Linux repositórios
5.0: | 1.0.2-alt4 |
4.1: | 0.9.8-alt6 |
4.0: | 0.9.8-alt6 |
3.0: | 0.9.4-alt1 |
+backports: | 0.9.7-alt0.M30.5 |
Group :: Vídeo
RPM: libquicktime
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define prerel %nil
%def_with ffmpeg
%def_with gpl
%def_with faac
%def_without x264
%def_disable static
%define _unpackaged_files_terminate_build 1
%define _pkgdocdir %_docdir/%{name}-%{version}
Name: libquicktime
Version: 1.0.2
Release: alt4%prerel
Summary: A library for manipulating QuickTime files
%if_with gpl
License: GPL
%else
License: LGPL
%endif
Group: Video
Url: http://libquicktime.sourceforge.net
Packager: Igor Vlasenko <viy at altlinux.ru>
Source: http://dl.sf.net/%name/%name-%version%prerel.tar.gz
Patch: %{name}-1.0.2-opendivx-alt.patch.bz2
Patch1: %{name}-1.0.2-soname_hack-alt.patch
Patch2: libquicktime-1.0.2-alt-fix-libswscale.patch
Obsoletes: %name-xanim, %name-svq, %name-cinepak
Provides: %name-xanim = %version-%release, %name-svq = %version-%release, %name-cinepak = %version-%release
%define ffmpeg_ver 0.4.8
%define dv_ver 0.102
%if_with ffmpeg
BuildPreReq: ffmpeg-devel >= %ffmpeg_ver
%endif
BuildPreReq: libdv-devel >= %dv_ver
# Automatically added by buildreq on Sun Jan 29 2006
BuildRequires: ffmpeg-devel fontconfig freetype2 gcc-c++ glib2-devel libdv-devel libgtk+2-devel libjpeg-devel liblame-devel libogg-devel libpango-devel libpng-devel libstdc++-devel libvorbis-devel pkg-config xorg-x11-devel zlib-devel libx264-devel anyasm
BuildPreReq: libavc1394-devel libraw1394-devel libfaac-devel libfaad-devel libalsa-devel
#libjpeg-mmx-devel
# manually removed: glib-devel gcc-g77 gtk+-devel
#OldBuildRequires: XFree86-devel-static XFree86-libs ffmpeg-devel fontconfig freetype2 gcc-c++ glib2-devel hostinfo libGLU-devel libalsa-devel libatk-devel libavc1394-devel libdv-devel libgtk+2-devel libjpeg-devel libjpeg-mmx-devel liblame-devel libogg-devel libpango-devel libpng-devel libraw1394-devel libstdc++-devel libvorbis-devel pkgconfig xpm xvid zlib-devel libfaac-devel libfaad-devel
# TODO: libavcodec (!) (ffmpeg)
#--with-avcodec=PFX Prefix where libavcodec is installed (optional)
%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.
%package devel
Summary: Header files for libquicktime
Group: Development/C
Requires: %name = %version-%release
Requires: glib2-devel
Requires: libpng-devel
Requires: libjpeg-devel
Requires: libdv-devel
Requires: libraw1394-devel
Requires: libavc1394-devel
Requires: libogg-devel
Requires: libvorbis-devel
%description devel
Header files for libquicktime.
%package devel-doc
Summary: Development documentation for libquicktime
Group: Development/C
Requires: %name = %version-%release
%description devel-doc
Development documentation (API reference) for libquicktime.
%package utils
Summary: Useful tools to operate at QuickTime files
Group: Video
Requires: %name = %version-%release
%description utils
Useful tools to operate on QuickTime files.
%package vorbis
Summary: Libquicktime plugin supporting the Ogg Vorbis codec.
Group: Video
Requires: %name = %version-%release
%description vorbis
Libquicktime plugin supporting the Ogg Vorbis codec.
%package ffmpeg
Summary: Libquicktime plugin supporting the ffmpeg codec
Group: Video
Requires: %name = %version-%release
Requires: libffmpeg >= %ffmpeg_ver
%description ffmpeg
Libquicktime plugin supporting the ffmpeg codec
%package opendivx
Summary: Libquicktime plugin supporting the opendivx codec
Group: Video
Requires: %name = %version-%release
%description opendivx
Libquicktime plugin supporting the opendivx codec.
%package lame
Summary: Libquicktime plugin supporting the Lame codec
Group: Video
Requires: %name = %version-%release
%description lame
Libquicktime plugin supporting the Lame codec.
%package dv
Summary: Libquicktime plugin supporting the DV codec
Group: Video
Requires: %name = %version-%release
Requires: libdv >= %dv_ver
%description dv
Libquicktime plugin supporting the DV codec.
%if_with faac
%package faac
Summary: Libquicktime plugin supporting the Faac codec
Group: Video
Requires: %name = %version-%release
%description faac
Libquicktime plugin supporting the Faac codec.
%endif
%package faad2
Summary: Libquicktime plugin supporting the Faad2 codec
Group: Video
Requires: %name = %version-%release
%description faad2
Libquicktime plugin supporting the Faad2 codec.
%package x264
Summary: Libquicktime plugin supporting the x264 codec
Group: Video
Requires: %name = %version-%release
%description x264
Libquicktime plugin supporting the x264 codec.
%package devel-static
Summary: Static libquicktime libraries
Group: Development/C
Requires: %name-devel = %version-%release
%description devel-static
Static libquicktime libraries.
%prep
%setup -q -n %name-%version%prerel
%patch -p1
%patch1 -p1
%patch2 -p1
%if_without ffmpeg
#%patch1 -p1
%endif
%build
autoreconf -fisv
%define _optlevel 3
#--with-avcodec=/usr/lib
%configure --enable-gpl \
%{subst_enable static} \
%{subst_with x264} \
--with-cpuflags="$CFLAGS" \
%ifnarch i586 i686 athlon
--disable-mmx \
%endif
%make_build
%install
%makeinstall
mv -f %buildroot%_docdir/%{name} %buildroot%_pkgdocdir
cp README TODO %buildroot%_pkgdocdir
%find_lang %{name}
# remove non-packaged files
%__rm -f %buildroot%_libdir/%name/*.la
%files -f %{name}.lang
%_libdir/*.so.*
%dir %_libdir/%name/
%_libdir/%name/lqt_audiocodec.so
%_libdir/%name/lqt_rtjpeg.so
%_libdir/%name/lqt_png.so
%_libdir/%name/lqt_mjpeg.so
%_libdir/%name/lqt_videocodec.so
%_pkgdocdir/README
%_pkgdocdir/TODO
%files utils
%_bindir/*
%exclude %_bindir/lqt-config
%_man1dir/*
%files vorbis
%_libdir/%name/lqt_vorbis.so
%if_with ffmpeg
%files ffmpeg
%_libdir/%name/lqt_ffmpeg.so
%endif
%files opendivx
%_libdir/%name/lqt_opendivx.so
%files lame
%_libdir/%name/lqt_lame.so
%files dv
%_libdir/%name/lqt_dv.so
%if_with faac
%files faac
%_libdir/%name/lqt_faac.so
%endif
%files faad2
%_libdir/%name/lqt_faad2.so
%if_with x264
%files x264
%_libdir/%name/lqt_x264.so
%endif
%files devel
%_bindir/lqt-config
%_includedir/*
%_libdir/*.so
%_datadir/aclocal/*
%_pkgconfigdir/*
%files devel-doc
%_pkgdocdir/apiref
%if_enabled static
%files devel-static
%_libdir/*.a
%_libdir/%name/*.a
%endif
%changelog
…
Todas as alterações você pod ver aqui
%def_with ffmpeg
%def_with gpl
%def_with faac
%def_without x264
%def_disable static
%define _unpackaged_files_terminate_build 1
%define _pkgdocdir %_docdir/%{name}-%{version}
Name: libquicktime
Version: 1.0.2
Release: alt4%prerel
Summary: A library for manipulating QuickTime files
%if_with gpl
License: GPL
%else
License: LGPL
%endif
Group: Video
Url: http://libquicktime.sourceforge.net
Packager: Igor Vlasenko <viy at altlinux.ru>
Source: http://dl.sf.net/%name/%name-%version%prerel.tar.gz
Patch: %{name}-1.0.2-opendivx-alt.patch.bz2
Patch1: %{name}-1.0.2-soname_hack-alt.patch
Patch2: libquicktime-1.0.2-alt-fix-libswscale.patch
Obsoletes: %name-xanim, %name-svq, %name-cinepak
Provides: %name-xanim = %version-%release, %name-svq = %version-%release, %name-cinepak = %version-%release
%define ffmpeg_ver 0.4.8
%define dv_ver 0.102
%if_with ffmpeg
BuildPreReq: ffmpeg-devel >= %ffmpeg_ver
%endif
BuildPreReq: libdv-devel >= %dv_ver
# Automatically added by buildreq on Sun Jan 29 2006
BuildRequires: ffmpeg-devel fontconfig freetype2 gcc-c++ glib2-devel libdv-devel libgtk+2-devel libjpeg-devel liblame-devel libogg-devel libpango-devel libpng-devel libstdc++-devel libvorbis-devel pkg-config xorg-x11-devel zlib-devel libx264-devel anyasm
BuildPreReq: libavc1394-devel libraw1394-devel libfaac-devel libfaad-devel libalsa-devel
#libjpeg-mmx-devel
# manually removed: glib-devel gcc-g77 gtk+-devel
#OldBuildRequires: XFree86-devel-static XFree86-libs ffmpeg-devel fontconfig freetype2 gcc-c++ glib2-devel hostinfo libGLU-devel libalsa-devel libatk-devel libavc1394-devel libdv-devel libgtk+2-devel libjpeg-devel libjpeg-mmx-devel liblame-devel libogg-devel libpango-devel libpng-devel libraw1394-devel libstdc++-devel libvorbis-devel pkgconfig xpm xvid zlib-devel libfaac-devel libfaad-devel
# TODO: libavcodec (!) (ffmpeg)
#--with-avcodec=PFX Prefix where libavcodec is installed (optional)
%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.
%package devel
Summary: Header files for libquicktime
Group: Development/C
Requires: %name = %version-%release
Requires: glib2-devel
Requires: libpng-devel
Requires: libjpeg-devel
Requires: libdv-devel
Requires: libraw1394-devel
Requires: libavc1394-devel
Requires: libogg-devel
Requires: libvorbis-devel
%description devel
Header files for libquicktime.
%package devel-doc
Summary: Development documentation for libquicktime
Group: Development/C
Requires: %name = %version-%release
%description devel-doc
Development documentation (API reference) for libquicktime.
%package utils
Summary: Useful tools to operate at QuickTime files
Group: Video
Requires: %name = %version-%release
%description utils
Useful tools to operate on QuickTime files.
%package vorbis
Summary: Libquicktime plugin supporting the Ogg Vorbis codec.
Group: Video
Requires: %name = %version-%release
%description vorbis
Libquicktime plugin supporting the Ogg Vorbis codec.
%package ffmpeg
Summary: Libquicktime plugin supporting the ffmpeg codec
Group: Video
Requires: %name = %version-%release
Requires: libffmpeg >= %ffmpeg_ver
%description ffmpeg
Libquicktime plugin supporting the ffmpeg codec
%package opendivx
Summary: Libquicktime plugin supporting the opendivx codec
Group: Video
Requires: %name = %version-%release
%description opendivx
Libquicktime plugin supporting the opendivx codec.
%package lame
Summary: Libquicktime plugin supporting the Lame codec
Group: Video
Requires: %name = %version-%release
%description lame
Libquicktime plugin supporting the Lame codec.
%package dv
Summary: Libquicktime plugin supporting the DV codec
Group: Video
Requires: %name = %version-%release
Requires: libdv >= %dv_ver
%description dv
Libquicktime plugin supporting the DV codec.
%if_with faac
%package faac
Summary: Libquicktime plugin supporting the Faac codec
Group: Video
Requires: %name = %version-%release
%description faac
Libquicktime plugin supporting the Faac codec.
%endif
%package faad2
Summary: Libquicktime plugin supporting the Faad2 codec
Group: Video
Requires: %name = %version-%release
%description faad2
Libquicktime plugin supporting the Faad2 codec.
%package x264
Summary: Libquicktime plugin supporting the x264 codec
Group: Video
Requires: %name = %version-%release
%description x264
Libquicktime plugin supporting the x264 codec.
%package devel-static
Summary: Static libquicktime libraries
Group: Development/C
Requires: %name-devel = %version-%release
%description devel-static
Static libquicktime libraries.
%prep
%setup -q -n %name-%version%prerel
%patch -p1
%patch1 -p1
%patch2 -p1
%if_without ffmpeg
#%patch1 -p1
%endif
%build
autoreconf -fisv
%define _optlevel 3
#--with-avcodec=/usr/lib
%configure --enable-gpl \
%{subst_enable static} \
%{subst_with x264} \
--with-cpuflags="$CFLAGS" \
%ifnarch i586 i686 athlon
--disable-mmx \
%endif
%make_build
%install
%makeinstall
mv -f %buildroot%_docdir/%{name} %buildroot%_pkgdocdir
cp README TODO %buildroot%_pkgdocdir
%find_lang %{name}
# remove non-packaged files
%__rm -f %buildroot%_libdir/%name/*.la
%files -f %{name}.lang
%_libdir/*.so.*
%dir %_libdir/%name/
%_libdir/%name/lqt_audiocodec.so
%_libdir/%name/lqt_rtjpeg.so
%_libdir/%name/lqt_png.so
%_libdir/%name/lqt_mjpeg.so
%_libdir/%name/lqt_videocodec.so
%_pkgdocdir/README
%_pkgdocdir/TODO
%files utils
%_bindir/*
%exclude %_bindir/lqt-config
%_man1dir/*
%files vorbis
%_libdir/%name/lqt_vorbis.so
%if_with ffmpeg
%files ffmpeg
%_libdir/%name/lqt_ffmpeg.so
%endif
%files opendivx
%_libdir/%name/lqt_opendivx.so
%files lame
%_libdir/%name/lqt_lame.so
%files dv
%_libdir/%name/lqt_dv.so
%if_with faac
%files faac
%_libdir/%name/lqt_faac.so
%endif
%files faad2
%_libdir/%name/lqt_faad2.so
%if_with x264
%files x264
%_libdir/%name/lqt_x264.so
%endif
%files devel
%_bindir/lqt-config
%_includedir/*
%_libdir/*.so
%_datadir/aclocal/*
%_pkgconfigdir/*
%files devel-doc
%_pkgdocdir/apiref
%if_enabled static
%files devel-static
%_libdir/*.a
%_libdir/%name/*.a
%endif
%changelog
…
Todas as alterações você pod ver aqui