]>
Commit | Line | Data |
---|---|---|
a84837ed ER |
1 | Summary: A program to transcode DVDs and other sources to MPEG-4 and MKV |
2 | Name: handbrake | |
f7ea1e26 | 3 | Version: 1.4.1 |
9dea01db | 4 | Release: 2 |
a84837ed ER |
5 | License: GPL v2+ |
6 | Group: Applications/Multimedia | |
f7ea1e26 JR |
7 | Source0: https://github.com/HandBrake/HandBrake/releases/download/%{version}/HandBrake-%{version}-source.tar.bz2 |
8 | # Source0-md5: 73fe8df8340ac7b7c23a8c09974d6906 | |
a84837ed ER |
9 | # Source1 is a tarball of the downloads/ folder that contains third party |
10 | # libraries required and automatically downloaded by HandBrake the first | |
11 | # time 'make' is run. If you update Source0 to a newer release you must | |
12 | # recreate an updated Source1 tarball for it too! | |
e2719113 | 13 | Source1: HandBrake-%{version}-contrib-tarballs.tar |
f7ea1e26 | 14 | # Source1-md5: 11691c785ee60b58651c5405eeeb5f22 |
fe2d86de | 15 | Patch0: binutils2.41.patch |
f7ea1e26 | 16 | URL: https://handbrake.fr/ |
d74f4456 JR |
17 | BuildRequires: autoconf |
18 | BuildRequires: automake | |
a84837ed | 19 | BuildRequires: bzip2-devel |
d74f4456 | 20 | BuildRequires: cmake |
a84837ed ER |
21 | BuildRequires: curl-devel |
22 | BuildRequires: dbus-glib-devel | |
d74f4456 JR |
23 | BuildRequires: fontconfig-devel |
24 | BuildRequires: freetype-devel | |
25 | BuildRequires: fribidi-devel | |
a84837ed ER |
26 | BuildRequires: glib2-devel |
27 | BuildRequires: gstreamer-devel | |
28 | BuildRequires: gstreamer-plugins-base-devel | |
d74f4456 JR |
29 | BuildRequires: gtk+3-devel |
30 | BuildRequires: gtk-webkit3-devel | |
31 | BuildRequires: harfbuzz-devel | |
a84837ed | 32 | BuildRequires: intltool |
d74f4456 JR |
33 | BuildRequires: jansson-devel |
34 | BuildRequires: lame-libs-devel | |
35 | BuildRequires: libass-devel | |
a84837ed | 36 | BuildRequires: libnotify-devel |
d74f4456 JR |
37 | BuildRequires: libogg-devel |
38 | BuildRequires: libsamplerate-devel | |
a84837ed | 39 | BuildRequires: libstdc++-devel |
d74f4456 | 40 | BuildRequires: libtheora-devel |
a84837ed | 41 | BuildRequires: libtool |
d74f4456 JR |
42 | BuildRequires: libvorbis-devel |
43 | BuildRequires: libx264-devel | |
44 | BuildRequires: libxml2-devel | |
a84837ed | 45 | BuildRequires: m4 |
d74f4456 JR |
46 | BuildRequires: opus-devel |
47 | BuildRequires: pkgconfig | |
a84837ed | 48 | BuildRequires: python |
595e7290 | 49 | BuildRequires: rpmbuild(macros) >= 2.005 |
a84837ed ER |
50 | BuildRequires: subversion |
51 | BuildRequires: udev-glib-devel | |
52 | BuildRequires: yasm | |
53 | BuildRequires: zlib-devel | |
f7ea1e26 | 54 | BuildConflicts: libudfread-devel |
3e26daac | 55 | ExclusiveArch: %{x8664} |
a84837ed ER |
56 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
57 | ||
f7ea1e26 JR |
58 | %define _debugsource_packages 0 |
59 | ||
a84837ed ER |
60 | %description |
61 | HandBrake is an open-source, GPL-licensed, multi-platform, | |
62 | multi-threaded transcoder, available for MacOS X, Linux and Windows. | |
63 | ||
64 | %package gui | |
65 | Summary: A program to transcode DVDs and other sources to MPEG-4 and MKV | |
66 | Group: Applications/Multimedia | |
f9391539 | 67 | Requires(post,postun): desktop-file-utils |
a84837ed ER |
68 | Requires: gstreamer-plugins-bad |
69 | Requires: gstreamer-plugins-ugly | |
d74f4456 | 70 | Requires: gtk+3 |
a84837ed ER |
71 | Requires: libdvdcss |
72 | Obsoletes: HandBrake | |
73 | Obsoletes: handbrake | |
74 | ||
75 | %package cli | |
76 | Summary: A program to transcode DVDs and other sources to MPEG-4 and MKV | |
77 | Group: Applications/Multimedia | |
78 | Requires: gtk-update-icon-cache | |
79 | Requires: libdvdcss | |
80 | Obsoletes: HandBrake | |
81 | Obsoletes: handbrake | |
82 | ||
83 | %description gui | |
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 GTK GUI version of HandBrake. | |
88 | ||
89 | %description cli | |
90 | HandBrake is an open-source, GPL-licensed, multi-platform, | |
91 | multi-threaded transcoder, available for MacOS X, Linux and Windows. | |
92 | ||
93 | This is the CLI tool version of HandBrake. | |
94 | ||
95 | %prep | |
96 | %setup -q -n HandBrake-%{version} -a1 | |
a84837ed | 97 | |
fe2d86de JP |
98 | cp -p %{PATCH0} contrib/ffmpeg/A77-%{basename:%{PATCH0}} |
99 | ||
a84837ed ER |
100 | %build |
101 | export CFLAGS="%{rpmcflags}" | |
102 | export CXXFLAGS="%{rpmcxxflags}" | |
103 | export LDFLAGS="%{rpmldflags}" | |
104 | ./configure \ | |
f7ea1e26 | 105 | --force \ |
d74f4456 JR |
106 | --prefix=%{_prefix} \ |
107 | --disable-df-fetch | |
f7ea1e26 JR |
108 | |
109 | cat > build/GNUmakefile.custom.defs <<EOF | |
110 | STRIP.exe = /bin/true | |
111 | BUILD.jobs = %{__jobs} | |
112 | GCC.args.g.none = %{rpmcflags} | |
113 | GCC.args.O.speed = %{rpmcflags} | |
114 | EOF | |
115 | ||
a84837ed ER |
116 | %{__make} -C build |
117 | ||
118 | %install | |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | cat > build/GNUmakefile.custom.defs <<EOF | |
f7ea1e26 | 121 | STRIP.exe = /bin/true |
a84837ed ER |
122 | CONF.args = --prefix=$RPM_BUILD_ROOT%{_prefix} |
123 | PREFIX = $RPM_BUILD_ROOT%{_prefix} | |
124 | PREFIX/ = $RPM_BUILD_ROOT%{_prefix}/ | |
125 | EOF | |
126 | %{__make} -C build install | |
127 | ||
128 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache | |
d74f4456 | 129 | |
f7ea1e26 JR |
130 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/sl{_SI,} |
131 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/uk{_UA,} | |
d74f4456 | 132 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{no,nb} |
d74f4456 JR |
133 | |
134 | %find_lang ghb | |
a84837ed ER |
135 | |
136 | %clean | |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | ||
139 | %post gui | |
d74f4456 | 140 | %update_icon_cache hicolor |
f9391539 | 141 | %update_desktop_database_post |
a84837ed ER |
142 | |
143 | %postun gui | |
d74f4456 | 144 | %update_icon_cache hicolor |
f9391539 | 145 | %update_desktop_database_postun |
a84837ed | 146 | |
d74f4456 | 147 | %files gui -f ghb.lang |
a84837ed | 148 | %defattr(644,root,root,755) |
d74f4456 | 149 | %doc COPYING AUTHORS.markdown NEWS.markdown README.markdown THANKS.markdown |
a84837ed | 150 | %attr(755,root,root) %{_bindir}/ghb |
9cb5b6ea | 151 | %{_desktopdir}/fr.handbrake.ghb.desktop |
d74f4456 | 152 | %{_iconsdir}/hicolor/scalable/apps/hb-icon.svg |
9cb5b6ea | 153 | %{_iconsdir}/hicolor/scalable/apps/fr.handbrake.ghb.svg |
f7ea1e26 | 154 | %{_datadir}/metainfo/fr.handbrake.ghb.metainfo.xml |
a84837ed ER |
155 | |
156 | %files cli | |
157 | %defattr(644,root,root,755) | |
158 | %attr(755,root,root) %{_bindir}/HandBrakeCLI |