2007-01-16 00:23:03 +01:00
|
|
|
#
|
2011-05-20 15:00:01 +02:00
|
|
|
# spec file for package libquicktime
|
|
|
|
#
|
2017-02-14 16:01:54 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-05-20 15:00:01 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:23:03 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-05-20 15:00:01 +02:00
|
|
|
|
2016-07-25 15:12:58 +02:00
|
|
|
%bcond_with faac
|
|
|
|
%bcond_with faad
|
|
|
|
%bcond_without ffmpeg
|
|
|
|
%bcond_with lame
|
|
|
|
%bcond_with x264
|
|
|
|
|
2011-04-28 22:38:49 +02:00
|
|
|
%define soname 0
|
2015-02-27 15:46:15 +01:00
|
|
|
%define cvs 20150223
|
2007-01-16 00:23:03 +01:00
|
|
|
Name: libquicktime
|
2015-02-27 15:46:15 +01:00
|
|
|
Version: 1.2.4cvs%{cvs}
|
2012-02-28 12:55:10 +01:00
|
|
|
Release: 0
|
2011-06-26 04:37:55 +02:00
|
|
|
#to_be_filled_by_service
|
2011-04-28 22:38:49 +02:00
|
|
|
Summary: Library for Reading and Writing Quicktime Movie Files
|
2012-02-28 12:55:10 +01:00
|
|
|
License: GPL-2.0+
|
2011-04-28 22:38:49 +02:00
|
|
|
Group: System/Libraries
|
2012-02-28 12:55:10 +01:00
|
|
|
Url: http://libquicktime.sf.net
|
2015-02-27 15:46:15 +01:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2011-06-25 01:34:20 +02:00
|
|
|
Source1: COPYING
|
2014-10-03 19:27:27 +02:00
|
|
|
Source2: baselibs.conf
|
2016-02-17 14:42:37 +01:00
|
|
|
Patch0: libquicktime-ffmpeg3.patch
|
|
|
|
Patch1: libquicktime-faad2.patch
|
2017-02-14 16:01:54 +01:00
|
|
|
# PATCH-FIX-UPSTREAM bsc#1022805 CVE-2016-2399 kstreitova@suse.com -- fix integer overflow in the quicktime_read_pascal function
|
|
|
|
Patch2: libquicktime-1.2.4-integer_overflow.patch
|
2015-12-02 10:13:20 +01:00
|
|
|
BuildRequires: alsa-devel
|
2015-02-27 15:46:15 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2009-06-20 02:54:57 +02:00
|
|
|
BuildRequires: doxygen
|
2011-04-28 22:38:49 +02:00
|
|
|
BuildRequires: gtk2-devel
|
2009-06-20 02:54:57 +02:00
|
|
|
BuildRequires: libdv-devel
|
|
|
|
BuildRequires: libjpeg-devel
|
2015-02-27 15:46:15 +01:00
|
|
|
BuildRequires: libtool
|
2009-06-20 02:54:57 +02:00
|
|
|
BuildRequires: libvorbis-devel
|
2011-04-28 22:38:49 +02:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: schroedinger-devel
|
2014-10-02 21:26:15 +02:00
|
|
|
BuildRequires: pkgconfig(gl)
|
2016-07-25 15:12:58 +02:00
|
|
|
%if %{with ffmpeg}
|
2015-12-11 13:43:35 +01:00
|
|
|
BuildRequires: pkgconfig(libavcodec)
|
|
|
|
BuildRequires: pkgconfig(libswscale)
|
2016-07-25 15:12:58 +02:00
|
|
|
%endif
|
2014-10-02 21:26:15 +02:00
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xaw7)
|
|
|
|
BuildRequires: pkgconfig(xext)
|
|
|
|
BuildRequires: pkgconfig(xt)
|
|
|
|
BuildRequires: pkgconfig(xv)
|
2015-12-11 13:43:35 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2016-07-25 15:12:58 +02:00
|
|
|
%if %{with faac}
|
2011-04-28 22:38:49 +02:00
|
|
|
BuildRequires: libfaac-devel
|
2016-07-25 15:12:58 +02:00
|
|
|
%endif
|
|
|
|
%if %{with faad}
|
2011-04-28 22:38:49 +02:00
|
|
|
BuildRequires: libfaad2-devel
|
2016-07-25 15:12:58 +02:00
|
|
|
%endif
|
|
|
|
%if %{with lame}
|
2011-04-28 22:38:49 +02:00
|
|
|
BuildRequires: libmp3lame-devel
|
2016-07-25 15:12:58 +02:00
|
|
|
%endif
|
|
|
|
%if %{with x264}
|
2011-04-28 22:38:49 +02:00
|
|
|
BuildRequires: libx264-devel
|
|
|
|
%endif
|
2007-01-16 00:23:03 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
A library for reading and writing Quicktime movie files, based on and
|
|
|
|
forked from quicktime4linux.
|
|
|
|
|
2011-04-28 22:38:49 +02:00
|
|
|
%package -n %{name}%{soname}
|
|
|
|
Summary: Library for Reading and Writing Quicktime Movie Files
|
|
|
|
Group: System/Libraries
|
|
|
|
# Last version with this name was openSUSE 11.4
|
2011-06-25 01:34:20 +02:00
|
|
|
Provides: libquicktime = %{version}-%{release}
|
2011-04-28 22:38:49 +02:00
|
|
|
Obsoletes: libquicktime <= 1.2.2
|
|
|
|
|
|
|
|
%description -n %{name}%{soname}
|
|
|
|
A library for reading and writing Quicktime movie files, based on and
|
|
|
|
forked from quicktime4linux.
|
|
|
|
|
|
|
|
%package -n libquicktime-devel
|
2009-06-20 02:54:57 +02:00
|
|
|
Summary: Library for reading/writing quicktime movie files
|
2011-04-28 22:38:49 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name}%{soname} = %{version}
|
|
|
|
|
|
|
|
%description -n libquicktime-devel
|
2007-01-16 00:23:03 +01:00
|
|
|
library for reading/writing quicktime movie files, based on and forked
|
|
|
|
from quicktime4linux
|
|
|
|
|
2011-04-28 22:38:49 +02:00
|
|
|
%package -n libquicktime-tools
|
|
|
|
Summary: Libquicktime Tools
|
|
|
|
Group: Productivity/Multimedia/Video/Editors and Convertors
|
|
|
|
Requires: %{name}%{soname} = %{version}
|
|
|
|
|
|
|
|
%description -n libquicktime-tools
|
|
|
|
Tools for reading/writing quicktime movie files.
|
|
|
|
|
2007-01-16 00:23:03 +01:00
|
|
|
%prep
|
2015-02-27 15:46:15 +01:00
|
|
|
%setup -q -n %{name}
|
2016-02-17 14:42:37 +01:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2017-02-14 16:01:54 +01:00
|
|
|
%patch2 -p1
|
2015-02-27 15:46:15 +01:00
|
|
|
|
|
|
|
sed -i 's/-DGTK_DISABLE_DEPRECATED//g' configure.ac
|
|
|
|
|
2011-06-25 01:34:20 +02:00
|
|
|
# Replace licence with wrong FSF address
|
2015-12-11 13:43:35 +01:00
|
|
|
cp -v %{SOURCE1} .
|
2007-01-16 00:23:03 +01:00
|
|
|
|
|
|
|
%build
|
2014-05-28 18:23:37 +02:00
|
|
|
echo 'HTML_TIMESTAMP=NO' >> doc/Doxyfile.in
|
2015-02-27 15:46:15 +01:00
|
|
|
./autogen.sh
|
2011-04-28 22:38:49 +02:00
|
|
|
%configure \
|
|
|
|
--enable-gpl \
|
|
|
|
--docdir="%{_docdir}/%{name}-devel" \
|
|
|
|
--with-libdv \
|
|
|
|
--with-cpuflags=none
|
2010-12-02 10:23:10 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:23:03 +01:00
|
|
|
|
|
|
|
%install
|
2015-12-11 13:43:35 +01:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
2011-04-28 22:38:49 +02:00
|
|
|
ln -s lqt "%{buildroot}%{_includedir}/quicktime"
|
|
|
|
%find_lang libquicktime
|
2015-12-11 13:43:35 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2007-01-16 00:23:03 +01:00
|
|
|
|
2011-04-28 22:38:49 +02:00
|
|
|
%post -n libquicktime%{soname} -p /sbin/ldconfig
|
2011-05-20 15:00:01 +02:00
|
|
|
|
2011-04-28 22:38:49 +02:00
|
|
|
%postun -n libquicktime%{soname} -p /sbin/ldconfig
|
2007-01-16 00:23:03 +01:00
|
|
|
|
2011-04-28 22:38:49 +02:00
|
|
|
%files -n libquicktime%{soname} -f libquicktime.lang
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%doc COPYING ChangeLog README TODO
|
|
|
|
%{_libdir}/libquicktime.so.%{soname}
|
|
|
|
%{_libdir}/libquicktime.so.%{soname}.*.*
|
2007-01-16 00:23:03 +01:00
|
|
|
%dir %{_libdir}/libquicktime
|
2011-04-28 22:38:49 +02:00
|
|
|
%{_libdir}/libquicktime/lqt_audiocodec.so
|
|
|
|
%{_libdir}/libquicktime/lqt_dv.so
|
|
|
|
%{_libdir}/libquicktime/lqt_mjpeg.so
|
|
|
|
%{_libdir}/libquicktime/lqt_png.so
|
|
|
|
%{_libdir}/libquicktime/lqt_rtjpeg.so
|
|
|
|
%{_libdir}/libquicktime/lqt_schroedinger.so
|
|
|
|
%{_libdir}/libquicktime/lqt_videocodec.so
|
|
|
|
%{_libdir}/libquicktime/lqt_vorbis.so
|
2016-07-25 15:12:58 +02:00
|
|
|
%if %{with ffmpeg}
|
2015-12-11 13:43:35 +01:00
|
|
|
%{_libdir}/libquicktime/lqt_ffmpeg.so
|
2016-07-25 15:12:58 +02:00
|
|
|
%endif
|
|
|
|
%if %{with faac}
|
2011-04-28 22:38:49 +02:00
|
|
|
%{_libdir}/libquicktime/lqt_faac.so
|
2016-07-25 15:12:58 +02:00
|
|
|
%endif
|
|
|
|
%if %{with faad}
|
2011-04-28 22:38:49 +02:00
|
|
|
%{_libdir}/libquicktime/lqt_faad2.so
|
2016-07-25 15:12:58 +02:00
|
|
|
%endif
|
|
|
|
%if %{with lame}
|
2011-04-28 22:38:49 +02:00
|
|
|
%{_libdir}/libquicktime/lqt_lame.so
|
2016-07-25 15:12:58 +02:00
|
|
|
%endif
|
|
|
|
%if %{with x264}
|
2011-04-28 22:38:49 +02:00
|
|
|
%{_libdir}/libquicktime/lqt_x264.so
|
|
|
|
%endif
|
2007-01-16 00:23:03 +01:00
|
|
|
|
2011-04-28 22:38:49 +02:00
|
|
|
%files -n libquicktime-devel
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%doc %{_docdir}/%{name}-devel
|
|
|
|
%{_includedir}/lqt
|
2007-05-04 17:26:37 +02:00
|
|
|
%{_includedir}/quicktime
|
2011-04-28 22:38:49 +02:00
|
|
|
%{_libdir}/libquicktime.so
|
2007-01-16 00:23:03 +01:00
|
|
|
%{_libdir}/pkgconfig/libquicktime.pc
|
2007-05-04 17:26:37 +02:00
|
|
|
|
2011-04-28 22:38:49 +02:00
|
|
|
%files -n libquicktime-tools
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/libquicktime_config
|
|
|
|
%{_bindir}/lqt_transcode
|
|
|
|
%{_bindir}/lqtplay
|
|
|
|
%{_bindir}/lqtremux
|
|
|
|
%{_bindir}/qt2text
|
|
|
|
%{_bindir}/qtdechunk
|
|
|
|
%{_bindir}/qtdump
|
|
|
|
%{_bindir}/qtinfo
|
|
|
|
%{_bindir}/qtrechunk
|
|
|
|
%{_bindir}/qtstreamize
|
|
|
|
%{_bindir}/qtyuv4toyuv
|
2015-12-11 13:43:35 +01:00
|
|
|
%{_mandir}/man1/lqtplay.1%{ext_man}
|
2011-06-27 11:28:11 +02:00
|
|
|
|
2011-05-20 15:00:01 +02:00
|
|
|
%changelog
|