]>
Commit | Line | Data |
---|---|---|
39634518 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without lirc # without LIRC support | |
4 | # | |
f0ed48c1 | 5 | Summary: GTK+ based GUI for xine-libraries |
2042995d ER |
6 | Summary(de.UTF-8): GTK+ basierende grafische Oberfläche für die xine-Bibliotheken |
7 | Summary(pl.UTF-8): Oparty na GTK+ graficzny interfejs do bibliotek XINE | |
f0ed48c1 | 8 | Name: gxine |
ae26ad10 | 9 | Version: 0.5.11 |
5f9d14fb | 10 | Release: 1 |
f0ed48c1 JB |
11 | License: GPL |
12 | Group: X11/Applications/Multimedia | |
a236c992 | 13 | Source0: http://dl.sourceforge.net/xine/%{name}-%{version}.tar.bz2 |
ae26ad10 | 14 | # Source0-md5: b210d1f6e3eab3ff496c1db9e09dbcd0 |
f0ed48c1 JB |
15 | Patch0: %{name}-desktop.patch |
16 | Patch1: %{name}-plugindir.patch | |
17 | URL: http://xine.sourceforge.net/ | |
3e30612b JB |
18 | BuildRequires: autoconf >= 2.59 |
19 | BuildRequires: automake >= 1:1.9 | |
ae26ad10 | 20 | BuildRequires: dbus-glib-devel >= 0.35 |
cf7d103a | 21 | BuildRequires: gtk+2-devel >= 1:2.6.0 |
9a1718a5 | 22 | BuildRequires: js-devel |
f0ed48c1 | 23 | BuildRequires: libtool |
39634518 | 24 | %{?with_lirc:BuildRequires: lirc-devel} |
49d63b56 | 25 | BuildRequires: nspr-devel |
ae26ad10 | 26 | BuildRequires: pango-devel >= 1.12.0 |
8c659bf5 | 27 | BuildRequires: pkgconfig |
72c1250f | 28 | BuildRequires: rpmbuild(macros) >= 1.357 |
49b25ccf | 29 | BuildRequires: xine-lib-devel >= 2:1.0.1 |
aae356f2 | 30 | BuildRequires: xorg-lib-libXaw-devel |
3e30612b | 31 | BuildRequires: xorg-lib-libXinerama-devel |
49b25ccf | 32 | Requires: xine-lib >= 2:1.0.1 |
f0ed48c1 JB |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
f0ed48c1 JB |
35 | %description |
36 | xine is a fully-featured free audio/video player for unix-like systems | |
37 | which uses libxine for audio/video decoding and playback. For more | |
38 | informations on what formats are supported, please refer to the | |
39 | libxine documentation. gxine is a GTK+ based GUI for this | |
40 | xine-libraries alternat to xine-ui. | |
41 | ||
6554983a JR |
42 | %description -l de.UTF-8 |
43 | xine ist ein freies Audio- und Video-Abspielprogramm für unixartige | |
f0ed48c1 JB |
44 | Systeme mit umfassenden Funktionen. Zur Audio- und Videodekodierung |
45 | und Wiedergabe werden die xine-Bibliotheken aus libxine verwendet. | |
6554983a | 46 | Weitere Informationen über die unterstützten Formate entnehmen Sie in |
07cd4043 | 47 | der Dokumentation zu libxine. gxine ist eine GTK+ basierende grafische |
6554983a | 48 | Oberfläche für diese xine-Bibliotheken, alternativ zur xine-ui |
f0ed48c1 | 49 | |
6554983a JR |
50 | %description -l pl.UTF-8 |
51 | xine to w pełni funkcjonalny wolnodostępny odtwarzacz filmów dla | |
52 | systemów uniksowych, korzystający z libxine do dekodowania i | |
53 | odtwarzania dźwięku i obrazu. Więcej informacji o obsługiwanych | |
54 | formatach można znaleźć w dokumentacji libxine. gxine to graficzny | |
55 | interfejs użytkownika do tych bibliotek, oparty na GTK+, alternatywny | |
f0ed48c1 JB |
56 | dla xine-ui. |
57 | ||
72c1250f JB |
58 | %package -n browser-plugin-gxine |
59 | Summary: gxine as browser plugin | |
2042995d | 60 | Summary(pl.UTF-8): gxine jako wtyczka przeglądarki |
f0ed48c1 | 61 | Group: X11/Applications/Multimedia |
72c1250f | 62 | Requires(post,postun): browser-plugins >= 2.0 |
f0ed48c1 | 63 | Requires: %{name} = %{version}-%{release} |
72c1250f JB |
64 | Requires: browser-plugins(%{_target_base_arch}) |
65 | Obsoletes: mozilla-plugin-gxine | |
f0ed48c1 | 66 | |
72c1250f JB |
67 | %description -n browser-plugin-gxine |
68 | gxine as browser plugin. | |
f0ed48c1 | 69 | |
6554983a JR |
70 | %description -n browser-plugin-gxine -l pl.UTF-8 |
71 | gxine jako wtyczka przeglądarki. | |
f0ed48c1 JB |
72 | |
73 | %prep | |
74 | %setup -q | |
75 | %patch0 -p1 | |
76 | %patch1 -p1 | |
77 | ||
78 | %build | |
79 | %{__libtoolize} | |
80 | %{__aclocal} -I m4 | |
81 | %{__autoconf} | |
82 | %{__autoheader} | |
83 | %{__automake} | |
84 | %configure \ | |
ae26ad10 | 85 | GSSCMD=/usr/bin/gnome-screensaver-command \ |
39634518 | 86 | %{!?with_lirc:--disable-lirc} \ |
f0ed48c1 | 87 | --disable-static \ |
72c1250f | 88 | --with-plugindir=%{_browserpluginsdir} \ |
2664aa85 | 89 | --with-spidermonkey=/usr/include/js |
f0ed48c1 JB |
90 | |
91 | %{__make} | |
92 | ||
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %{__make} install \ | |
97 | DESTDIR=$RPM_BUILD_ROOT \ | |
98 | Applicationsdir=%{_desktopdir} | |
99 | ||
72c1250f | 100 | rm -f $RPM_BUILD_ROOT%{_browserpluginsdir}/*.la |
f0ed48c1 | 101 | |
e7961d15 | 102 | %find_lang %{name} --all-name |
5f9d14fb | 103 | |
f0ed48c1 JB |
104 | %clean |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
72c1250f JB |
107 | %post -n browser-plugin-gxine |
108 | %update_browser_plugins | |
109 | ||
110 | %postun -n browser-plugin-gxine | |
111 | if [ "$1" = "0" ]; then | |
112 | %update_browser_plugins | |
113 | fi | |
114 | ||
5f9d14fb | 115 | %files -f %{name}.lang |
f0ed48c1 JB |
116 | %defattr(644,root,root,755) |
117 | %doc AUTHORS ChangeLog README TODO | |
118 | %attr(755,root,root) %{_bindir}/gxine* | |
119 | %{_datadir}/gxine | |
e7961d15 JB |
120 | %dir %{_sysconfdir}/gxine |
121 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gxine/* | |
f0ed48c1 | 122 | %{_desktopdir}/gxine.desktop |
a236c992 KK |
123 | %{_iconsdir}/hicolor/*/*/*.png |
124 | %{_pixmapsdir}/gxine.png | |
f0ed48c1 JB |
125 | %{_mandir}/man1/* |
126 | %lang(de) %{_mandir}/de/man1/* | |
127 | ||
72c1250f | 128 | %files -n browser-plugin-gxine |
f0ed48c1 | 129 | %defattr(644,root,root,755) |
72c1250f | 130 | %attr(755,root,root) %{_browserpluginsdir}/gxineplugin.so |