File xfmedia.spec of Package xfmedia
#
# spec file for package xfmedia (Version 0.9.2)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: xfmedia
BuildRequires: dbus-1-devel hal-devel perl-XML-Parser startup-notification-devel update-desktop-files xine-devel xine-lib
BuildRequires: fam-devel gconf2-devel taglib-devel
BuildRequires: libxfcegui4-devel >= 4.3
BuildRequires: exo-devel >= 0.3
BuildRequires: xfce4-panel-devel >= 4.3
Summary: A simple, easy-to-use media player based on the xine engine
Version: 0.9.2
Release: 232
License: GPL v2 or later
Url: http://www.spuriousinterrupt.org/projects/xfmedia/
Source: %{name}-%{version}.tar.bz2
Source1: %{name}.desktop.in
Group: Productivity/Multimedia/Sound/Players
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Xfmedia is a simple, easy-to-use media player based on the xine engine.
The GTK+ GUI focuses on playing and managing audio files, but, being
based on xine, supports video as well.
%package devel
License: GPL v2 or later
Requires: xfmedia = %{version}
Requires: perl-XML-Parser dbus-1-devel hal-devel startup-notification-devel
Requires: fam-devel gconf2-devel glib2-devel gtk2-devel
Requires: libxfcegui4-devel >= 4.3
Requires: exo-devel >= 0.3
Requires: xfce4-panel-devel >= 4.3
Summary: A simple, easy-to-use media player based on the xine engine
Group: Productivity/Multimedia/Sound/Players
%description devel
Xfmedia is a simple, easy-to-use media player based on the xine engine.
The GTK+ GUI focuses on playing and managing audio files, but, being
based on xine, supports video as well.
%prep
%setup -q
cp %{S:1} .
%build
%configure --disable-static --with-pic\
--enable-dbus \
--enable-startup-notification
make %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
#
# just to make sure that all programs will be able to find it
install -d -m 0755 $RPM_BUILD_ROOT/%{_datadir}/pixmaps
install -m 0644 ./pixmaps/xfmedia.png $RPM_BUILD_ROOT/%{_datadir}/pixmaps/
%suse_update_desktop_file -i %name AudioVideo Player Video
%find_lang %{name}
find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} +
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root)
%doc README ChangeLog INSTALL COPYING AUTHORS
%dir %{_datadir}/xfmedia
%dir %{_datadir}/xfmedia/doc
%dir %{_datadir}/xfmedia/doc/C
%doc %{_datadir}/xfmedia/doc/xfce.css
%doc %{_datadir}/xfmedia/doc/C/*
%{_bindir}/xfmedia
%{_bindir}/xfmedia-remote
%{_sysconfdir}/xdg/xfmedia/
%dir %{_libdir}/xfmedia
%dir %{_libdir}/xfmedia/plugins
%{_libdir}/xfmedia/plugins/xfmedia-infopipe.so
%{_datadir}/applications/xfmedia.desktop
%{_datadir}/pixmaps/xfmedia.png
%{_datadir}/icons/hicolor/22x22/actions/xfmedia-*.png
%dir %{_datadir}/icons/hicolor/22x22
%dir %{_datadir}/icons/hicolor/22x22/actions
%{_datadir}/icons/hicolor/48x48/apps/xfmedia.png
%files devel
%defattr(-, root, root)
%dir %{_includedir}/xfmedia
%{_includedir}/xfmedia/*
%{_libdir}/pkgconfig/xfmedia-plugin.pc
%changelog
* Thu Mar 26 2009 crrodriguez@suse.de
- remove static modules and "la" files
- fix buildRequires
* Sun Mar 16 2008 crrodriguez@suse.de
- fix file-not-in-lang problems
* Thu Jun 07 2007 sbrabec@suse.cz
- Removed invalid desktop Category "Application" (#254654).
* Wed May 02 2007 prusnak@suse.cz
- fixed desktop file, simplified spec file
* Tue Feb 13 2007 pnemec@suse.cz
- fix icon installation
* Tue Feb 06 2007 prusnak@suse.cz
- initial version 0.9.2 from BuildService