Projects
Multimedia
handbrake
handbrake.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File handbrake.spec of Package handbrake (Revision 9)
Currently displaying revision
9
,
Show latest
# vim: set sw=4 ts=4 et: # Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org> # # 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/ Name: handbrake Version: 0.9.9 Release: 1.pm.1 License: GPL-2.0+ Summary: Multithreaded Video Transcoder Url: http://handbrake.fr/ Group: Productivity/Multimedia/Video/Editors and Convertors # svn://svn.handbrake.fr/HandBrake/trunk#%{rev} #Source: HandBrake-svn%{rev}.tar.bz2 Source: http://prdownloads.sourceforge.net/handbrake/HandBrake-%{version}.tar.bz2 Source101: http://download.handbrake.fr/handbrake/contrib/a52dec-0.7.4.tar.gz Source102: http://download.handbrake.fr/handbrake/contrib/faac-1.28.tar.gz #Source103: http://download.handbrake.fr/handbrake/contrib/faad2-2.7.tar.gz Source104: http://download.handbrake.fr/handbrake/contrib/libav-v9.6.tar.bz2 Source105: http://download.handbrake.fr/handbrake/contrib/yasm-1.2.0.tar.gz Source106: http://download.handbrake.fr/handbrake/contrib/lame-3.98.tar.gz Source107: http://download.handbrake.fr/handbrake/contrib/libdvdread-svn1168.tar.gz Source108: http://download.handbrake.fr/handbrake/contrib/libdvdnav-svn1168.tar.gz Source109: http://download.handbrake.fr/handbrake/contrib/libmkv-0.6.5-0-g82075ae.tar.gz Source110: http://download.handbrake.fr/handbrake/contrib/mp4v2-trunk-r355.tar.bz2 Source111: http://download.handbrake.fr/handbrake/contrib/mpeg2dec-0.5.1.tar.gz Source112: http://download.handbrake.fr/handbrake/contrib/x264-r2273-b3065e6.tar.gz Source113: http://download.handbrake.fr/handbrake/contrib/libbluray-0.2.3.tar.bz2 #Source120: http://download.handbrake.fr/handbrake/contrib/libdca-r81-strapped.tar.gz Source151: handbrake-ffmpeg_fix_missing_return_in_nonvoid_function.patch Source152: handbrake-libmkv_no_return_in_nonvoid_function.patch %if 0%{?suse_version} <= 1140 Source153: handbrake-libbluray-glibc_older_2_12.patch %endif Source99: handbrake-rpmlintrc BuildRequires: alsa-devel BuildRequires: curl BuildRequires: fribidi-devel BuildRequires: gstreamer-0_10-plugins-base-devel BuildRequires: gtkhtml2-devel BuildRequires: libbz2-devel BuildRequires: libcurl-devel BuildRequires: libicu-devel BuildRequires: libxslt-devel BuildRequires: python BuildRequires: sqlite3-devel BuildRequires: subversion BuildRequires: wget BuildRequires: zlib-devel %if 0%{?suse_version} == 1210 BuildRequires: gstreamer-utils %endif BuildRequires: pkgconfig(gstreamer-0.10) BuildRequires: pkgconfig(gtk+-2.0) >= 2.24 # systemd-mini/udev-mini currently missing in Factory-repo %if 0%{?suse_version} > 1230 BuildRequires: libudev1 libudev-devel BuildRequires: libgudev-1_0-0 libgudev-1_0-devel %else BuildRequires: pkgconfig(gudev-1.0) %endif BuildRequires: pkgconfig(libnotify) BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} <= 1140 BuildRequires: pkgconfig(hal) %endif BuildRequires: pkgconfig(dbus-glib-1) %if 0%{?suse_version} >= 1110 BuildRequires: libwebkit-devel %else BuildRequires: WebKitGtk-devel %endif BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: glibc-devel BuildRequires: intltool BuildRequires: libtool BuildRequires: make BuildRequires: update-desktop-files BuildRequires: fontconfig-devel freetype2-devel libxml2-devel libass-devel BuildRequires: libogg-devel libvorbis-devel libtheora-devel libsamplerate-devel %description HandBrake is an open-source, GPL-licensed, multiplatform, multithreaded video transcoder. %package cli Summary: Multithreaded Video Transcoder Group: Productivity/Multimedia/Video/Editors and Convertors Obsoletes: handbrake-unstable-cli < %{version} %description cli HandBrake is an open-source, GPL-licensed, multiplatform, multithreaded video transcoder. This package contains a command-line interface for Handbrake. %package gtk Summary: Multithreaded Video Transcoder Group: Productivity/Multimedia/Video/Editors and Convertors Obsoletes: handbrake-unstable-gtk < %{version} %description gtk HandBrake is an open-source, GPL-licensed, multiplatform, multithreaded video transcoder. This package contains a GTK+ graphical user interface for Handbrake. %prep %if 0%{?rev:1} %setup -q -n "HandBrake-svn%{rev}" %else %setup -q -n "HandBrake-%{version}" %endif # unstable, so patch from 0.9.8 did not apply, use the script # used to generate the patch instead mv -i libhb/hb.h libhb/handbrake.h mv -i gtk/src/hb-backend.h gtk/src/handbrake-backend.h find \( -name '*.h' -o -name '*.c' \) -exec \ grep -l 'include.*"hb.h\|hb-backend.h"' {} + | \ xargs perl -pi -e 's/include\s*"hb.h"/include "handbrake.h"/; s/include\s*"hb-backend.h"/include "handbrake-backend.h"/' # Copy 3rd party dependencies into expected locations: mkdir download # for f in \ %{S:101} %{S:102} %{S:104} %{S:105} %{S:106} \ %{S:107} %{S:108} %{S:109} %{S:110} %{S:111} %{S:112} \ %{S:113} \ ; do ln -s "$f" download/ done # check beforehand that the versions match what the # build system expects: missing=$PWD/.missing grep -hE '\.FETCH\.url *=' contrib/*/module.defs \ | gawk -F' =' '{print $2}' \ | while read url; do f=$(echo "$url" | sed 's|^.*/||') case $f in bzip2*|libiconv*|pthreads*|zlib*|autoconf*|automake*|\ fdk-aac*|fontconfig*|freetype*|libass*|libogg*|libsamplerate*|\ libtheora*|libtool*|libvorbis*|libxml2*|m4*) continue ;; esac [ -e "$RPM_SOURCE_DIR/$f" ] || echo "$url">>"$missing" done if test -e "$missing"; then echo "ERROR: missing contrib source archives:" >&2 cat "$missing" >&2 exit 1 fi %build export CFLAGS="%{optflags} -fno-strict-aliasing -Wno-unused" export CXXFLAGS="$CFLAGS -Wno-reorder" export PATH="%{_builddir}/HandBrake-%{version}/build/contrib/bin:$PATH" cp %{S:152} contrib/libmkv/A99-fix-missing-return-in-nonvoid-function.patch %if 0%{?suse_version} <= 1140 cp %{S:153} contrib/libbluray/A99-glibc_older_2_12.patch %endif mkdir -p build ./configure \ --force \ --build="$PWD/build" \ --prefix="%{buildroot}%{_prefix}" \ --strip="/bin/true" \ --optimize=speed \ --enable-ff-mpeg2 \ --debug=max GHB_PKGS="dbus-glib-1 glib-2.0 gdk-pixbuf-2.0 gudev-1.0 webkit-1.0 libnotify" GHB_PKGS="$GHB_PKGS gstreamer-interfaces-0.10 gstreamer-0.10 gstreamer-pbutils-0.10 gstreamer-video-0.10" %if 0%{?suse_version} >= 1230 GHB_PKGS="$GHB_PKGS harfbuzz" %endif pushd build make libhb/project.h make %{?_smp_mflags} V=1 \ GHB_CFLAGS="$(pkg-config --cflags $GHB_PKGS) -I../../libhb -I../../contrib/include" \ GHB_LIBS="$(pkg-config --libs $GHB_PKGS)" popd #build %install pushd build make install popd #build ln -s ghb "%{buildroot}%{_bindir}/HandBrakeGUI" %suse_update_desktop_file -r ghb AudioVideo AudioVideoEditing rm "%{buildroot}%{_datadir}/icons"/*/*.cache %clean %{?buildroot:rm -rf %{buildroot}} %files cli %defattr(-,root,root) %doc AUTHORS COPYING CREDITS NEWS THANKS %{_bindir}/HandBrakeCLI %files gtk %defattr(-,root,root) %doc AUTHORS COPYING CREDITS NEWS THANKS %{_bindir}/HandBrakeGUI %{_bindir}/ghb %{_datadir}/applications/ghb.desktop %{_datadir}/icons/*/*/apps/hb-icon.png %changelog
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.