OSDN Git Service

83cdab49e56dc6e25e557c0111e613bfa5de0aff
[handbrake-jp/handbrake-jp-git.git] / gtk / ghb.spec
1 Name:           handbrake
2 Version:        0.9.2
3 Release:        1%{?dist}
4 Summary:        A program to rip and encode DVDs and other sources to MPEG-4
5
6 Group:          Applications/Multimedia
7 License:        GPL
8 URL:            http://handbrake.fr/
9 Source0:        HandBrake.tgz
10 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
11
12 Requires:       glib2 >= 2.16, gtk2 >= 2.12, hal-libs
13
14 %description
15 HandBrake is an open-source, GPL-licensed, multiplatform, multithreaded 
16 DVD to MPEG-4 converter, available for MacOS X, Linux and Windows.
17
18 %prep
19 %setup -q
20
21
22 %build
23 %configure
24 jam
25
26
27 %install
28 rm -rf $RPM_BUILD_ROOT
29 DESTDIR=$RPM_BUILD_ROOT jam install 
30
31 ## blow away stuff we don't want
32 /bin/rm $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
33
34 %clean
35 rm -rf $RPM_BUILD_ROOT
36
37 %post
38 touch --no-create %{_datadir}/icons/hicolor
39 if [ -x /usr/bin/gtk-update-icon-cache ]; then
40   gtk-update-icon-cache -q %{_datadir}/icons/hicolor
41 fi
42
43 %postun
44 /sbin/ldconfig
45 touch --no-create %{_datadir}/icons/hicolor
46 if [ -x /usr/bin/gtk-update-icon-cache ]; then
47   gtk-update-icon-cache -q %{_datadir}/icons/hicolor
48 fi
49
50 %files
51 %defattr(-,root,root,-)
52 %doc %{_datadir}/doc
53 %{_datadir}/ghb
54 %{_datadir}/icons
55 %{_datadir}/locale
56 %{_datadir}/applications
57 %{_bindir}
58
59
60 %changelog
61 * Sat May 31 2008 John Stebbins <jstebbins@jetheaddev.com> 
62 - Initial release
63
64