forked from pool/libquicktime
197 lines
5.9 KiB
RPMSpec
197 lines
5.9 KiB
RPMSpec
|
#
|
||
|
# spec file for package libquicktime (Version 0.9.10)
|
||
|
#
|
||
|
# Copyright (c) 2006 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 gtk2-devel libavc1394-devel libdv-devel libjpeg-devel libvorbis-devel
|
||
|
%define DISTRIBUTABLE 1
|
||
|
License: GPL
|
||
|
Group: Development/Libraries/Other
|
||
|
Autoreqprov: on
|
||
|
Version: 0.9.10
|
||
|
Release: 1
|
||
|
URL: http://libquicktime.sf.net
|
||
|
Source0: %{name}-%{version}.tar.bz2
|
||
|
Source1: fix-libtool
|
||
|
Patch1: %{name}-legal.diff
|
||
|
Patch3: %{name}-lib64.diff
|
||
|
Patch4: %{name}-gcc4.diff
|
||
|
Patch5: %{name}-mjpeg_def_huffman.diff
|
||
|
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
|
||
|
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, libraw1394-devel, libdv-devel
|
||
|
|
||
|
%description devel
|
||
|
library for reading/writing quicktime movie files, based on and forked
|
||
|
from quicktime4linux
|
||
|
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
%if %DISTRIBUTABLE
|
||
|
%patch1
|
||
|
%endif
|
||
|
%patch3 -p1 -b .lib64
|
||
|
#%patch4 -p0 -b .gcc4
|
||
|
%patch5
|
||
|
# the default cpuinfo.sh sets e.g. -march=pentium4 if cpuinfo says P4:
|
||
|
echo \
|
||
|
echo $RPM_OPT_FLAGS -fexpensive-optimizations >cpuinfo.sh
|
||
|
|
||
|
%build
|
||
|
autoreconf --force --install # autoreconf does libtoolize and update_config
|
||
|
./configure --prefix=/usr \
|
||
|
--x-includes=/usr/X11R6/include \
|
||
|
--x-libraries=/usr/X11R6/%{_lib} \
|
||
|
--libdir=%{_libdir} \
|
||
|
--mandir=%{_mandir} \
|
||
|
--enable-static
|
||
|
sh $RPM_SOURCE_DIR/fix-libtool .
|
||
|
make
|
||
|
|
||
|
%install
|
||
|
test "%{buildroot}" != "" -a "%{buildroot}" != "/" \
|
||
|
&& rm -rf "%{buildroot}"
|
||
|
sh $RPM_SOURCE_DIR/fix-libtool .
|
||
|
make DESTDIR="%{buildroot}" install
|
||
|
rm %{buildroot}/usr/lib*/libquicktime/lqt_*.a
|
||
|
rm %{buildroot}/usr/lib*/libquicktime/lqt_*.la
|
||
|
ln -s lqt %{buildroot}/usr/include/quicktime
|
||
|
#find %{buildroot} -print # debug
|
||
|
|
||
|
%clean
|
||
|
rm -rf "%{buildroot}"
|
||
|
|
||
|
%post
|
||
|
%run_ldconfig
|
||
|
|
||
|
%postun
|
||
|
%run_ldconfig
|
||
|
|
||
|
%files
|
||
|
%defattr(-, root, root)
|
||
|
/usr/bin/*
|
||
|
%{_libdir}/lib*.so.*
|
||
|
%dir %{_libdir}/libquicktime
|
||
|
%{_libdir}/libquicktime/lqt_*.so
|
||
|
%{_mandir}/man1/*
|
||
|
%doc [A-LN-Z]*
|
||
|
|
||
|
%files devel
|
||
|
%defattr(-, root, root)
|
||
|
%attr(644,root,root) %{_libdir}/lib*.la
|
||
|
%attr(644,root,root) %{_libdir}/lib*.a
|
||
|
%{_libdir}/lib*.so
|
||
|
%dir /usr/include/lqt
|
||
|
/usr/include/lqt/*.h
|
||
|
/usr/include/quicktime
|
||
|
/usr/share/aclocal/lqt.m4
|
||
|
%{_libdir}/pkgconfig/libquicktime.pc
|
||
|
|
||
|
%changelog -n libquicktime
|
||
|
* 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.
|
||
|
* Fri Jul 26 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.
|