packages: handbrake/disable-download.patch (NEW), handbrake/handbrake.spec ...

glen glen at pld-linux.org
Tue Aug 16 09:30:32 CEST 2011


Author: glen                         Date: Tue Aug 16 07:30:32 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial, based on
  http://pkgrepo.linuxtech.net/el6/release/source/handbrake-0.9.5-1.el6.src.rpm

---- Files affected:
packages/handbrake:
   disable-download.patch (NONE -> 1.1)  (NEW), handbrake.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/handbrake/disable-download.patch
diff -u /dev/null packages/handbrake/disable-download.patch:1.1
--- /dev/null	Tue Aug 16 09:30:32 2011
+++ packages/handbrake/disable-download.patch	Tue Aug 16 09:30:26 2011
@@ -0,0 +1,27 @@
+--- HandBrake-0.9.5/make/configure.py-orig	2011-03-14 05:48:41.338109218 +0100
++++ HandBrake-0.9.5/make/configure.py	2011-03-14 05:51:25.168107644 +0100
+@@ -1228,7 +1228,7 @@
+     class Tools:
+         ar    = ToolProbe( 'AR.exe',    'ar' )
+         cp    = ToolProbe( 'CP.exe',    'cp' )
+-        curl  = ToolProbe( 'CURL.exe',  'curl', abort=False )
++        ##curl  = ToolProbe( 'CURL.exe',  'curl', abort=False )
+         gcc   = ToolProbe( 'GCC.gcc',   'gcc', IfHost( 'gcc-4', '*-*-cygwin*' ))
+ 
+         if host.match( '*-*-darwin*' ):
+@@ -1243,13 +1243,13 @@
+         ranlib = ToolProbe( 'RANLIB.exe', 'ranlib' )
+         strip  = ToolProbe( 'STRIP.exe',  'strip' )
+         tar    = ToolProbe( 'TAR.exe',    'gtar', 'tar' )
+-        wget   = ToolProbe( 'WGET.exe',   'wget', abort=False )
++        ##wget   = ToolProbe( 'WGET.exe',   'wget', abort=False )
+         yasm   = ToolProbe( 'YASM.exe',   'yasm', abort=False )
+ 
+         xcodebuild = ToolProbe( 'XCODEBUILD.exe', 'xcodebuild', abort=False )
+         lipo       = ToolProbe( 'LIPO.exe',       'lipo', abort=False )
+ 
+-        fetch = SelectTool( 'FETCH.select', 'fetch', ['wget',wget], ['curl',curl] )
++        ##fetch = SelectTool( 'FETCH.select', 'fetch', ['wget',wget], ['curl',curl] )
+ 
+     ## run tool probes
+     for tool in ToolProbe.tools:

================================================================
Index: packages/handbrake/handbrake.spec
diff -u /dev/null packages/handbrake/handbrake.spec:1.1
--- /dev/null	Tue Aug 16 09:30:32 2011
+++ packages/handbrake/handbrake.spec	Tue Aug 16 09:30:26 2011
@@ -0,0 +1,135 @@
+# $Revision$, $Date$
+Summary:	A program to transcode DVDs and other sources to MPEG-4 and MKV
+Name:		handbrake
+Version:	0.9.5
+Release:	0.1
+License:	GPL v2+
+Group:		Applications/Multimedia
+URL:		http://handbrake.fr/
+# in order to get HandBrake to identify itself as version 0.9.5 rather
+# than svn rev3735 the source code tarball has been generated as follows:
+# svn co -r 3735 svn://svn.handbrake.fr/HandBrake/tags/0.9.5 HandBrake-0.9.5
+# tar cvfj HandBrake-0.9.5.tar.bz2 HandBrake-0.9.5/
+Source0:	HandBrake-%{version}.tar.bz2
+# Source0-md5:	31e75e6d26ed02a2355e1b898d4587a4
+# Source1 is a tarball of the downloads/ folder that contains third party
+# libraries required and automatically downloaded by HandBrake the first
+# time 'make' is run. If you update Source0 to a newer release you must
+# recreate an updated Source1 tarball for it too!
+Source1:	HandBrake-%{version}-contrib-tarballs.tar.bz2
+# Source1-md5:	4a5c76949ebe23210d5e21c2a316b308
+Patch0:		disable-download.patch
+BuildRequires:	bzip2-devel
+BuildRequires:	curl-devel
+BuildRequires:	dbus-glib-devel
+BuildRequires:	glib2-devel
+BuildRequires:	gstreamer-devel
+BuildRequires:	gstreamer-plugins-base-devel
+BuildRequires:	gtk+2-devel
+BuildRequires:	gtk-webkit-devel
+BuildRequires:	intltool
+BuildRequires:	libnotify-devel
+BuildRequires:	libstdc++-devel
+BuildRequires:	libtool
+BuildRequires:	m4
+BuildRequires:	python
+BuildRequires:	subversion
+BuildRequires:	udev-glib-devel
+BuildRequires:	yasm
+BuildRequires:	zlib-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+HandBrake is an open-source, GPL-licensed, multi-platform,
+multi-threaded transcoder, available for MacOS X, Linux and Windows.
+
+%package gui
+Summary:	A program to transcode DVDs and other sources to MPEG-4 and MKV
+Group:		Applications/Multimedia
+Requires:	gstreamer-ffmpeg
+Requires:	gstreamer-plugins-bad
+Requires:	gstreamer-plugins-ugly
+Requires:	gtk+2
+Requires:	libdvdcss
+Obsoletes:	HandBrake
+Obsoletes:	handbrake
+
+%package cli
+Summary:	A program to transcode DVDs and other sources to MPEG-4 and MKV
+Group:		Applications/Multimedia
+Requires:	gtk-update-icon-cache
+Requires:	libdvdcss
+Obsoletes:	HandBrake
+Obsoletes:	handbrake
+
+%description gui
+HandBrake is an open-source, GPL-licensed, multi-platform,
+multi-threaded transcoder, available for MacOS X, Linux and Windows.
+
+This is the GTK GUI version of HandBrake.
+
+%description cli
+HandBrake is an open-source, GPL-licensed, multi-platform,
+multi-threaded transcoder, available for MacOS X, Linux and Windows.
+
+This is the CLI tool version of HandBrake.
+
+%prep
+%setup -q -n HandBrake-%{version} -a1
+%patch0 -p1
+
+install -d _docs
+iconv -f ISO-8859-1 -t UTF-8 CREDITS > _docs/CREDITS
+iconv -f ISO-8859-1 -t UTF-8 THANKS > _docs/THANKS
+
+%build
+export CFLAGS="%{rpmcflags}"
+export CXXFLAGS="%{rpmcxxflags}"
+export LDFLAGS="%{rpmldflags}"
+./configure \
+	--prefix=%{_prefix}
+%{__make} -C build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+cat > build/GNUmakefile.custom.defs <<EOF
+CONF.args = --prefix=$RPM_BUILD_ROOT%{_prefix}
+PREFIX    = $RPM_BUILD_ROOT%{_prefix}
+PREFIX/   = $RPM_BUILD_ROOT%{_prefix}/
+EOF
+%{__make} -C build install
+
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
+install -Dp gtk/src/hb-icon.64.png \
+      $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps/hb-icon.png
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post gui
+%update_icon_cache_post hicolor
+
+%postun gui
+%update_icon_cache_post hicolor
+
+%files gui
+%defattr(644,root,root,755)
+%doc AUTHORS COPYING _docs/CREDITS NEWS _docs/THANKS TRANSLATIONS
+%attr(755,root,root) %{_bindir}/ghb
+%{_desktopdir}/ghb.desktop
+%{_iconsdir}/hicolor/64x64/apps/hb-icon.png
+%{_iconsdir}/hicolor/128x128/apps/hb-icon.png
+
+%files cli
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/HandBrakeCLI
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/08/16 07:30:26  glen
+- initial, based on
+  http://pkgrepo.linuxtech.net/el6/release/source/handbrake-0.9.5-1.el6.src.rpm
================================================================


More information about the pld-cvs-commit mailing list