SHA256
1
0
forked from pool/libquicktime
libquicktime/libquicktime.spec
OBS User mrdocs 923b3b2607 Accepting request 546319 from home:Zaitor:branches:multimedia:libs
- Add %%{name} = %%{version} Requires to orig-addon sub-package,
  installing the addon-package does not make sense without the main
  package.

OBS-URL: https://build.opensuse.org/request/show/546319
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libquicktime?expand=0&rev=78
2017-11-29 00:00:33 +00:00

217 lines
6.0 KiB
RPMSpec

#
# spec file for package libquicktime
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%bcond_with faac
%bcond_with faad
%bcond_with x264
%define sover 0
%define cvs 20150223
Name: libquicktime
Version: 1.2.4cvs%{cvs}
Release: 0
#to_be_filled_by_service
Summary: Library for Reading and Writing Quicktime Movie Files
License: GPL-2.0+
Group: Development/Libraries/C and C++
Url: http://libquicktime.sf.net
Source0: %{name}-%{version}.tar.gz
Source1: COPYING
Source2: baselibs.conf
Patch0: libquicktime-ffmpeg3.patch
Patch1: libquicktime-faad2.patch
# 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
# PATCH-FIX-UPSTREAM kstreitova@suse.com -- fix multiple vulnerabilities (from CVE-2017-9122 to CVE-2017-9128)
Patch3: libquicktime-1.2.4-multiple_vulnerabilities.patch
BuildRequires: alsa-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: doxygen
BuildRequires: libdv-devel
BuildRequires: libjpeg-devel
BuildRequires: libmp3lame-devel
BuildRequires: libtool
BuildRequires: libvorbis-devel
BuildRequires: pkg-config
BuildRequires: schroedinger-devel
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libswscale)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xaw7)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xt)
BuildRequires: pkgconfig(xv)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?BUILD_ORIG}
%if %{with faac}
BuildRequires: libfaac-devel
%endif
%if %{with faad}
BuildRequires: libfaad2-devel
%endif
%if %{with x264}
BuildRequires: libx264-devel
%endif
%endif
%description
A library for reading and writing Quicktime movie files, based on and
forked from quicktime4linux.
%if 0%{?BUILD_ORIG}
%package orig-addon
Summary: Library for Reading and Writing Quicktime Movie Files
Group: System/Libraries
Requires: %{name} = %{version}
%description orig-addon
A library for reading and writing Quicktime movie files, based on and
forked from quicktime4linux.
%endif
%package -n %{name}%{sover}
Summary: Library for Reading and Writing Quicktime Movie Files
Group: System/Libraries
%description -n %{name}%{sover}
A library for reading and writing Quicktime movie files, based on and
forked from quicktime4linux.
%package -n libquicktime-devel
Summary: Library for reading/writing quicktime movie files
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: %{name}%{sover} = %{version}
%if 0%{?BUILD_ORIG}
Requires: %{name}-orig-addon = %{version}
%endif
%description -n libquicktime-devel
library for reading/writing quicktime movie files, based on and forked
from quicktime4linux
%package -n libquicktime-tools
Summary: Libquicktime Tools
Group: Productivity/Multimedia/Video/Editors and Convertors
Requires: %{name} = %{version}
Requires: %{name}%{sover} = %{version}
%if 0%{?BUILD_ORIG}
Requires: %{name}-orig-addon = %{version}
%endif
%description -n libquicktime-tools
Tools for reading/writing quicktime movie files.
%lang_package
%prep
%setup -q -n %{name}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
# Replace licence with wrong FSF address
cp -v %{SOURCE1} .
%build
echo 'HTML_TIMESTAMP=NO' >> doc/Doxyfile.in
./autogen.sh
%configure \
--enable-gpl \
--docdir="%{_docdir}/%{name}-devel" \
--with-libdv \
--with-cpuflags=none \
--without-gtk
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
ln -s lqt "%{buildroot}%{_includedir}/quicktime"
%find_lang %{name} %{?no_lang_C}
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libquicktime%{sover} -p /sbin/ldconfig
%postun -n libquicktime%{sover} -p /sbin/ldconfig
%files
%defattr(0644,root,root,0755)
%doc ChangeLog README TODO
%dir %{_libdir}/libquicktime
%{_libdir}/libquicktime/lqt_audiocodec.so
%{_libdir}/libquicktime/lqt_dv.so
%{_libdir}/libquicktime/lqt_lame.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
%{_libdir}/libquicktime/lqt_ffmpeg.so
%if 0%{?BUILD_ORIG}
%files orig-addon
%defattr(0644,root,root,0755)
%if %{with faac}
%{_libdir}/libquicktime/lqt_faac.so
%endif
%if %{with faad}
%{_libdir}/libquicktime/lqt_faad2.so
%endif
%if %{with x264}
%{_libdir}/libquicktime/lqt_x264.so
%endif
%endif
%files -n libquicktime%{sover}
%defattr(0644,root,root,0755)
%doc COPYING
%{_libdir}/libquicktime.so.%{sover}
%{_libdir}/libquicktime.so.%{sover}.*.*
%files -n libquicktime-devel
%defattr(0644,root,root,0755)
%doc %{_docdir}/%{name}-devel
%{_includedir}/lqt
%{_includedir}/quicktime
%{_libdir}/libquicktime.so
%{_libdir}/pkgconfig/libquicktime.pc
%files -n libquicktime-tools
%defattr(-,root,root)
%{_bindir}/lqt_transcode
%{_bindir}/lqtplay
%{_bindir}/lqtremux
%{_bindir}/qt2text
%{_bindir}/qtdechunk
%{_bindir}/qtdump
%{_bindir}/qtinfo
%{_bindir}/qtrechunk
%{_bindir}/qtstreamize
%{_bindir}/qtyuv4toyuv
%{_mandir}/man1/lqtplay.1%{ext_man}
%files lang -f %{name}.lang
%defattr(-,root,root)
%changelog