1 Summary: A program to transcode DVDs and other sources to MPEG-4 and MKV
6 Group: Applications/Multimedia
7 URL: http://handbrake.fr/
8 Source0: https://download2.handbrake.fr/%{version}/HandBrake-%{version}-source.tar.bz2
9 # Source0-md5: 8b605d62cc6dd63bb8918dc6b47d4ee3
10 # Source1 is a tarball of the downloads/ folder that contains third party
11 # libraries required and automatically downloaded by HandBrake the first
12 # time 'make' is run. If you update Source0 to a newer release you must
13 # recreate an updated Source1 tarball for it too!
14 Source1: HandBrake-%{version}-contrib-tarballs.tar
15 # Source1-md5: 1f50c8c7f4ff2b7f8bd498dd92557587
16 BuildRequires: autoconf
17 BuildRequires: automake
18 BuildRequires: bzip2-devel
20 BuildRequires: curl-devel
21 BuildRequires: dbus-glib-devel
22 BuildRequires: fontconfig-devel
23 BuildRequires: freetype-devel
24 BuildRequires: fribidi-devel
25 BuildRequires: glib2-devel
26 BuildRequires: gstreamer-devel
27 BuildRequires: gstreamer-plugins-base-devel
28 BuildRequires: gtk+3-devel
29 BuildRequires: gtk-webkit3-devel
30 BuildRequires: harfbuzz-devel
31 BuildRequires: intltool
32 BuildRequires: jansson-devel
33 BuildRequires: lame-libs-devel
34 BuildRequires: libass-devel
35 BuildRequires: libnotify-devel
36 BuildRequires: libogg-devel
37 BuildRequires: libsamplerate-devel
38 BuildRequires: libstdc++-devel
39 BuildRequires: libtheora-devel
40 BuildRequires: libtool
41 BuildRequires: libvorbis-devel
42 BuildRequires: libx264-devel
43 BuildRequires: libxml2-devel
45 BuildRequires: opus-devel
46 BuildRequires: pkgconfig
48 BuildRequires: subversion
49 BuildRequires: udev-glib-devel
51 BuildRequires: zlib-devel
52 ExclusiveArch: %{x8664}
53 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56 HandBrake is an open-source, GPL-licensed, multi-platform,
57 multi-threaded transcoder, available for MacOS X, Linux and Windows.
60 Summary: A program to transcode DVDs and other sources to MPEG-4 and MKV
61 Group: Applications/Multimedia
62 Requires: gstreamer-plugins-bad
63 Requires: gstreamer-plugins-ugly
70 Summary: A program to transcode DVDs and other sources to MPEG-4 and MKV
71 Group: Applications/Multimedia
72 Requires: gtk-update-icon-cache
78 HandBrake is an open-source, GPL-licensed, multi-platform,
79 multi-threaded transcoder, available for MacOS X, Linux and Windows.
81 This is the GTK GUI version of HandBrake.
84 HandBrake is an open-source, GPL-licensed, multi-platform,
85 multi-threaded transcoder, available for MacOS X, Linux and Windows.
87 This is the CLI tool version of HandBrake.
90 %setup -q -n HandBrake-%{version} -a1
93 export CFLAGS="%{rpmcflags}"
94 export CXXFLAGS="%{rpmcxxflags}"
95 export LDFLAGS="%{rpmldflags}"
102 rm -rf $RPM_BUILD_ROOT
103 cat > build/GNUmakefile.custom.defs <<EOF
104 CONF.args = --prefix=$RPM_BUILD_ROOT%{_prefix}
105 PREFIX = $RPM_BUILD_ROOT%{_prefix}
106 PREFIX/ = $RPM_BUILD_ROOT%{_prefix}/
108 %{__make} -C build install
110 %{__rm} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
112 %{__mv} $RPM_BUILD_ROOT%{_localedir}/it{_IT,}
113 %{__mv} $RPM_BUILD_ROOT%{_localedir}/ja{_JP,}
114 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{no,nb}
115 %{__mv} $RPM_BUILD_ROOT%{_localedir}/ro{_RO,}
120 rm -rf $RPM_BUILD_ROOT
123 %update_icon_cache hicolor
126 %update_icon_cache hicolor
128 %files gui -f ghb.lang
129 %defattr(644,root,root,755)
130 %doc COPYING AUTHORS.markdown NEWS.markdown README.markdown THANKS.markdown
131 %attr(755,root,root) %{_bindir}/ghb
132 %{_desktopdir}/ghb.desktop
133 %{_iconsdir}/hicolor/scalable/apps/hb-icon.svg
134 %{_datadir}/metainfo/fr.handbrake.ghb.appdata.xml
137 %defattr(644,root,root,755)
138 %attr(755,root,root) %{_bindir}/HandBrakeCLI