]> git.pld-linux.org Git - packages/handbrake.git/blame - handbrake.spec
- up to 1.2.2
[packages/handbrake.git] / handbrake.spec
CommitLineData
a84837ed
ER
1Summary: A program to transcode DVDs and other sources to MPEG-4 and MKV
2Name: handbrake
9cb5b6ea
JR
3Version: 1.2.2
4Release: 1
a84837ed
ER
5License: GPL v2+
6Group: Applications/Multimedia
7URL: http://handbrake.fr/
e2719113 8Source0: 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 14Source1: HandBrake-%{version}-contrib-tarballs.tar
9cb5b6ea 15# Source1-md5: 226891f181995e2ea7c8ab018def2b46
d74f4456
JR
16BuildRequires: autoconf
17BuildRequires: automake
a84837ed 18BuildRequires: bzip2-devel
d74f4456 19BuildRequires: cmake
a84837ed
ER
20BuildRequires: curl-devel
21BuildRequires: dbus-glib-devel
d74f4456
JR
22BuildRequires: fontconfig-devel
23BuildRequires: freetype-devel
24BuildRequires: fribidi-devel
a84837ed
ER
25BuildRequires: glib2-devel
26BuildRequires: gstreamer-devel
27BuildRequires: gstreamer-plugins-base-devel
d74f4456
JR
28BuildRequires: gtk+3-devel
29BuildRequires: gtk-webkit3-devel
30BuildRequires: harfbuzz-devel
a84837ed 31BuildRequires: intltool
d74f4456
JR
32BuildRequires: jansson-devel
33BuildRequires: lame-libs-devel
34BuildRequires: libass-devel
a84837ed 35BuildRequires: libnotify-devel
d74f4456
JR
36BuildRequires: libogg-devel
37BuildRequires: libsamplerate-devel
a84837ed 38BuildRequires: libstdc++-devel
d74f4456 39BuildRequires: libtheora-devel
a84837ed 40BuildRequires: libtool
d74f4456
JR
41BuildRequires: libvorbis-devel
42BuildRequires: libx264-devel
43BuildRequires: libxml2-devel
a84837ed 44BuildRequires: m4
d74f4456
JR
45BuildRequires: opus-devel
46BuildRequires: pkgconfig
a84837ed
ER
47BuildRequires: python
48BuildRequires: subversion
49BuildRequires: udev-glib-devel
50BuildRequires: yasm
51BuildRequires: zlib-devel
3e26daac 52ExclusiveArch: %{x8664}
a84837ed
ER
53BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54
55%description
56HandBrake is an open-source, GPL-licensed, multi-platform,
57multi-threaded transcoder, available for MacOS X, Linux and Windows.
58
59%package gui
60Summary: A program to transcode DVDs and other sources to MPEG-4 and MKV
61Group: Applications/Multimedia
a84837ed
ER
62Requires: gstreamer-plugins-bad
63Requires: gstreamer-plugins-ugly
d74f4456 64Requires: gtk+3
a84837ed
ER
65Requires: libdvdcss
66Obsoletes: HandBrake
67Obsoletes: handbrake
68
69%package cli
70Summary: A program to transcode DVDs and other sources to MPEG-4 and MKV
71Group: Applications/Multimedia
72Requires: gtk-update-icon-cache
73Requires: libdvdcss
74Obsoletes: HandBrake
75Obsoletes: handbrake
76
77%description gui
78HandBrake is an open-source, GPL-licensed, multi-platform,
79multi-threaded transcoder, available for MacOS X, Linux and Windows.
80
81This is the GTK GUI version of HandBrake.
82
83%description cli
84HandBrake is an open-source, GPL-licensed, multi-platform,
85multi-threaded transcoder, available for MacOS X, Linux and Windows.
86
87This is the CLI tool version of HandBrake.
88
89%prep
90%setup -q -n HandBrake-%{version} -a1
a84837ed
ER
91
92%build
93export CFLAGS="%{rpmcflags}"
94export CXXFLAGS="%{rpmcxxflags}"
95export LDFLAGS="%{rpmldflags}"
96./configure \
d74f4456
JR
97 --prefix=%{_prefix} \
98 --disable-df-fetch
a84837ed
ER
99%{__make} -C build
100
101%install
102rm -rf $RPM_BUILD_ROOT
103cat > build/GNUmakefile.custom.defs <<EOF
104CONF.args = --prefix=$RPM_BUILD_ROOT%{_prefix}
105PREFIX = $RPM_BUILD_ROOT%{_prefix}
106PREFIX/ = $RPM_BUILD_ROOT%{_prefix}/
107EOF
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
120rm -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
This page took 0.103072 seconds and 4 git commands to generate.