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 19)
Currently displaying revision
19
,
Show latest
# # spec file for package handbrake # # 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 http://bugs.opensuse.org/ # Name: handbrake Summary: Multithreaded Video Transcoder Version: 1.0.2 Release: 1 Url: http://handbrake.fr/ Source0: https://handbrake.fr/mirror/HandBrake-%{version}.tar.bz2 Patch0: HandBrake-no-builddate.patch Patch1: HandBrake-build-shared.patch Patch3: HandBrake-ffmpeg3.patch Source101: http://download.videolan.org/pub/videolan/libbluray/0.9.3/libbluray-0.9.3.tar.bz2 License: GPL-2.0+ Group: Productivity/Multimedia/Video/Editors and Convertors BuildRequires: autoconf BuildRequires: automake BuildRequires: cmake BuildRequires: curl BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: intltool BuildRequires: libtool BuildRequires: make BuildRequires: nasm BuildRequires: python > 2.7.3 BuildRequires: subversion BuildRequires: update-desktop-files BuildRequires: wget BuildRequires: yasm BuildRequires: glibc-devel BuildRequires: libmp3lame-devel BuildRequires: libopus-devel BuildRequires: pkgconfig(bzip2) BuildRequires: pkgconfig(dbus-glib-1) BuildRequires: pkgconfig(dvdnav) BuildRequires: pkgconfig(dvdread) %if 0%{?suse_version} <= 1140 BuildRequires: pkgconfig(gstreamer-0.10) BuildRequires: pkgconfig(gstreamer-plugins-base-0.10) BuildRequires: pkgconfig(liblzma) %else BuildRequires: pkgconfig(gstreamer-1.0) BuildRequires: pkgconfig(gstreamer-plugins-base-1.0) %endif %if 0%{?suse_version} >= 1310 BuildRequires: pkgconfig(gtk+-3.0) >= 3.10 BuildRequires: pkgconfig(webkitgtk-3.0) %endif BuildRequires: pkgconfig(gudev-1.0) BuildRequires: pkgconfig(libass) BuildRequires: pkgconfig(libavcodec) BuildRequires: pkgconfig(libavfilter) BuildRequires: pkgconfig(libavformat) BuildRequires: pkgconfig(libavresample) BuildRequires: pkgconfig(libavutil) BuildRequires: pkgconfig(libswscale) BuildRequires: pkgconfig(libnotify) BuildRequires: pkgconfig(samplerate) BuildRequires: pkgconfig(theora) BuildRequires: pkgconfig(vorbis) BuildRequires: pkgconfig(vpx) BuildRequires: pkgconfig(x264) BuildRequires: pkgconfig(x265) BuildRequires: pkgconfig(jansson) %ifarch armv6l || armv6hl BuildRequires: Mesa-libEGL1 BuildRequires: Mesa-libEGL-devel %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %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 %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} >= 1310 %package gtk Summary: Multithreaded Video Transcoder Group: Productivity/Multimedia/Video/Editors and Convertors Recommends: handbrake-gtk-lang = %{version}-%{release} %description gtk HandBrake is an open-source, GPL-licensed, multiplatform, multithreaded video transcoder. This package contains a GTK+ graphical user interface for Handbrake. %lang_package -n handbrake-gtk %endif %prep %setup -q -n HandBrake-%{version} %patch0 -p0 %patch1 -p0 %patch3 -p1 install -d ./download %__ln_s "%{SOURCE101}" ./download/ %build export CFLAGS="%{optflags} -fno-strict-aliasing -Wno-unused -I%{_includedir}/ffmpeg" export CXXFLAGS="$CFLAGS -Wno-reorder" export PATH="%{_builddir}/HandBrake-%{version}/build/contrib/bin:$PATH" # 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=%{_prefix} \ --strip="/bin/true" \ --optimize=speed \ %if 0%{?suse_version} < 1310 --disable-gtk \ %endif --disable-fdk-aac \ --debug=max pushd build %__make libhb/project.h %__make %{?_smp_mflags} popd %install %makeinstall -C build %if 0%{?suse_version} >= 1310 %__ln_s ghb %{buildroot}%{_bindir}/HandBrakeGUI %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 %find_lang ghb %endif %files cli %defattr(-,root,root) %doc COPYING NEWS.markdown THANKS.markdown %{_bindir}/HandBrakeCLI %if 0%{?suse_version} >= 1310 %files gtk %defattr(-,root,root) %doc COPYING NEWS.markdown THANKS.markdown %{_bindir}/HandBrakeGUI %{_bindir}/ghb %{_datadir}/applications/ghb.desktop %{_datadir}/icons/*/*/apps/hb-icon.* %files -n handbrake-gtk-lang -f ghb.lang %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
.