/[packages]/cauldron/handbrake/current/SPECS/handbrake.spec
ViewVC logotype

Contents of /cauldron/handbrake/current/SPECS/handbrake.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1642354 - (show annotations) (download)
Tue Nov 3 16:21:39 2020 UTC (8 months, 3 weeks ago) by eatdirt
File size: 5256 byte(s)
SILENT: fix misprint
1 %define upstream_name HandBrake
2 %define download %{_builddir}/%{upstream_name}-%{version}/download
3
4 %define bluray_ver 1.1.2
5 %define dvdnav_ver 6.0.1
6 %define dvdread_ver 6.0.2
7
8 %define x265_ver 3.2.1
9 %define nv_ver 9.0.18.1
10 %define ffmpeg_ver 4.2.3
11 %define dav_ver 0.5.1
12
13 Summary: An open-source video transcoder
14 Name: handbrake
15 Version: 1.3.3
16 Release: %mkrel 5
17 License: GPLv2
18 Group: Video/Editors and Converters
19 URL: https://handbrake.fr/
20 #these bundles are otherwise downloaded. They are heavily patched by
21 #the configure script and that prevents us to replace them by linking
22 #with our system libraries
23 Source0: https://download.handbrake.fr/releases/%{version}/%{upstream_name}-%{version}-source.tar.bz2
24 Source1: https://download.handbrake.fr/handbrake/contrib/libbluray-%{bluray_ver}.tar.bz2
25 Source2: https://download.handbrake.fr/handbrake/contrib/libdvdnav-%{dvdnav_ver}.tar.bz2
26 Source3: https://download.handbrake.fr/handbrake/contrib/libdvdread-%{dvdread_ver}.tar.bz2
27
28 Source5: https://download.handbrake.fr/contrib/x265_%{x265_ver}.tar.gz
29 Source6: https://download.handbrake.fr/contrib/nv-codec-headers-%{nv_ver}.tar.gz
30 Source7: https://download.handbrake.fr/contrib/ffmpeg-%{ffmpeg_ver}.tar.bz2
31 Source8: https://download.handbrake.fr/handbrake/contrib/dav1d-%{dav_ver}.tar.bz2
32
33 #applied by the configure script
34 Source100: linking-issue-on-non-x86-platform.patch
35
36 #required on ix86
37 Patch1: handbrake-1.3.3-x265-max8bits.patch
38
39 BuildRequires: meson
40 BuildRequires: appstream
41 BuildRequires: autoconf
42 BuildRequires: automake
43 BuildRequires: cmake
44 BuildRequires: intltool
45 BuildRequires: libtool
46 BuildRequires: m4
47 BuildRequires: yasm
48 BuildRequires: nasm
49 BuildRequires: python3
50 BuildRequires: bzip2-devel
51 BuildRequires: lame-devel
52 BuildRequires: pkgconfig(dbus-glib-1)
53 BuildRequires: pkgconfig(fontconfig)
54 BuildRequires: pkgconfig(fribidi)
55 BuildRequires: pkgconfig(gstreamer-1.0)
56 BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)
57 BuildRequires: pkgconfig(gtk+-3.0)
58 BuildRequires: pkgconfig(gudev-1.0)
59 BuildRequires: pkgconfig(jansson)
60 BuildRequires: pkgconfig(libass)
61 BuildRequires: pkgconfig(libnotify)
62 BuildRequires: pkgconfig(libxml-2.0)
63 BuildRequires: pkgconfig(ogg)
64 BuildRequires: pkgconfig(opus)
65 BuildRequires: pkgconfig(samplerate)
66 BuildRequires: pkgconfig(theora)
67 BuildRequires: pkgconfig(vorbis)
68 BuildRequires: pkgconfig(x264)
69 BuildRequires: pkgconfig(zlib)
70 BuildRequires: pkgconfig(speex)
71 BuildRequires: pkgconfig(libvpx)
72 %ifnarch %arm
73 BuildRequires: pkgconfig(numa)
74 %endif
75
76 #ARM architecture is officially not supported by HandBrake (see https://github.com/HandBrake/HandBrake/issues/538)
77 #ExcludeArch: #arm
78
79 #Heavily patched bundles
80 Provides: bundled(libbluray) = %{bluray_ver}
81 Provides: bundled(libdvdnav) = %{dvdnav_ver}
82 Provides: bundled(libdvdread) = %{dvdread_ver}
83
84 Provides: bundled(x265) = %{x265_ver}
85 Provides: bundled(nv-codec-headers) = %{nv_ver}
86 Provides: bundled(ffmpeg) = %{ffmpeg_ver}
87 Provides: bundled(libdav1d) = %{dav_ver}
88
89 %description
90 HandBrake takes videos you already have and makes new ones that work
91 on your mobile phone, tablet, TV media player, game console, computer,
92 or web browser, nearly anything that supports modern video formats.
93 HandBrake works with most common video files and formats, including
94 ones created by consumer and professional video cameras, mobile
95 devices such as phones and tablets, game and computer screen
96 recordings, and DVD and Blu-ray discs. HandBrake leverages tools such
97 as FFmpeg, x264, and x265 to create new MP4 or MKV video files from
98 these sources.
99
100 %prep
101 %setup -q -n %{upstream_name}-%{version}
102 %ifarch %ix86 %arm
103 %patch1 -p1 -b .x265-no-10bit-12bit
104 %endif
105
106 %{__mkdir} %download
107 %{__cp} -t %download %{SOURCE1}
108 %{__cp} -t %download %{SOURCE2}
109 %{__cp} -t %download %{SOURCE3}
110
111 %{__cp} -t %download %{SOURCE5}
112 %{__cp} -t %download %{SOURCE6}
113 %{__cp} -t %download %{SOURCE7}
114 %{__cp} -t %download %{SOURCE8}
115
116 #patches
117 #(eatdirt) fixed and might be no-relevant if we don't build on arm/aarch64
118 ##%{__cp} -a %{SOURCE100} contrib/x265/A99-linking-issue-on-non-x86-platform.patch
119
120
121 %build
122 #that is no a autoconf configure script (see ./configure --help)
123 %set_build_flags
124 ./configure \
125 --disable-df-fetch \
126 --prefix=%{_prefix} \
127 %ifarch aarch64
128 --disable-nvenc \
129 %endif
130 %ifarch %arm
131 --disable-numa \
132 --disable-nvenc \
133 %endif
134 --launch \
135 --launch-jobs=0 \
136 --verbose \
137 --debug=std
138
139 %make_build -C build
140
141 %install
142 %make_install -C build
143
144 %find_lang ghb
145
146 desktop-file-install --vendor="" \
147 --remove-category="Application" \
148 --remove-key="Encoding" \
149 --add-category="AudioVideo;Video;AudioVideoEditing;" \
150 --add-category="X-Mageia-CrossDesktop" \
151 --dir %buildroot/%_datadir/applications %buildroot/%_datadir/applications/*
152
153 %files -f ghb.lang
154 %doc AUTHORS* NEWS* README* THANKS*
155 %license COPYING
156 %{_bindir}/ghb
157 %{_bindir}/HandBrakeCLI
158 %{_datadir}/applications/fr.handbrake.ghb.desktop
159 %{_iconsdir}/hicolor/scalable/apps/fr.handbrake.ghb.svg
160 %{_iconsdir}/hicolor/scalable/apps/hb-icon.svg
161 %{_datadir}/metainfo/fr.handbrake.ghb.metainfo.xml

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.28