File rss-glx.spec of Package rss-glx

#
# spec file for package rss-glx
#
# Copyright (c) 2011 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/
#



Name:           rss-glx
Version:        0.9.1
Release:        1
License:        GPL
Summary:        Really Slick Screensavers Port to GLX
Url:            http://rss-glx.sourceforge.net/
Group:          Amusements/Toys/Screensavers
Source0:        http://prdownloads.sourceforge.net/rss-glx/rss-glx_%{version}.tar.bz2
# PATCH-FIX-OPENSUSE
Patch0:         rss-glx-optflags.patch
BuildRequires:  Mesa-devel
BuildRequires:  gcc-c++
BuildRequires:  kde4-filesystem
BuildRequires:  openal-devel
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  xorg-x11-devel
BuildRequires:  xscreensaver
BuildRequires:  pkgconfig(ImageMagick)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Cool collection of 3D screensavers. Linux port of Really Slick Screensavers

%prep
%setup0 -n %{name}_%{version}
%patch0

%build
autoreconf -fiv
%configure --disable-static --enable-shared --with-pic \
           --with-configdir=/etc/xscreensaver --with-kdessconfigdir="%{_kde4_servicesdir}/ScreenSavers"
make %{?_smp_mflags}

%install
%make_install
%kde_post_install
find %{buildroot} -name "*.la" -type f -print -delete
#no -devel files here..
rm -rvf %{buildroot}%{_libdir}/*.so

%clean
%{?buildroot:rm -rf %{buildroot}}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_mandir}/*/*%{ext_man}
%{_bindir}/*
%{_libdir}/lib*
%config %{_sysconfdir}/xscreensaver/*
%_kde4_servicesdir/ScreenSavers

%changelog
openSUSE Build Service is sponsored by