]>
Commit | Line | Data |
---|---|---|
a84837ed ER |
1 | Summary: A program to transcode DVDs and other sources to MPEG-4 and MKV |
2 | Name: handbrake | |
9cb5b6ea JR |
3 | Version: 1.2.2 |
4 | Release: 1 | |
a84837ed ER |
5 | License: GPL v2+ |
6 | Group: Applications/Multimedia | |
7 | URL: http://handbrake.fr/ | |
e2719113 | 8 | Source0: https://download2.handbrake.fr/%{version}/HandBrake-%{version}-source.tar.bz2 |
9cb5b6ea | 9 | # Source0-md5: 282924665fa45b3b08fef66b51beaac5 |
a84837ed ER |
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! | |
e2719113 | 14 | Source1: HandBrake-%{version}-contrib-tarballs.tar |
9cb5b6ea | 15 | # Source1-md5: 226891f181995e2ea7c8ab018def2b46 |
d74f4456 JR |
16 | BuildRequires: autoconf |
17 | BuildRequires: automake | |
a84837ed | 18 | BuildRequires: bzip2-devel |
d74f4456 | 19 | BuildRequires: cmake |
a84837ed ER |
20 | BuildRequires: curl-devel |
21 | BuildRequires: dbus-glib-devel | |
d74f4456 JR |
22 | BuildRequires: fontconfig-devel |
23 | BuildRequires: freetype-devel | |
24 | BuildRequires: fribidi-devel | |
a84837ed ER |
25 | BuildRequires: glib2-devel |
26 | BuildRequires: gstreamer-devel | |
27 | BuildRequires: gstreamer-plugins-base-devel | |
d74f4456 JR |
28 | BuildRequires: gtk+3-devel |
29 | BuildRequires: gtk-webkit3-devel | |
30 | BuildRequires: harfbuzz-devel | |
a84837ed | 31 | BuildRequires: intltool |
d74f4456 JR |
32 | BuildRequires: jansson-devel |
33 | BuildRequires: lame-libs-devel | |
34 | BuildRequires: libass-devel | |
a84837ed | 35 | BuildRequires: libnotify-devel |
d74f4456 JR |
36 | BuildRequires: libogg-devel |
37 | BuildRequires: libsamplerate-devel | |
a84837ed | 38 | BuildRequires: libstdc++-devel |
d74f4456 | 39 | BuildRequires: libtheora-devel |
a84837ed | 40 | BuildRequires: libtool |
d74f4456 JR |
41 | BuildRequires: libvorbis-devel |
42 | BuildRequires: libx264-devel | |
43 | BuildRequires: libxml2-devel | |
a84837ed | 44 | BuildRequires: m4 |
d74f4456 JR |
45 | BuildRequires: opus-devel |
46 | BuildRequires: pkgconfig | |
a84837ed ER |
47 | BuildRequires: python |
48 | BuildRequires: subversion | |
49 | BuildRequires: udev-glib-devel | |
50 | BuildRequires: yasm | |
51 | BuildRequires: zlib-devel | |
3e26daac | 52 | ExclusiveArch: %{x8664} |
a84837ed ER |
53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
54 | ||
55 | %description | |
56 | HandBrake is an open-source, GPL-licensed, multi-platform, | |
57 | multi-threaded transcoder, available for MacOS X, Linux and Windows. | |
58 | ||
59 | %package gui | |
60 | Summary: A program to transcode DVDs and other sources to MPEG-4 and MKV | |
61 | Group: Applications/Multimedia | |
a84837ed ER |
62 | Requires: gstreamer-plugins-bad |
63 | Requires: gstreamer-plugins-ugly | |
d74f4456 | 64 | Requires: gtk+3 |
a84837ed ER |
65 | Requires: libdvdcss |
66 | Obsoletes: HandBrake | |
67 | Obsoletes: handbrake | |
68 | ||
69 | %package cli | |
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 | |
73 | Requires: libdvdcss | |
74 | Obsoletes: HandBrake | |
75 | Obsoletes: handbrake | |
76 | ||
77 | %description gui | |
78 | HandBrake is an open-source, GPL-licensed, multi-platform, | |
79 | multi-threaded transcoder, available for MacOS X, Linux and Windows. | |
80 | ||
81 | This is the GTK GUI version of HandBrake. | |
82 | ||
83 | %description cli | |
84 | HandBrake is an open-source, GPL-licensed, multi-platform, | |
85 | multi-threaded transcoder, available for MacOS X, Linux and Windows. | |
86 | ||
87 | This is the CLI tool version of HandBrake. | |
88 | ||
89 | %prep | |
90 | %setup -q -n HandBrake-%{version} -a1 | |
a84837ed ER |
91 | |
92 | %build | |
93 | export CFLAGS="%{rpmcflags}" | |
94 | export CXXFLAGS="%{rpmcxxflags}" | |
95 | export LDFLAGS="%{rpmldflags}" | |
96 | ./configure \ | |
d74f4456 JR |
97 | --prefix=%{_prefix} \ |
98 | --disable-df-fetch | |
a84837ed ER |
99 | %{__make} -C build |
100 | ||
101 | %install | |
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}/ | |
107 | EOF | |
108 | %{__make} -C build install | |
109 | ||
110 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache | |
d74f4456 JR |
111 | |
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,} | |
116 | ||
117 | %find_lang ghb | |
a84837ed ER |
118 | |
119 | %clean | |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
122 | %post gui | |
d74f4456 | 123 | %update_icon_cache hicolor |
a84837ed ER |
124 | |
125 | %postun gui | |
d74f4456 | 126 | %update_icon_cache hicolor |
a84837ed | 127 | |
d74f4456 | 128 | %files gui -f ghb.lang |
a84837ed | 129 | %defattr(644,root,root,755) |
d74f4456 | 130 | %doc COPYING AUTHORS.markdown NEWS.markdown README.markdown THANKS.markdown |
a84837ed | 131 | %attr(755,root,root) %{_bindir}/ghb |
9cb5b6ea | 132 | %{_desktopdir}/fr.handbrake.ghb.desktop |
d74f4456 | 133 | %{_iconsdir}/hicolor/scalable/apps/hb-icon.svg |
9cb5b6ea | 134 | %{_iconsdir}/hicolor/scalable/apps/fr.handbrake.ghb.svg |
e2719113 | 135 | %{_datadir}/metainfo/fr.handbrake.ghb.appdata.xml |
a84837ed ER |
136 | |
137 | %files cli | |
138 | %defattr(644,root,root,755) | |
139 | %attr(755,root,root) %{_bindir}/HandBrakeCLI |