From bd512eb0df2a164534ee230f0d6d23dc40e2d49bfe0a585d3a83a56aad414fa9 Mon Sep 17 00:00:00 2001 From: Dave Plater Date: Thu, 28 Apr 2011 20:38:49 +0000 Subject: [PATCH] Accepting request 68733 from home:RedDwarf:branches:multimedia:libs - rebased on Packman package. Now it will be shared between both repositories. OBS-URL: https://build.opensuse.org/request/show/68733 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libquicktime?expand=0&rev=20 --- _service | 17 ++ ...ss:download_url:libquicktime-1.2.2.tar.bz2 | 3 + _service:set_version:libquicktime.spec | 134 ++++++++++++++ ...cktime-1.0.3-dont_disable_deprecated.patch | 12 -- libquicktime-1.2.2.tar.bz2 | 3 - libquicktime.changes | 6 + libquicktime.spec | 173 ++++++++++-------- 7 files changed, 255 insertions(+), 93 deletions(-) create mode 100644 _service create mode 100644 _service:recompress:download_url:libquicktime-1.2.2.tar.bz2 create mode 100644 _service:set_version:libquicktime.spec delete mode 100644 libquicktime-1.0.3-dont_disable_deprecated.patch delete mode 100644 libquicktime-1.2.2.tar.bz2 diff --git a/_service b/_service new file mode 100644 index 0000000..132ac0b --- /dev/null +++ b/_service @@ -0,0 +1,17 @@ + + + + http + downloads.sourceforge.net + /project/libquicktime/libquicktime/1.2.2/libquicktime-1.2.2.tar.gz + + + _service:download_url:libquicktime-1.2.2.tar.gz + sha256 + a83ddaaeaf98231d9f224190dcb8810ebdabd3edb5c8cebe2fb083d25edb7436 + + + *.gz + + + diff --git a/_service:recompress:download_url:libquicktime-1.2.2.tar.bz2 b/_service:recompress:download_url:libquicktime-1.2.2.tar.bz2 new file mode 100644 index 0000000..ba2838a --- /dev/null +++ b/_service:recompress:download_url:libquicktime-1.2.2.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29922a3a5e6b2c462353caae3512680a9ca54cc4c4bc014dde1a7b20cd0ec04c +size 789858 diff --git a/_service:set_version:libquicktime.spec b/_service:set_version:libquicktime.spec new file mode 100644 index 0000000..a02bfb0 --- /dev/null +++ b/_service:set_version:libquicktime.spec @@ -0,0 +1,134 @@ +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +%define soname 0 + +%bcond_without distributable + +Name: libquicktime +Version: 1.2.2 +Release: 0 +License: GNU General Public License version 2 or later (GPL v2 or later) +Summary: Library for Reading and Writing Quicktime Movie Files +Url: http://libquicktime.sf.net +Group: System/Libraries +# http://prdownloads.sourceforge.net/libquicktime/libquicktime-%{version}.tar.gz +Source: libquicktime-%{version}.tar.bz2 +BuildRequires: Mesa-devel +BuildRequires: alsa-devel +BuildRequires: doxygen +BuildRequires: gtk2-devel +BuildRequires: libdv-devel +BuildRequires: libjpeg-devel +BuildRequires: libvorbis-devel +BuildRequires: pkg-config +BuildRequires: schroedinger-devel +%if !%{with distributable} +BuildRequires: libfaac-devel +BuildRequires: libfaad2-devel +BuildRequires: libffmpeg-devel +BuildRequires: libmp3lame-devel +BuildRequires: libx264-devel +%endif +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%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} +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 + +%build +%configure \ + --enable-gpl \ + --docdir="%{_docdir}/%{name}-devel" \ + --with-libdv \ + --with-cpuflags=none +make %{?_smp_mflags} + +%install +%makeinstall +ln -s lqt "%{buildroot}%{_includedir}/quicktime" +%find_lang libquicktime +find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print + +%clean +%{?buildroot:rm -rf %{buildroot}} + +%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 distributable} +%{_libdir}/libquicktime/lqt_faac.so +%{_libdir}/libquicktime/lqt_faad2.so +%{_libdir}/libquicktime/lqt_ffmpeg.so +%{_libdir}/libquicktime/lqt_lame.so +%{_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 +%doc %{_mandir}/man1/lqtplay.1%{ext_man} diff --git a/libquicktime-1.0.3-dont_disable_deprecated.patch b/libquicktime-1.0.3-dont_disable_deprecated.patch deleted file mode 100644 index e1fcac3..0000000 --- a/libquicktime-1.0.3-dont_disable_deprecated.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- libquicktime-1.0.3/configure.ac.fix 2008-07-15 10:03:46.000000000 +0200 -+++ libquicktime-1.0.3/configure.ac 2008-07-15 10:05:57.000000000 +0200 -@@ -393,7 +393,8 @@ - AC_SUBST(GTK_REQUIRED) - - dnl Always be in sync with the newest gtk --GTK_CFLAGS="$GTK_CFLAGS -DGTK_DISABLE_DEPRECATED" -+dnl Ha ha! I thwart thee! -+GTK_CFLAGS="$GTK_CFLAGS" - - dnl - dnl Check for libdv diff --git a/libquicktime-1.2.2.tar.bz2 b/libquicktime-1.2.2.tar.bz2 deleted file mode 100644 index e458c14..0000000 --- a/libquicktime-1.2.2.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:93b732e48b266832302e820fb8e1eb07addf0cc59da6163fd924662399009ae0 -size 782988 diff --git a/libquicktime.changes b/libquicktime.changes index 8376448..e5c9d3f 100644 --- a/libquicktime.changes +++ b/libquicktime.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Apr 28 19:27:12 UTC 2011 - reddwarf@opensuse.org + +- rebased on Packman package. Now it will be shared between both + repositories. + ------------------------------------------------------------------- Fri Apr 14 13:38:21 UTC 2011 - toddrme2178@gmail.com diff --git a/libquicktime.spec b/libquicktime.spec index 415c304..a66a8d4 100644 --- a/libquicktime.spec +++ b/libquicktime.spec @@ -1,117 +1,134 @@ # -# spec file for package libquicktime -# -# Copyright (c) 2011 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/ # +%define soname 0 +%bcond_without distributable Name: libquicktime -Version: 1.2.2 -Release: 1 -%define DISTRIBUTABLE 1 -License: LGPLv2.1+ -Summary: A Library for Reading and Writing Quicktime Movie Files +Version: to_be_filled_by_service +Release: 0 +License: GNU General Public License version 2 or later (GPL v2 or later) +Summary: Library for Reading and Writing Quicktime Movie Files Url: http://libquicktime.sf.net -Group: Development/Languages/C and C++ -Source0: %{name}-%{version}.tar.bz2 -# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches -Patch1: %{name}-1.0.3-dont_disable_deprecated.patch +Group: System/Libraries +# http://prdownloads.sourceforge.net/libquicktime/libquicktime-%{version}.tar.gz +Source: libquicktime-%{version}.tar.bz2 +BuildRequires: Mesa-devel BuildRequires: alsa-devel -BuildRequires: dirac-devel BuildRequires: doxygen -BuildRequires: fdupes -BuildRequires: libavc1394-devel +BuildRequires: gtk2-devel BuildRequires: libdv-devel BuildRequires: libjpeg-devel BuildRequires: libvorbis-devel -BuildRequires: gtk2-devel -BuildRequires: sed +BuildRequires: pkg-config +BuildRequires: schroedinger-devel +%if !%{with distributable} +BuildRequires: libfaac-devel +BuildRequires: libfaad2-devel +BuildRequires: libffmpeg-devel +BuildRequires: libmp3lame-devel +BuildRequires: libx264-devel +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description A library for reading and writing Quicktime movie files, based on and forked from quicktime4linux. -%package devel -License: GPLv2+ -Summary: Library for reading/writing quicktime movie files -Group: Development/Libraries/Other -Requires: %{name} = %{version} -Requires: glibc-devel, -Requires: libavc1394-devel, -Requires: libdv-devel -Requires: zlib-devel, +%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} +Obsoletes: libquicktime <= 1.2.2 -%description devel +%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 -# 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 +%configure \ + --enable-gpl \ + --docdir="%{_docdir}/%{name}-devel" \ + --with-libdv \ + --with-cpuflags=none make %{?_smp_mflags} %install -%make_install -ln -s lqt %{buildroot}%{_includedir}/quicktime -%find_lang %{name} -find %{buildroot} -type f -name "*.la" -delete -print -%fdupes %{buildroot} +%makeinstall +ln -s lqt "%{buildroot}%{_includedir}/quicktime" +%find_lang libquicktime +find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print %clean -rm -rf %{buildroot} +%{?buildroot:rm -rf %{buildroot}} -%post -p /sbin/ldconfig +%post -n libquicktime%{soname} -p /sbin/ldconfig +%postun -n libquicktime%{soname} -p /sbin/ldconfig -%postun -p /sbin/ldconfig - -%files -f %{name}.lang -%defattr(-, root, root) -%{_bindir}/* -%exclude %{_bindir}/libquicktime_config -%{_libdir}/lib*.so.* +%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_*.so -%{_mandir}/man1/* -%doc ChangeLog COPYING +%{_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 distributable} +%{_libdir}/libquicktime/lqt_faac.so +%{_libdir}/libquicktime/lqt_faad2.so +%{_libdir}/libquicktime/lqt_ffmpeg.so +%{_libdir}/libquicktime/lqt_lame.so +%{_libdir}/libquicktime/lqt_x264.so +%endif -%files devel -%defattr(-, root, root) -%{_bindir}/libquicktime_config -%dir %{_includedir}/lqt -%{_includedir}/lqt/*.h +%files -n libquicktime-devel +%defattr(0644,root,root,0755) +%doc %{_docdir}/%{name}-devel +%{_includedir}/lqt %{_includedir}/quicktime -%{_libdir}/lib*.so +%{_libdir}/libquicktime.so %{_libdir}/pkgconfig/libquicktime.pc -%doc %{_defaultdocdir}/%{name}-devel -%changelog +%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 +%doc %{_mandir}/man1/lqtplay.1%{ext_man}