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