File rss-glx.spec of Package rss-glx
#
# spec file for package rss-glx (Version 0.9.1)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2009 Stephan Kulow
# Copyright (c) 2010 Pascal Bleser
#
# 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/
#
%{!?_kde4_servicesdir: %global _kde4_servicesdir %(kde4-config --install services || echo KDE4-CONFIG-NOT-INSTALLED)}
Name: rss-glx
Version: 0.9.1
Release: 1
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: Amusements/Toys/Screensavers
BuildRequires: ImageMagick-devel Mesa-devel gcc-c++ kdelibs4-core openal-devel pkgconfig update-desktop-files xorg-x11-devel xscreensaver
Source0: http://prdownloads.sourceforge.net/rss-glx/rss-glx_%{version}.tar.bz2
Summary: Really Slick Screensavers Port to GLX
Url: http://rss-glx.sourceforge.net/
%description
Cool collection of 3D screensavers. Linux port of Really Slick Screensavers
%prep
%setup0 -n %{name}_%{version}
%build
%configure --with-configdir=/etc/xscreensaver --with-kdessconfigdir="%{_kde4_servicesdir}/ScreenSavers"
%{__make} %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
%kde_post_install
%__rm -rf "$RPM_BUILD_ROOT/%_libdir"
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%_mandir/*/*%{ext_man}
%_bindir/*
%config /etc/xscreensaver/*
%_kde4_servicesdir/ScreenSavers
%changelog