forked from pool/libquicktime
125 lines
3.3 KiB
RPMSpec
125 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package libquicktime (Version 1.1.3)
|
|
#
|
|
# Copyright (c) 2009 SUSE LINUX Products 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: libquicktime
|
|
BuildRequires: alsa-devel
|
|
BuildRequires: doxygen
|
|
BuildRequires: gtk2-devel
|
|
BuildRequires: libavc1394-devel
|
|
BuildRequires: libdv-devel
|
|
BuildRequires: libjpeg-devel
|
|
BuildRequires: libvorbis-devel
|
|
BuildRequires: dirac-devel
|
|
BuildRequires: sed
|
|
BuildRequires: fdupes
|
|
%define DISTRIBUTABLE 1
|
|
License: LGPL v2.1 or later
|
|
Group: Development/Languages/C and C++
|
|
AutoReqProv: on
|
|
Version: 1.1.3
|
|
Release: 1
|
|
Url: http://libquicktime.sf.net
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
Patch1: %{name}-1.0.3-dont_disable_deprecated.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Summary: A Library for Reading and Writing Quicktime Movie Files
|
|
Provides: quicktime4linux
|
|
Obsoletes: quicktime4linux
|
|
|
|
%description
|
|
A library for reading and writing Quicktime movie files, based on and
|
|
forked from quicktime4linux.
|
|
|
|
|
|
|
|
%package devel
|
|
License: GPL v2 or later
|
|
Summary: Library for reading/writing quicktime movie files
|
|
Group: Development/Libraries/Other
|
|
Provides: quicktime4linux-devel
|
|
Obsoletes: quicktime4linux-devel
|
|
Requires: %{name} = %{version}
|
|
Requires: glibc-devel, zlib-devel, libavc1394-devel, libdv-devel
|
|
|
|
%description devel
|
|
library for reading/writing quicktime movie files, based on and forked
|
|
from quicktime4linux
|
|
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
# fix brokem links in API docs
|
|
sed -r 's/"(building|codecs|index|license|opening|positioning|reading|util|writing).html/"qt4l_&/' -i `find doc -type f`
|
|
%patch1 -p1
|
|
|
|
%build
|
|
autoreconf -f -i -v
|
|
%configure --with-pic \
|
|
--docdir=%{_defaultdocdir}/%{name}-devel \
|
|
--htmldir=%{_defaultdocdir}/%{name}-devel/html \
|
|
--enable-gpl \
|
|
%if %DISTRIBUTABLE
|
|
--without-faac \
|
|
--without-faad2 \
|
|
--without-ffmpeg \
|
|
--without-lame \
|
|
--without-x264 \
|
|
%endif
|
|
--disable-static
|
|
%{__make} %{?jobs:-j%jobs}
|
|
|
|
%install
|
|
make DESTDIR="%{buildroot}" install
|
|
ln -s lqt %{buildroot}/usr/include/quicktime
|
|
%find_lang %{name}
|
|
find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} +
|
|
%fdupes "%{buildroot}"
|
|
|
|
%clean
|
|
rm -rf "%{buildroot}"
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-, root, root)
|
|
%{_bindir}/*
|
|
%exclude %{_bindir}/lqt-config
|
|
%{_libdir}/lib*.so.*
|
|
%dir %{_libdir}/libquicktime
|
|
%{_libdir}/libquicktime/lqt_*.so
|
|
%{_mandir}/man1/*
|
|
%doc ChangeLog COPYING
|
|
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%{_bindir}/lqt-config
|
|
%dir %{_includedir}/lqt
|
|
%{_includedir}/lqt/*.h
|
|
%{_includedir}/quicktime
|
|
%{_libdir}/lib*.so
|
|
%{_libdir}/pkgconfig/libquicktime.pc
|
|
%{_datadir}/aclocal/lqt.m4
|
|
%doc %{_defaultdocdir}/%{name}-devel
|
|
|
|
%changelog
|