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

226 lines
6.7 KiB
RPMSpec

#
# spec file for package libquicktime (Version 1.0.3)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libquicktime
BuildRequires: alsa-devel doxygen gtk2-devel libavc1394-devel libdv-devel libjpeg-devel libvorbis-devel sed
%if %suse_version > 1020
BuildRequires: fdupes
%endif
%define DISTRIBUTABLE 1
License: LGPL v2.1 or later
Group: Development/Libraries/Other
AutoReqProv: on
Version: 1.0.3
Release: 3
Url: http://libquicktime.sf.net
Source0: %{name}-%{version}.tar.bz2
Patch1: %{name}-%{version}-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
%{?suse_update_config:%{suse_update_config -f}}
%configure \
--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
%install
make DESTDIR="%{buildroot}" install
ln -s lqt %{buildroot}/usr/include/quicktime
%if %suse_version > 1020
%fdupes "%{buildroot}"
%endif
%clean
rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%{_bindir}/*
%exclude %{_bindir}/lqt-config
%{_libdir}/lib*.so.*
%dir %{_libdir}/libquicktime
%{_libdir}/libquicktime/lqt_*.so
%{_mandir}/man1/*
%{_datadir}/locale/de/LC_MESSAGES/libquicktime.mo
%doc ChangeLog COPYING
%files devel
%defattr(-, root, root)
%{_bindir}/lqt-config
%dir %{_includedir}/lqt
%{_includedir}/lqt/*.h
%{_includedir}/quicktime
%attr(644,root,root) %{_libdir}/lib*.la
%attr(644,root,root) %{_libdir}/libquicktime/lqt_*.la
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/libquicktime.pc
%{_datadir}/aclocal/lqt.m4
%doc %{_defaultdocdir}/%{name}-devel
%changelog
* Thu Jul 17 2008 puzel@suse.cz
- specfile fixes
* use configure macro
* fix htmldir location
* use %%fdupes only on suse > 10.2
* Tue Jul 15 2008 puzel@suse.cz
- update to 1.0.3
* dnxhd decoding support
* double precision audio I/O
* bugfixes
- add doxygen to BuildRequires
- license changed to LGPL v2 or later
- use RPM_OPT_FLAGS
- minor .spec fixes
* Tue Apr 15 2008 pcerny@suse.cz
- update to 1.0.2
* removing libquicktime-1.0.0-arrayoverflow.patch
(merged in upstream)
* Fri Jul 27 2007 maw@suse.de
- Add dont-disable-deprecated.patch
- Use %%fdupes.
* Sat May 12 2007 olh@suse.de
- remove unneded Requires libraw1394-devel
* Wed May 09 2007 pcerny@suse.cz
- minor .spec file changes (%%suse_update_config)
* Fri May 04 2007 pcerny@suse.cz
- update to 1.0.0 which is considered final wrt functionality
- .spec file cleanup
- fixed #218037
* Tue Oct 10 2006 pnemec@suse.cz
- updated to 0.9.10
Read/Write support for: DVCPRO50 video, OpenDML AVIs, mp4/m4a files
and Quicktime 7 lpcm audio
H.264 encoding using x264.
Improved compatibility with players: Quicktime 7, WMP, Divx player
see http://libquicktime.sourceforge.net/ for detailed changelog
- minor changes in patch -mjpeg_def_huffman.diff and legal.diff
* Fri Feb 10 2006 bk@suse.de
- fix optimisation (used P4 insns!) and force using RPM_OPT_FLAGS
- fix firewire support (libdv-devel was splitted from libdv)
- remove the forced backout of MMX instructions (obsolete)
- don't include unused libquicktime-cflags.diff
* Sat Feb 04 2006 aj@suse.de
- Reduce BuildRequires.
* Sun Jan 29 2006 aj@suse.de
- Fix BuildRequires.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Sep 15 2005 jw@suse.de
- added support for mjpeg files without
huffman tables.
* Fri Jul 29 2005 kraxel@suse.de
- fix -devel package dependencies.
* Fri Jul 29 2005 kraxel@suse.de
- add backward compatibility symlink to the new include file location.
* Thu Jul 28 2005 kraxel@suse.de
- update to 0.9.7.
* Mon Apr 18 2005 ro@suse.de
- make it build with gcc-4
* Thu Jan 13 2005 kraxel@suse.de
- update to 0.9.4.
* Tue Aug 17 2004 kraxel@suse.de
- update to 0.9.3.
* Thu Apr 22 2004 kraxel@suse.de
- fix compiler warnings.
* Wed Feb 11 2004 kraxel@suse.de
- update to version 0.9.2.
* Sat Jan 10 2004 adrian@suse.de
- add %%run_dconfig
- -devel package requires glibc-devel now
* Fri Jul 25 2003 kraxel@suse.de
- more cflags fixes, also builds on ppc now ...
* Wed Jul 23 2003 kraxel@suse.de
- play with cflags to make thing build on all archs.
* Mon Jun 16 2003 kukuk@suse.de
- More filelist fixes
* Thu Jun 12 2003 kukuk@suse.de
- Add missing directory to filelist
- *.la file should be mode 644
* Fri May 16 2003 ro@suse.de
- fix build with current libtool
* Mon Aug 12 2002 kraxel@suse.de
- fixed Requires: for the -devel package.
* Wed Jul 31 2002 kraxel@suse.de
- fixed plugin path lookup for lib64.
* Sat Jul 27 2002 adrian@suse.de
- fix neededforbuild
* Mon Jul 15 2002 kraxel@suse.de
- fixed permission issues with fix-libtool script.
* Wed Jul 10 2002 uli@suse.de
- forgot to re-enable %%clean section
* Wed Jul 10 2002 uli@suse.de
- replace "SDL SDL-devel" with "SDL-devel-packages" in neededforbuild
(fixes libdv detection)
- fixed MMX detection, then disabled it :) (no runtime detection)
- added DISTRIBUTABLE flag to facilitate full-featured rebuild
* Thu Jun 27 2002 kraxel@suse.de
- fixed neededforbuild.
* Mon Jun 24 2002 kraxel@suse.de
- updated to version 0.9.1
* Mon Jun 24 2002 ro@suse.de
- run full autoreconf to also get shared lib on x86_64
* Fri Jun 21 2002 ro@suse.de
- run libtoolize to build also on archs that are
younger than a decade
* Thu Jun 20 2002 kraxel@suse.de
- fixed build problems by using $RPM_OPT_FLAGS
- disabled divx codec (divx/mpeg4 is patent minefield, sorry folks ...).
* Mon Jun 17 2002 kraxel@suse.de
- initial release.