--- /dev/null
+Summary: GTK+ based GUI for xine-libraries
+Summary(de): GTK+ basierende grafische Oberfläche für die xine-Bibliotheken
+Summary(pl): Oparty na GTK+ graficzny interfejs do bibliotek XINE
+Name: gxine
+Version: 0.3.3
+Release: 1
+License: GPL
+Group: X11/Applications/Multimedia
+Source0: http://dl.sourceforge.net/xine/%{name}-%{version}.tar.gz
+# Source0-md5: d54af2f901065555348a77fa3b61581e
+Patch0: %{name}-desktop.patch
+Patch1: %{name}-plugindir.patch
+URL: http://xine.sourceforge.net/
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake
+BuildRequires: gtk+2-devel >= 2.0.0
+BuildRequires: libtool
+BuildRequires: xine-lib-devel >= 1:1.0
+Requires: xine-lib >= 1:1.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define mozilladir /usr/%{_lib}/mozilla/plugins
+
+%description
+xine is a fully-featured free audio/video player for unix-like systems
+which uses libxine for audio/video decoding and playback. For more
+informations on what formats are supported, please refer to the
+libxine documentation. gxine is a GTK+ based GUI for this
+xine-libraries alternat to xine-ui.
+
+%description -l de
+xine ist ein freies Audio- und Video-Abspielprogramm für unixartige
+Systeme mit umfassenden Funktionen. Zur Audio- und Videodekodierung
+und Wiedergabe werden die xine-Bibliotheken aus libxine verwendet.
+Weitere Informationen über die unterstützten Formate entnehmen Sie in
+der Dokumentation zu libxine. gxine ist eine gtk basierende grafische
+Oberfläche für diese xine-Bibliotheken, alternativ zur xine-ui
+
+%description -l pl
+xine to w pe³ni funkcjonalny wolnodostêpny odtwarzacz filmów dla
+systemów uniksowych, korzystaj±cy z libxine do dekodowania i
+odtwarzania d¼wiêku i obrazu. Wiêcej informacji o obs³ugiwanych
+formatach mo¿na znale¼æ w dokumentacji libxine. gxine to graficzny
+interfejs u¿ytkownika do tych bibliotek, oparty na GTK+, alternatywny
+dla xine-ui.
+
+%package -n mozilla-plugin-gxine
+Summary: gxine as Mozilla plugin
+Summary(pl): gxine jako wtyczka Mozilli
+Group: X11/Applications/Multimedia
+Requires: %{name} = %{version}-%{release}
+
+%description -n mozilla-plugin-gxine
+gxine as Mozilla plugin.
+
+%description -n mozilla-plugin-gxine -l pl
+gxine jako wtyczka Mozilli.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+ --disable-static \
+ --with-plugindir=%{mozilladir}
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ Applicationsdir=%{_desktopdir}
+
+install -D pixmaps/gxine-logo.png $RPM_BUILD_ROOT%{_pixmapsdir}/gxine-logo.png
+rm -f $RPM_BUILD_ROOT%{mozilladir}/*.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README TODO
+%attr(755,root,root) %{_bindir}/gxine*
+%{_datadir}/gxine
+%{_desktopdir}/gxine.desktop
+%{_pixmapsdir}/gxine-logo.png
+%{_mandir}/man1/*
+%lang(de) %{_mandir}/de/man1/*
+
+%files -n mozilla-plugin-gxine
+%defattr(644,root,root,755)
+%attr(755,root,root) %{mozilladir}/gxineplugin.so