forked from HandBrake/HandBrake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ghb.spec
88 lines (66 loc) · 2.26 KB
/
ghb.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
Summary: A program to transcode DVDs and other sources to MPEG-4
Group: Applications/Multimedia
License: GPLv2
URL: http://handbrake.fr/
Source0: %{name}-%{version}.tar.bz2
Prefix: %{_prefix}
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: glib2-devel, gtk3-devel, webkitgtk3-devel
BuildRequires: gstreamer1-devel, gstreamer1-plugins-base-devel, libgudev1-devel
BuildRequires: bzip2-devel, intltool, libnotify-devel, libtool, yasm
Requires: gtk3, coreutils
%define debug_package %{nil}
%description
HandBrake is an open-source, GPL-licensed, multi-platform, multi-threaded
transcoder, available for MacOS X, Linux and Windows.
%package gui
Summary: A program to transcode DVDs and other sources to MPEG-4
Group: Applications/Multimedia
%package cli
Summary: A program to transcode DVDs and other sources to MPEG-4
Group: Applications/Multimedia
%description gui
HandBrake is an open-source, GPL-licensed, multi-platform, multi-threaded
transcoder, available for MacOS X, Linux and Windows.
%description cli
HandBrake is an open-source, GPL-licensed, multi-platform, multi-threaded
transcoder, available for MacOS X, Linux and Windows.
%prep
%setup -q
cd %{_builddir}/%{name}-%{version}
%build
./configure --debug=std --prefix=%{_prefix}
make %{?_smp_mflags} -C build
%install
make -C build DESTDIR=$RPM_BUILD_ROOT install-strip
%find_lang ghb
## blow away stuff we don't want
/bin/rm -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
%clean
rm -rf %{buildroot}
%post gui
touch --no-create %{_datadir}/icons/hicolor
if [ -x /usr/bin/gtk-update-icon-cache ]; then
gtk-update-icon-cache -q %{_datadir}/icons/hicolor
fi
%postun gui
touch --no-create %{_datadir}/icons/hicolor
if [ -x /usr/bin/gtk-update-icon-cache ]; then
gtk-update-icon-cache -q %{_datadir}/icons/hicolor
fi
%files gui -f ghb.lang
%defattr(-,root,root,-)
%doc README.markdown NEWS.markdown AUTHORS.markdown THANKS.markdown COPYING LICENSE
%{_datadir}/icons/hicolor
%{_datadir}/applications
%{_bindir}/ghb
%files cli
%defattr(-,root,root,-)
%doc NEWS AUTHORS CREDITS THANKS COPYING
%{_bindir}/HandBrakeCLI
%changelog
* Sun Apr 11 2010 John Stebbins <[email protected]> - svn
- Snapshot release