1 |
%define upstream_name HandBrake |
2 |
|
3 |
Summary: MPEG-AVC(H.264)/MPEG-4 converter |
4 |
Name: handbrake |
5 |
Version: 0.10b1 |
6 |
Release: %mkrel -c r6348 1 |
7 |
License: GPLv2 and LGPL and LGPLv2.1 and BSD |
8 |
Group: Video/Editors and Converters |
9 |
URL: http://handbrake.fr/ |
10 |
# Main sources are only available from SVN repo right now |
11 |
# svn.handbrake.fr/HandBrake/trunk |
12 |
# source0:http://sourceforge.net/projects/handbrake/files/0.9.9/%{upstream_name}-%{version}.tar.bz2/download |
13 |
Source0:%{name}-%{version}.tar.bz2 |
14 |
# Prereq : to fetch additionnal tarballs, we need to run the following |
15 |
# Additionnal tarballs must be present when compiling |
16 |
# Otherwise, they are automaticly downloaded |
17 |
# ./configure && cd build && make contrib.fetch |
18 |
Source1:libav-v10.1.tar.bz2 |
19 |
Source2:libbluray-0.5.0.tar.bz2 |
20 |
Source3:libdvdnav-a5c1325.tar.bz2 |
21 |
Source4:libdvdread-a2f211a.tar.bz2 |
22 |
Source5:libvpx-v1.3.0.tar.bz2 |
23 |
Source6:x265-7246-d6257335c537-1.2.tar.bz2 |
24 |
|
25 |
|
26 |
BuildRequires: yasm |
27 |
BuildRequires: zlib-devel |
28 |
BuildRequires: bzip2-devel |
29 |
BuildRequires: intltool |
30 |
BuildRequires: libtheora-devel |
31 |
BuildRequires: libnotify-devel |
32 |
BuildRequires: libgstreamer-plugins-base-devel |
33 |
BuildRequires: libgstreamer-devel |
34 |
BuildRequires: webkitgtk3-devel |
35 |
BuildRequires: libgudev-devel |
36 |
BuildRequires: dbus-glib-devel |
37 |
BuildRequires: autoconf |
38 |
BuildRequires: m4 |
39 |
BuildRequires: cmake |
40 |
BuildRequires: libtool |
41 |
BuildRequires: automake |
42 |
BuildRequires: libogg-devel |
43 |
BuildRequires: libvorbis-devel |
44 |
BuildRequires: libsamplerate-devel |
45 |
BuildRequires: libxml2-devel |
46 |
BuildRequires: x264-devel |
47 |
BuildRequires: fribidi-devel |
48 |
BuildRequires: freetype |
49 |
BuildRequires: fontconfig-devel |
50 |
BuildRequires: libass-devel |
51 |
BuildRequires: lame-devel |
52 |
|
53 |
%description |
54 |
Versatile DVD ripper and video transcoder - command line |
55 |
HandBrake is a versatile, easy-to-use tool for converting DVDs and other videos |
56 |
into H.264, MPEG-4, or OGG formatted media. It's particularly useful for making |
57 |
videos that are compatible with portable video devices such as the Apple |
58 |
iPod/iPhone. |
59 |
|
60 |
%prep |
61 |
%setup -q |
62 |
%define download %{_builddir}/%{name}-%{version}/download |
63 |
%{__mkdir} %download |
64 |
%{__cp} -t %download %{SOURCE1} |
65 |
%{__cp} -t %download %{SOURCE2} |
66 |
%{__cp} -t %download %{SOURCE3} |
67 |
%{__cp} -t %download %{SOURCE4} |
68 |
%{__cp} -t %download %{SOURCE5} |
69 |
%{__cp} -t %download %{SOURCE6} |
70 |
|
71 |
|
72 |
%build |
73 |
# Tricky pony : the ./configure script doesn't |
74 |
# know the usual params of configure2_5x |
75 |
# --disable-fdk-aac option ensure that no non-free |
76 |
# material is compiled with main sources |
77 |
%setup_compile_flags |
78 |
./configure \ |
79 |
--prefix=%{_prefix} \ |
80 |
--launch \ |
81 |
--launch-jobs=0 \ |
82 |
--verbose \ |
83 |
--disable-fdk-aac \ |
84 |
--debug=none |
85 |
|
86 |
%make -C build |
87 |
|
88 |
%install |
89 |
%makeinstall_std -C build |
90 |
%find_lang ghb |
91 |
|
92 |
desktop-file-install --vendor="" \ |
93 |
--remove-category="Application" \ |
94 |
--remove-key="Encoding" \ |
95 |
--add-category="AudioVideo;Video;AudioVideoEditing;" \ |
96 |
--add-category="X-Mageia-CrossDesktop" \ |
97 |
--dir %buildroot/%_datadir/applications %buildroot/%_datadir/applications/* |
98 |
|
99 |
%files -f ghb.lang |
100 |
%doc AUTHORS COPYING CREDITS NEWS THANKS TRANSLATIONS |
101 |
%{_bindir}/ghb |
102 |
%{_bindir}/HandBrakeCLI |
103 |
%{_datadir}/applications/ghb.desktop |
104 |
%{_iconsdir}/hicolor/scalable/apps/hb-icon.svg |