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