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 5)
Currently displaying revision
5
,
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 #define rev 3549 #Version: 0.9.4+r%{rev} Version: 0.9.8 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/ffmpeg-v0.7-1696-gcae4f4b.tar.bz2 Source105: http://download.handbrake.fr/handbrake/contrib/lame-3.98.tar.gz Source106: http://download.handbrake.fr/handbrake/contrib/libdca-r81-strapped.tar.gz Source107: http://download.handbrake.fr/handbrake/contrib/libdvdnav-svn1168.tar.gz Source108: http://download.handbrake.fr/handbrake/contrib/libdvdread-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/libogg-1.3.0.tar.gz Source111: http://download.handbrake.fr/handbrake/contrib/libsamplerate-0.1.4.tar.gz Source112: http://download.handbrake.fr/handbrake/contrib/libtheora-1.1.0.tar.bz2 Source113: http://download.handbrake.fr/handbrake/contrib/libvorbis-aotuv_b6.03.tar.bz2 Source114: http://download.handbrake.fr/handbrake/contrib/mp4v2-trunk-r355.tar.bz2 Source115: http://download.handbrake.fr/handbrake/contrib/mpeg2dec-0.5.1.tar.gz Source116: http://download.handbrake.fr/handbrake/contrib/x264-r2146-bcd41db.tar.gz Source117: http://download.m0k.org/handbrake/contrib/fontconfig-2.8.0.tar.gz Source118: http://download.handbrake.fr/handbrake/contrib/freetype-2.4.7.tar.bz2 Source119: http://download.handbrake.fr/handbrake/contrib/libass-0.10.0-1.tar.gz Source120: http://download.handbrake.fr/handbrake/contrib/libbluray-0.0.1-pre-213-ga869da8.tar.gz Source121: http://download.m0k.org/handbrake/contrib/libxml2-2.7.7.tar.gz Source122: http://download.handbrake.fr/handbrake/contrib/fribidi-0.19.2.tar.gz Source123: http://download.handbrake.fr/handbrake/contrib/yasm-1.1.0.tar.gz Source151: handbrake-ffmpeg_fix_missing_return_in_nonvoid_function.patch Source152: handbrake-libmkv_no_return_in_nonvoid_function.patch 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 BuildRequires: pkgconfig(gstreamer-0.10) BuildRequires: pkgconfig(gtk+-2.0) BuildRequires: pkgconfig(gudev-1.0) 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: nasm BuildRequires: update-desktop-files BuildRequires: yasm %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 # Copy 3rd party dependencies into expected locations: mkdir download for f in \ %{S:101} %{S:102} %{S:103} %{S:104} %{S:105} %{S:106} \ %{S:107} %{S:108} %{S:109} %{S:110} %{S:111} %{S:112} \ %{S:113} %{S:114} %{S:115} %{S:116} %{S:117} %{S:118} \ %{S:119} %{S:120} %{S:121} %{S:122} %{S:123} \ ; 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*) 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 # will be removed when the makefiles are fixed, currently # fails on openSUSE factory because of --as-needed # export SUSE_ASNEEDED=0 export CFLAGS="%{optflags} -fno-strict-aliasing" export CXXFLAGS="%{optflags} -fno-strict-aliasing" # cp "%{S:151}" contrib/ffmpeg/A99-fix-missing-return-in-nonvoid-function.patch cp %{S:152} contrib/libmkv/A99-fix-missing-return-in-nonvoid-function.patch mkdir build ./configure \ --force \ --build="$PWD/build" \ --prefix="%{buildroot}%{_prefix}" \ --strip="/bin/true" \ --optimize=speed \ --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" pushd build make libhb/project.h make %{?_smp_mflags} \ GHB_CFLAGS="$(pkg-config --cflags $GHB_PKGS) -I../../libhb" \ 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
.