Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1484611
 поиск   регистрация   авторизация 
 
Группа :: Видео
Пакет: libquicktime

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

%define prerel %nil
%def_without ffmpeg
%def_disable static

Name: libquicktime
Version: 0.9.7
Release: alt0.M24.3%prerel

Summary: A library for manipulating QuickTime files
License: GPL
Group: Video
Url: http://libquicktime.sourceforge.net
Packager: Yuri N. Sedunov <aris at altlinux.ru>

Source: %name-%version%prerel.tar.gz
Patch: libquicktime-0.9.7-alt-crashfix.patch
Patch1: libquicktime-0.9.7-alt-gthread2.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 Wed Jul 20 2005

BuildRequires: XFree86-devel-static XFree86-libs ffmpeg-devel fontconfig freetype2 gcc-c++ gcc-g77 glib-devel glib2-devel gtk+-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 zlib-devel

# Old Build Requires: XFree86-devel-static XFree86-libs ffmpeg-devel gcc-c++ gcc-g77 glib-devel glib2 gtk+-devel libalsa-devel libavc1394-devel libdv-devel libjpeg-devel libjpeg-mmx-devel liblame-devel libogg-devel libpng-devel libraw1394-devel libstdc++-devel libvorbis-devel pkgconfig xvid zlib-devel


%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 and development documentation 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 and development documentation 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.

%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 -p0
%patch1 -p0

%if_without ffmpeg
#%patch1 -p1
%endif

%build
%configure \
   %{subst_enable static} \
%ifnarch i586 i686 athlon
   --disable-mmx \
%endif

%make_build

%install
%makeinstall

# add link for backward compatibility

ln -s lqt %buildroot%_includedir/quicktime

# remove non-packaged files

%__rm -f %buildroot%_libdir/%name/*.la

%post -p %post_ldconfig
%postun -p %postun_ldconfig

%files
%_libdir/*.so.*
%_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
%doc README 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

%files devel
%_bindir/lqt-config
%_includedir/*
%_libdir/*.so
%_datadir/aclocal/*
%_libdir/pkgconfig/*

%if_enabled static
%files devel-static
%_libdir/*.a
%_libdir/%name/*.a
%endif

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005