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 11)
Currently displaying revision
11
,
Show latest
# vim: set sw=4 ts=4 et: # Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org> # Copyright (c) 2014 B1 Systems GmbH, Vobhurg, 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 https://bugs.links2linux.org/ Name: handbrake Version: 0.10.0 Release: 0 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/fdk-aac-v0.1.1-6-gbae4553.tar.bz2 Source102: http://download.handbrake.fr/handbrake/contrib/cmake-3.0.1.tar.gz Source103: http://download.handbrake.fr/handbrake/contrib/libav-v10.1.tar.bz2 Source104: http://download.handbrake.fr/handbrake/contrib/libdvdnav-5.0.1-0-gaa3659d.tar.gz Source105: http://download.handbrake.fr/handbrake/contrib/libdvdread-5.0.0-6-gcb1ae87.tar.gz Source106: http://download.handbrake.fr/contrib/libmfx-v2014.tar.bz2 Source107: http://download.handbrake.fr/contrib/libvpx-v1.3.0.tar.bz2 Source108: http://download.handbrake.fr/contrib/x265-8768-5e604833c5aa-1.4.tar.bz2 Source109: http://download.handbrake.fr/handbrake/contrib/libbluray-0.5.0.tar.bz2 ## ## libdvnav has "assert(0)" as default in some error paths, which is a nop with -DNDEBUG... Source200: libdvdnav-5.0.1-noreturninnonvoidfunction.patch Source99: handbrake-rpmlintrc Patch0: HandBrake-0.10.0-no-builddate.patch Patch1: handbrake-enable_local_fribidi.patch BuildRequires: python curl wget subversion BuildRequires: libbz2-devel zlib-devel libgudev-1_0-devel %if 0%{?suse_version} > 1230 BuildRequires: gtk3-devel >= 3.10 BuildRequires: gtkhtml-devel %endif BuildRequires: fribidi-devel BuildRequires: dbus-1-glib-devel BuildRequires: libicu-devel libnotify-devel %if 0%{?suse_version} <= 1140 BuildRequires: hal-devel BuildRequires: libwebkit-devel %else BuildRequires: libwebkitgtk3-devel %endif BuildRequires: sqlite3-devel libcurl-devel libxslt-devel BuildRequires: gstreamer-0_10-devel gstreamer-0_10-plugins-base-devel BuildRequires: gcc gcc-c++ make glibc-devel yasm nasm BuildRequires: autoconf automake libtool intltool BuildRequires: update-desktop-files BuildRequires: libvorbis-devel libass-devel x264-devel libmp3lame-devel libtheora-devel BuildRequires: 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. %if 0%{?suse_version} > 1230 %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. %endif %prep %if 0%{?rev:1} %setup -q -n "HandBrake-svn%{rev}" %else %setup -q -n "HandBrake-%{version}" %endif %patch0 -p1 %if 0%{?suse_version} < 1200 %patch1 -p1 %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} \ ; 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 \ | %__awk -F' =' '{print $2}' \ | while read url; do f=$(echo "$url" | sed 's|^.*/||') case $f in bzip2*|libiconv*|pthreads*|zlib*) continue ;; autoconf*|automake*|libtool*|m4*) continue ;; pkg-config*) continue ;; fontconfig*|freetype*|fribidi*|libass*) continue ;; libogg*|libtheora*|libvorbis*|libsamplerate*) continue ;; libxml2*) continue ;; x264*|lame*) continue ;; yasm*) continue ;; mingw-libgnurx*) continue ;; esac [ -e "download/$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:200} contrib/libdvdnav/A99-fix-missing-return-in-nonvoid-function.patch # try to remove build date from binaries... -- seife+obs@b1-systems.com PKGDATE=$(date -r %{_sourcedir}/handbrake.changes +%Y%m%d) sed -i -e "s/@BUILD@/$PKGDATE/" make/configure.py %__mkdir build ./configure \ --force \ --build="$PWD/build" \ --prefix="%{buildroot}%{_prefix}" \ --strip="/bin/true" \ --optimize=speed \ %if 0%{?suse_version} <= 1230 --disable-gtk \ %endif --debug=std ### debug=max removes -DNDEBUG from ffmpeg, leading to asserts aborting build... pushd build #### get rid of __DATE__ and __TIME__ in fdk-aac %__mkdir contrib %__mkdir contrib/fdkaac tar -xf %{S:101} -C contrib/fdkaac find contrib/fdkaac/ -type f | xargs sed -i -e "s/__DATE__/\"$PKGDATE\"/" find contrib/fdkaac/ -type f | xargs sed -i -e 's/__TIME__/"00:00:00"/' touch contrib/fdkaac/.stamp.extract pushd contrib/fdkaac/fdk-aac-v0.1.1-6-gbae4553 autoreconf -fi popd %__make libhb/project.h %__make %{?_smp_mflags} V=1 popd #build %install pushd build %__make install popd #build if [ -e %{buildroot}%{_bindir}/ghb ]; then %__ln_s ghb "%{buildroot}%{_bindir}/HandBrakeGUI" fi %suse_update_desktop_file -r ghb AudioVideo AudioVideoEditing # -f because it might not be there if built without gtk... %__rm -f "%{buildroot}%{_datadir}/icons"/*/*.cache %clean %{?buildroot:%__rm -rf "%{buildroot}"} %files cli %defattr(-,root,root) %doc AUTHORS COPYING CREDITS NEWS THANKS %{_bindir}/HandBrakeCLI %if 0%{?suse_version} > 1230 %files gtk %defattr(-,root,root) %doc AUTHORS COPYING CREDITS NEWS THANKS %{_bindir}/HandBrakeGUI %{_bindir}/ghb %{_datadir}/applications/ghb.desktop %{_datadir}/icons/*/*/apps/hb-icon.* /usr/share/locale/*/LC_MESSAGES/ghb.mo %endif %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
.