Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37770121
en ru br
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_without ffmpeg
%def_disable static

Name: libquicktime
Version: 0.9.7
Release: alt0.M30.5%prerel

Summary: A library for manipulating QuickTime files
License: LGPL
Group: Video
Url: http://libquicktime.sourceforge.net
Packager: Igor Vlasenko <viy at altlinux.ru>

Source: http://dl.sf.net/%name/%name-%version%prerel.tar.bz2
Patch: libquicktime-0.9.7-alt-crashfix.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

%ifarch ix86
BuildPreReq: libjpeg-mmx-devel
%endif

# Automatically added by buildreq on Wed Jul 20 2005

# manually removed: glib-devel gcc-g77 gtk+-devel
BuildRequires: XFree86-devel 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 liblame-devel libogg-devel libpango-devel libpng-devel libraw1394-devel libstdc++-devel libvorbis-devel pkgconfig xpm xvid zlib-devel
# TODO: try  xvid/xvid-devel (?) / libavcodec (!)
# TODO: _pkgconfigdir

%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

%if_without ffmpeg
#%patch1 -p1
%endif

%build
%define _optlevel 3
%configure \
   %{subst_enable static} \
   --with-cpuflags="$CFLAGS" \
%ifnarch i586 i686 athlon
   --disable-mmx \
%endif

%make_build

%install
%makeinstall

# remove non-packaged files

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

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

%files
%_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
%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/*
# to replace back soon ...
# %_pkgconfigdir/*
%_libdir/pkgconfig/*

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

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009