SHA256
1
0
forked from pool/libquicktime
libquicktime/libquicktime.spec

191 lines
5.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libquicktime
#
# Copyright (c) 2016 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_without ffmpeg
%bcond_with lame
%bcond_with x264
%define soname 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: System/Libraries
Url: http://libquicktime.sf.net
Source0: %{name}-%{version}.tar.gz
Source1: COPYING
Source2: baselibs.conf
Patch0: libquicktime-ffmpeg3.patch
Patch1: libquicktime-faad2.patch
BuildRequires: alsa-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: doxygen
BuildRequires: gtk2-devel
BuildRequires: libdv-devel
BuildRequires: libjpeg-devel
BuildRequires: libtool
BuildRequires: libvorbis-devel
BuildRequires: pkg-config
BuildRequires: schroedinger-devel
BuildRequires: pkgconfig(gl)
%if %{with ffmpeg}
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libswscale)
%endif
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xaw7)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xt)
BuildRequires: pkgconfig(xv)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %{with faac}
BuildRequires: libfaac-devel
%endif
%if %{with faad}
BuildRequires: libfaad2-devel
%endif
%if %{with lame}
BuildRequires: libmp3lame-devel
%endif
%if %{with x264}
BuildRequires: libx264-devel
%endif
%description
A library for reading and writing Quicktime movie files, based on and
forked from quicktime4linux.
%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
Provides: libquicktime = %{version}-%{release}
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
Summary: Library for reading/writing quicktime movie files
Group: Development/Libraries/C and C++
Requires: %{name}%{soname} = %{version}
%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}%{soname} = %{version}
%description -n libquicktime-tools
Tools for reading/writing quicktime movie files.
%prep
%setup -q -n %{name}
%patch0 -p1
%patch1 -p1
sed -i 's/-DGTK_DISABLE_DEPRECATED//g' configure.ac
# 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
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
ln -s lqt "%{buildroot}%{_includedir}/quicktime"
%find_lang libquicktime
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libquicktime%{soname} -p /sbin/ldconfig
%postun -n libquicktime%{soname} -p /sbin/ldconfig
%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}.*.*
%dir %{_libdir}/libquicktime
%{_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
%if %{with ffmpeg}
%{_libdir}/libquicktime/lqt_ffmpeg.so
%endif
%if %{with faac}
%{_libdir}/libquicktime/lqt_faac.so
%endif
%if %{with faad}
%{_libdir}/libquicktime/lqt_faad2.so
%endif
%if %{with lame}
%{_libdir}/libquicktime/lqt_lame.so
%endif
%if %{with x264}
%{_libdir}/libquicktime/lqt_x264.so
%endif
%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}/libquicktime_config
%{_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}
%changelog