]> git.pld-linux.org Git - packages/gxine.git/blob - gxine.spec
561e718c868080770d57f144b53c0e5f0d3d8c45
[packages/gxine.git] / gxine.spec
1 #
2 # Conditional build:
3 %bcond_without  lirc    # without LIRC support
4 #
5 Summary:        GTK+ based GUI for xine-libraries
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
8 Name:           gxine
9 Version:        0.5.11
10 Release:        1
11 License:        GPL
12 Group:          X11/Applications/Multimedia
13 Source0:        http://dl.sourceforge.net/xine/%{name}-%{version}.tar.bz2
14 # Source0-md5:  b210d1f6e3eab3ff496c1db9e09dbcd0
15 Patch0:         %{name}-desktop.patch
16 Patch1:         %{name}-plugindir.patch
17 URL:            http://xine.sourceforge.net/
18 BuildRequires:  autoconf >= 2.59
19 BuildRequires:  automake >= 1:1.9
20 BuildRequires:  dbus-glib-devel >= 0.35
21 BuildRequires:  gtk+2-devel >= 1:2.6.0
22 BuildRequires:  js-devel
23 BuildRequires:  libtool
24 %{?with_lirc:BuildRequires:     lirc-devel}
25 BuildRequires:  nspr-devel
26 BuildRequires:  pango-devel >= 1.12.0
27 BuildRequires:  pkgconfig
28 BuildRequires:  rpmbuild(macros) >= 1.357
29 BuildRequires:  xine-lib-devel >= 2:1.0.1
30 BuildRequires:  xorg-lib-libXaw-devel
31 BuildRequires:  xorg-lib-libXinerama-devel
32 Requires:       xine-lib >= 2:1.0.1
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
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
42 %description -l de.UTF-8
43 xine ist ein freies Audio- und Video-Abspielprogramm für unixartige
44 Systeme mit umfassenden Funktionen. Zur Audio- und Videodekodierung
45 und Wiedergabe werden die xine-Bibliotheken aus libxine verwendet.
46 Weitere Informationen über die unterstützten Formate entnehmen Sie in
47 der Dokumentation zu libxine. gxine ist eine GTK+ basierende grafische
48 Oberfläche für diese xine-Bibliotheken, alternativ zur xine-ui
49
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
56 dla xine-ui.
57
58 %package -n browser-plugin-gxine
59 Summary:        gxine as browser plugin
60 Summary(pl.UTF-8):      gxine jako wtyczka przeglądarki
61 Group:          X11/Applications/Multimedia
62 Requires(post,postun):  browser-plugins >= 2.0
63 Requires:       %{name} = %{version}-%{release}
64 Requires:       browser-plugins(%{_target_base_arch})
65 Obsoletes:      mozilla-plugin-gxine
66
67 %description -n browser-plugin-gxine
68 gxine as browser plugin.
69
70 %description -n browser-plugin-gxine -l pl.UTF-8
71 gxine jako wtyczka przeglądarki.
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 \
85         GSSCMD=/usr/bin/gnome-screensaver-command \
86         %{!?with_lirc:--disable-lirc} \
87         --disable-static \
88         --with-plugindir=%{_browserpluginsdir} \
89         --with-spidermonkey=/usr/include/js
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
100 rm -f $RPM_BUILD_ROOT%{_browserpluginsdir}/*.la
101
102 %find_lang %{name} --all-name
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
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
115 %files -f %{name}.lang
116 %defattr(644,root,root,755)
117 %doc AUTHORS ChangeLog README TODO
118 %attr(755,root,root) %{_bindir}/gxine*
119 %{_datadir}/gxine
120 %dir %{_sysconfdir}/gxine
121 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gxine/*
122 %{_desktopdir}/gxine.desktop
123 %{_iconsdir}/hicolor/*/*/*.png
124 %{_pixmapsdir}/gxine.png
125 %{_mandir}/man1/*
126 %lang(de) %{_mandir}/de/man1/*
127
128 %files -n browser-plugin-gxine
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_browserpluginsdir}/gxineplugin.so
This page took 0.205661 seconds and 3 git commands to generate.