File unicode-screensaver.spec of Package unicode-screensaver
# vim: set ts=4 sw=4 et:
Name: unicode-screensaver
Version: 0.4
Release: 0
Summary: Screensaver with a random Unicode Character
# http://www.joachim-breitner.de/archive/unicode-screensaver/unicode-screensaver-%{version}.tar.gz
Source: unicode-screensaver-%{version}.tar.bz2
URL: http://www.joachim-breitner.de/projects#unicode-screensaver
Group: Amusements/Toys/Screensavers
License: MIT/X
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: xorg-x11-devel
BuildRequires: gcc make glibc-devel pkgconfig
BuildRequires: autoconf automake libtool update-desktop-files
%description
The unicode-screensaver is a simple screensaver application that repeatedly
randomly picks an unicode character and displays it in a very large font size
together with its unicode code point and the character name.
Authors:
--------
Joachim Breitner <mail@joachim-breitner.de>
%prep
%setup -q
%build
%configure \
--with-hackdir="%{_libdir}/xscreensaver" \
--with-desktopdir="%{_datadir}/applications" \
--with-configdir="%{_sysconfdir}/xscreensaver"
%__make %{?_smp_flags}
%install
%makeinstall
%__sed -i '/^OnlyShowIn=/d' "%{buildroot}%{_datadir}/applications/unicode.desktop"
echo "OnlyShowIn=KDE;GNOME;XFCE;" >> "%{buildroot}%{_datadir}/applications/unicode.desktop"
%suse_update_desktop_file -r unicode System Screensaver
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc README
%dir %{_sysconfdir}/xscreensaver
%config(noreplace) %{_sysconfdir}/xscreensaver/unicode.xml
%dir %{_libdir}/xscreensaver
%{_libdir}/xscreensaver/unicode
%{_datadir}/applications/unicode.desktop
%doc %{_mandir}/man6/unicode.6x%{ext_man}
%changelog