]> git.pld-linux.org Git - packages/handbrake.git/blob - handbrake.spec
191ec73c6064b5b71ed2c6ef7bc4a0c0c0280dd5
[packages/handbrake.git] / handbrake.spec
1 Summary:        A program to transcode DVDs and other sources to MPEG-4 and MKV
2 Name:           handbrake
3 Version:        1.1.1
4 Release:        2
5 License:        GPL v2+
6 Group:          Applications/Multimedia
7 URL:            http://handbrake.fr/
8 Source0:        https://download2.handbrake.fr/%{version}/HandBrake-%{version}-source.tar.bz2
9 # Source0-md5:  8b605d62cc6dd63bb8918dc6b47d4ee3
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!
14 Source1:        HandBrake-%{version}-contrib-tarballs.tar
15 # Source1-md5:  1f50c8c7f4ff2b7f8bd498dd92557587
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  bzip2-devel
19 BuildRequires:  cmake
20 BuildRequires:  curl-devel
21 BuildRequires:  dbus-glib-devel
22 BuildRequires:  fontconfig-devel
23 BuildRequires:  freetype-devel
24 BuildRequires:  fribidi-devel
25 BuildRequires:  glib2-devel
26 BuildRequires:  gstreamer-devel
27 BuildRequires:  gstreamer-plugins-base-devel
28 BuildRequires:  gtk+3-devel
29 BuildRequires:  gtk-webkit3-devel
30 BuildRequires:  harfbuzz-devel
31 BuildRequires:  intltool
32 BuildRequires:  jansson-devel
33 BuildRequires:  lame-libs-devel
34 BuildRequires:  libass-devel
35 BuildRequires:  libnotify-devel
36 BuildRequires:  libogg-devel
37 BuildRequires:  libsamplerate-devel
38 BuildRequires:  libstdc++-devel
39 BuildRequires:  libtheora-devel
40 BuildRequires:  libtool
41 BuildRequires:  libvorbis-devel
42 BuildRequires:  libx264-devel
43 BuildRequires:  libxml2-devel
44 BuildRequires:  m4
45 BuildRequires:  opus-devel
46 BuildRequires:  pkgconfig
47 BuildRequires:  python
48 BuildRequires:  subversion
49 BuildRequires:  udev-glib-devel
50 BuildRequires:  yasm
51 BuildRequires:  zlib-devel
52 ExclusiveArch:  %{x8664}
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
62 Requires:       gstreamer-plugins-bad
63 Requires:       gstreamer-plugins-ugly
64 Requires:       gtk+3
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
91
92 %build
93 export CFLAGS="%{rpmcflags}"
94 export CXXFLAGS="%{rpmcxxflags}"
95 export LDFLAGS="%{rpmldflags}"
96 ./configure \
97         --prefix=%{_prefix} \
98         --disable-df-fetch
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
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
118
119 %clean
120 rm -rf $RPM_BUILD_ROOT
121
122 %post gui
123 %update_icon_cache hicolor
124
125 %postun gui
126 %update_icon_cache hicolor
127
128 %files gui -f ghb.lang
129 %defattr(644,root,root,755)
130 %doc COPYING AUTHORS.markdown NEWS.markdown README.markdown THANKS.markdown
131 %attr(755,root,root) %{_bindir}/ghb
132 %{_desktopdir}/ghb.desktop
133 %{_iconsdir}/hicolor/scalable/apps/hb-icon.svg
134 %{_datadir}/metainfo/fr.handbrake.ghb.appdata.xml
135
136 %files cli
137 %defattr(644,root,root,755)
138 %attr(755,root,root) %{_bindir}/HandBrakeCLI
This page took 0.077614 seconds and 2 git commands to generate.