]> git.pld-linux.org Git - packages/gxine.git/blame - gxine.spec
- updated to 0.5.910
[packages/gxine.git] / gxine.spec
CommitLineData
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 7Summary: GTK+ based GUI for xine-libraries
2042995d
ER
8Summary(de.UTF-8): GTK+ basierende grafische Oberfläche für die xine-Bibliotheken
9Summary(pl.UTF-8): Oparty na GTK+ graficzny interfejs do bibliotek XINE
f0ed48c1 10Name: gxine
6163f6b9
JB
11Version: 0.5.910
12Release: 1
a11c882a 13License: GPL v2+
f0ed48c1 14Group: X11/Applications/Multimedia
6163f6b9
JB
15Source0: https://downloads.sourceforge.net/xine/%{name}-%{version}.tar.xz
16# Source0-md5: 33f507b1014e928799dc2fe1c755fda6
f0ed48c1
JB
17Patch0: %{name}-desktop.patch
18Patch1: %{name}-plugindir.patch
a11c882a 19Patch2: %{name}-link.patch
6163f6b9 20Patch3: %{name}-xtst.patch
a11c882a 21URL: http://www.xine-project.org/
6163f6b9
JB
22# advpng
23BuildRequires: advancecomp
24BuildRequires: autoconf >= 2.62
25BuildRequires: automake >= 1:1.11
ae26ad10 26BuildRequires: dbus-glib-devel >= 0.35
6163f6b9
JB
27BuildRequires: gettext-tools
28BuildRequires: 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 31BuildRequires: js187-devel
6163f6b9
JB
32# rsvg tool
33BuildRequires: librsvg
f0ed48c1 34BuildRequires: libtool
a11c882a 35BuildRequires: libxcb-devel >= 1.0
39634518 36%{?with_lirc:BuildRequires: lirc-devel}
49d63b56 37BuildRequires: nspr-devel
6163f6b9 38BuildRequires: optipng
a11c882a 39BuildRequires: pango-devel >= 1:1.12.0
8c659bf5 40BuildRequires: pkgconfig
72c1250f 41BuildRequires: rpmbuild(macros) >= 1.357
534a77c5 42BuildRequires: tar >= 1:1.22
a11c882a
JB
43BuildRequires: udev-glib-devel
44BuildRequires: xine-lib-devel >= 2:1.1.8
6163f6b9 45BuildRequires: xorg-lib-libX11-devel
aae356f2 46BuildRequires: xorg-lib-libXaw-devel
a11c882a 47BuildRequires: xorg-lib-libXext-devel
3e30612b 48BuildRequires: xorg-lib-libXinerama-devel
a11c882a 49BuildRequires: xorg-lib-libXrandr-devel
6163f6b9 50%{?with_xtst:BuildRequires: xorg-lib-libXtst-devel}
534a77c5 51BuildRequires: xz
6163f6b9
JB
52Requires: glib2 >= 1:2.32.0
53%{!?with_gtk3:Requires: gtk+2 >= 2:2.18.0}
a11c882a
JB
54Requires: pango >= 1:1.12.0
55Requires: xine-lib >= 2:1.1.8
f0ed48c1
JB
56BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57
f0ed48c1
JB
58%description
59xine is a fully-featured free audio/video player for unix-like systems
60which uses libxine for audio/video decoding and playback. For more
61informations on what formats are supported, please refer to the
62libxine documentation. gxine is a GTK+ based GUI for this
63xine-libraries alternat to xine-ui.
64
6554983a
JR
65%description -l de.UTF-8
66xine ist ein freies Audio- und Video-Abspielprogramm für unixartige
f0ed48c1
JB
67Systeme mit umfassenden Funktionen. Zur Audio- und Videodekodierung
68und Wiedergabe werden die xine-Bibliotheken aus libxine verwendet.
6554983a 69Weitere Informationen über die unterstützten Formate entnehmen Sie in
07cd4043 70der Dokumentation zu libxine. gxine ist eine GTK+ basierende grafische
6554983a 71Oberfläche für diese xine-Bibliotheken, alternativ zur xine-ui
f0ed48c1 72
6554983a
JR
73%description -l pl.UTF-8
74xine to w pełni funkcjonalny wolnodostępny odtwarzacz filmów dla
75systemów uniksowych, korzystający z libxine do dekodowania i
76odtwarzania dźwięku i obrazu. Więcej informacji o obsługiwanych
77formatach można znaleźć w dokumentacji libxine. gxine to graficzny
78interfejs użytkownika do tych bibliotek, oparty na GTK+, alternatywny
f0ed48c1
JB
79dla xine-ui.
80
72c1250f
JB
81%package -n browser-plugin-gxine
82Summary: gxine as browser plugin
2042995d 83Summary(pl.UTF-8): gxine jako wtyczka przeglądarki
f0ed48c1 84Group: X11/Applications/Multimedia
72c1250f 85Requires(post,postun): browser-plugins >= 2.0
f0ed48c1 86Requires: %{name} = %{version}-%{release}
72c1250f 87Requires: browser-plugins(%{_target_base_arch})
6163f6b9 88Obsoletes: mozilla-plugin-gxine < 0.5.10
f0ed48c1 89
72c1250f
JB
90%description -n browser-plugin-gxine
91gxine as browser plugin.
f0ed48c1 92
6554983a
JR
93%description -n browser-plugin-gxine -l pl.UTF-8
94gxine 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
111CFLAGS="%{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
127rm -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
138rm -rf $RPM_BUILD_ROOT
139
72c1250f
JB
140%post -n browser-plugin-gxine
141%update_browser_plugins
142
143%postun -n browser-plugin-gxine
144if [ "$1" = "0" ]; then
145 %update_browser_plugins
146fi
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
This page took 0.521132 seconds and 4 git commands to generate.