Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Name: HandBrake
- Version: 0.10.2
- Release: 1%{?dist}
- Summary: An open-source multiplatform video transcoder
- License: GPLv2+
- URL: http://handbrake.fr/
- Source0: http://download.handbrake.fr/handbrake/releases/%{version}/%{name}-%{version}.tar.bz2
- # The project fetches libraries to bundle in the executable at compile time; to
- # have them available before building, proceed as follows. All files will be
- # available in the "download" folder.
- #
- # ./configure
- # cd build
- # make contrib.fetch
- Source10: http://download.handbrake.fr/contrib/libav-v10.1.tar.bz2
- Source11: http://download.handbrake.fr/contrib/fdk-aac-v0.1.1-6-gbae4553.tar.bz2
- Source12: http://download.handbrake.fr/contrib/x265-9329-0d30d2641875-1.5.tar.bz2
- BuildRequires: a52dec-devel >= 0.7.4
- BuildRequires: cmake
- BuildRequires: bzip2-devel
- BuildRequires: dbus-glib-devel
- BuildRequires: desktop-file-utils
- BuildRequires: fontconfig-devel
- BuildRequires: freetype-devel
- BuildRequires: fribidi-devel
- BuildRequires: gstreamer1-devel
- BuildRequires: gstreamer1-plugins-base-devel
- BuildRequires: intltool
- BuildRequires: lame-devel >= 3.98
- BuildRequires: libappindicator-gtk3-devel
- BuildRequires: libass-devel
- BuildRequires: libbluray-devel >= 0.2.3
- BuildRequires: libdvdnav-devel >= 5.0.1
- BuildRequires: libdvdread-devel >= 5.0.0
- BuildRequires: libgudev1-devel
- BuildRequires: libmpeg2-devel >= 0.5.1
- BuildRequires: libnotify-devel
- BuildRequires: libogg-devel
- BuildRequires: librsvg2-devel
- BuildRequires: libsamplerate-devel
- BuildRequires: libtheora-devel
- BuildRequires: libtool
- BuildRequires: libvorbis-devel
- BuildRequires: libvpx-devel
- BuildRequires: libxml2-devel
- BuildRequires: m4
- BuildRequires: make
- BuildRequires: patch
- BuildRequires: python
- BuildRequires: subversion
- BuildRequires: tar
- BuildRequires: webkitgtk3-devel
- BuildRequires: wget
- BuildRequires: x264-devel
- BuildRequires: yasm
- BuildRequires: zlib-devel
- Requires: hicolor-icon-theme
- %description
- %{name} is a general-purpose, free, open-source, cross-platform, multithreaded
- video transcoder software application. It can process most common multimedia
- files and any DVD or Bluray sources that do not contain any kind of copy
- protection.
- %package gui
- Summary: An open-source multiplatform video transcoder (GUI)
- Obsoletes: HandBrake < %{version}-%{release}
- Provides: HandBrake = %{version}-%{release}
- Requires: hicolor-icon-theme
- Requires: libdvdcss%{_isa}
- %description gui
- %{name} is a general-purpose, free, open-source, cross-platform, multithreaded
- video transcoder software application. It can process most common multimedia
- files and any DVD or Bluray sources that do not contain any kind of copy
- protection.
- This package contains the main program with a graphical interface.
- %package cli
- Summary: An open-source multiplatform video transcoder (CLI)
- Requires: libdvdcss%{_isa}
- %description cli
- %{name} is a general-purpose, free, open-source, cross-platform, multithreaded
- video transcoder software application. It can process most common multimedia
- files and any DVD or Bluray sources that do not contain any kind of copy
- protection.
- This package contains the command line version of the program.
- %prep
- %setup -q
- mkdir -p download
- cp %{SOURCE10} %{SOURCE11} %{SOURCE12} download
- # Use system libraries in place of bundled ones
- for module in a52dec libdvdnav libdvdread libbluray libvpx; do
- sed -i -e "/MODULES += contrib\/$module/d" make/include/main.defs
- done
- %build
- # This makes build stop if any download is attempted
- export http_proxy=http://127.0.0.1
- # By default the project is built with optimizations for speed and no debug.
- # Override configure settings by passing RPM_OPT_FLAGS and disabling preset
- # debug options.
- echo "GCC.args.O.speed = ${RPM_OPT_FLAGS}" > custom.defs
- echo "GCC.args.g.none = " >> custom.defs
- # Not an autotools configure script.
- # Flags for qsv (Intel QuickSync) and hwd (DXVA) are Windows only.
- ./configure \
- --build build \
- --prefix=%{_prefix} \
- --verbose \
- --disable-gtk-update-checks
- make -C build #%{?_smp_mflags}
- %install
- %make_install -C build
- desktop-file-validate %{buildroot}/%{_datadir}/applications/ghb.desktop
- %find_lang ghb
- %post gui
- touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
- /usr/bin/update-desktop-database &> /dev/null || :
- %postun gui
- if [ $1 -eq 0 ] ; then
- touch --no-create %{_datadir}/icons/hicolor &>/dev/null
- gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
- fi
- /usr/bin/update-desktop-database &> /dev/null || :
- %posttrans gui
- gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
- %files -f ghb.lang gui
- %doc AUTHORS COPYING CREDITS NEWS THANKS TRANSLATIONS
- %{_bindir}/ghb
- %{_datadir}/applications/ghb.desktop
- %{_datadir}/icons/hicolor/scalable/apps/hb-icon.svg
- %files cli
- %doc AUTHORS COPYING CREDITS NEWS THANKS TRANSLATIONS
- %{_bindir}/HandBrakeCLI
- %changelog
- * Thu Jun 11 2015 Simone Caronni <negativo17@gmail.com> - 0.10.2-1
- - Update to 0.10.2.
- - Use handbrake.fr URL for source 0.
- * Mon Mar 09 2015 Simone Caronni <negativo17@gmail.com> - 0.10.1-1
- - Update to 0.10.1.
- * Mon Jan 26 2015 Simone Caronni <negativo17@gmail.com> - 0.10.0-12
- - Fix huge icons problem.
- * Wed Nov 26 2014 Simone Caronni <negativo17@gmail.com> - 0.10.0-11
- - Update to 0.10.0 official release.
- * Wed Nov 05 2014 Simone Caronni <negativo17@gmail.com> - 0.10-10.svn6507
- - Update to SVN revision 6507.
- * Mon Nov 03 2014 Simone Caronni <negativo17@gmail.com> - 0.10-9.svn6502
- - Update to SVN revision 6502.
- * Fri Oct 24 2014 Simone Caronni <negativo17@gmail.com> - 0.10-8.svn6461
- - Update to SVN revision 6461.
- * Fri Oct 10 2014 Simone Caronni <negativo17@gmail.com> - 0.10-7.svn6439
- - Update to SVN revision 6439.
- * Fri Oct 03 2014 Simone Caronni <negativo17@gmail.com> - 0.10-6.svn6422
- - Update to SVN revision 6430.
- * Sun Sep 28 2014 Simone Caronni <negativo17@gmail.com> - 0.10-5.svn6422
- - Update to SVN revision 6422.
- * Mon Sep 08 2014 Simone Caronni <negativo17@gmail.com> - 0.10-4.svn6404
- - Update to SVN revision 6404.
- - Update libdvdread and libdvdnav requirements.
- * Mon Sep 08 2014 Simone Caronni <negativo17@gmail.com> - 0.10-3.svn6394
- - Update to SVN revision 6394.
- * Mon Sep 01 2014 Simone Caronni <negativo17@gmail.com> - 0.10-2.svn6386
- - Update to svn revision 6386; new x265 presets.
- - Update x265 libraries.
- * Sat Aug 23 2014 Simone Caronni <negativo17@gmail.com> - 0.9.9-17.svn6304
- - Update to svn revision 6351. HandBrake version is now 0.10:
- https://trac.handbrake.fr/milestone/HandBrake%200.10
- - Lame and x264 libraries are now linked by default.
- - Remove mkv, mpeg2dec and libmkv as they are no longer used.
- - LibAV is now enabled by default.
- - Add libappindicator-gtk3 build requirement.
- * Sun Aug 17 2014 Simone Caronni <negativo17@gmail.com> - 0.9.9-16.svn6304
- - Update to 6304 snapshot.
- * Wed Aug 06 2014 Simone Caronni <negativo17@gmail.com> - 0.9.9-15.svn6268
- - Update to latest snapshot.
- * Wed Jul 30 2014 Simone Caronni <negativo17@gmail.com> - 0.9.9-14.svn6244
- - Updated to latest snapshot.
- - Enable avformat muxer, replaces libmkv and mp4v2 support.
- - Requires libdvdnav >= 5.0.0 to fix crashes.
- - Remove ExclusiveArch.
- * Sat Jul 05 2014 Simone Caronni <negativo17@gmail.com> - 0.9.9-13.svn6227
- - Updated to SVN snapshot.
- - Remove RHEL 6 conditionals.
- * Tue Mar 25 2014 Simone Caronni <negativo17@gmail.com> - 0.9.9-12
- - Backport DVD changes from trunk (should fix libdvdnav crashes with specific
- DVD titles).
- - Use system ffpmeg 2 libraries in place of bundled libav.
- * Mon Mar 17 2014 Simone Caronni <negativo17@gmail.com> - 0.9.9-11
- - Fix crash on Fedora.
- * Fri Mar 14 2014 Simone Caronni <negativo17@gmail.com> - 0.9.9-10
- - Use system libdvdnav/libdvdread.
- * Mon Dec 23 2013 Simone Caronni <negativo17@gmail.com> - 0.9.9-9
- - Use system libraries for libbluray, lame, mpeg2dec, a52dec (patch), libmkv
- (patch), x264 (faac, fdk-aac, libav, libdvdnav, libdvdread and mp4v2 are still
- bundled).
- - Use Fedora compiler options.
- - Use GStreamer 1.x on Fedora and RHEL/CentOS 7.
- - Add fdk-aac support.
- * Mon Dec 23 2013 Simone Caronni <negativo17@gmail.com> - 0.9.9-8
- - Scriptlets need to run for gui subpackage and not base package. Thanks to
- Peter Oliver.
- * Mon Sep 09 2013 Simone Caronni <negativo17@gmail.com> - 0.9.9-7
- - Add requirement on libdvdcss, fix hicolor-icon-theme requirement.
- * Fri Jul 26 2013 Simone Caronni <negativo17@gmail.com> - 0.9.9-6
- - Enable building CLI only on CentOS/RHEL 6.
- - Disable GTK update checks (updates come only packaged).
- * Tue Jul 23 2013 Simone Caronni <negativo17@gmail.com> - 0.9.9-5
- - Enable command line interface only for CentOS/RHEL 6.
- * Thu May 30 2013 Simone Caronni <negativo17@gmail.com> - 0.9.9-4
- - Updated x264 to r2282-1db4621 (stable branch) to fix Fedora 19 crash issues.
- * Mon May 20 2013 Simone Caronni <negativo17@gmail.com> - 0.9.9-3
- - Update to 0.9.9.
- - Separate GUI and CLI packages.
- * Sat May 11 2013 Simone Caronni <negativo17@gmail.com> - 0.9.9-2.5449svn
- - Updated.
- * Wed May 01 2013 Simone Caronni <negativo17@gmail.com> - 0.9.9-1.5433svn
- - First build.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement