# sitelib for noarch packages, sitearch for others (remove the unneeded one) %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: screenlets Version: 0.1.2 Release: 3%{?dist} Summary: Themeable apps that improve the usability and eye-candy of the Linux-desktop Group: User Interface/Desktops License: GPLv3 URL: http://www.screenlets.org Source0: http://code.launchpad.net/%{name}/trunk/%{version}/+download/%{name}-%{version}.tar.bz2 Patch0: screenlets-0.1.2_invalid-desktopfile.patch Patch1: screenlets-0.1.2_non-executable-script.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel BuildRequires: gettext BuildRequires: dos2unix BuildRequires: desktop-file-utils %description Screenlets are small owner-drawn applications (written in Python) that can be described as "the virtual representation of things lying/standing around on your desk". Sticknotes, clocks, rulers, ... the possibilities are endless. The goal of the Screenlets base-classes is to simplify the creation of fully themeable mini-apps that each solve basic desktop-work-related needs and generally improve the usability and eye-candy of the modern composited Linux-desktop. %prep %setup -q -n %{name} dos2unix src/share/screenlets/Radio/RadioScreenlet.py %patch0 -p1 -b invalid-desktopfile.rej %patch1 -p1 -b non-executable-scrip.rej %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/screenlets-manager.desktop %find_lang %{name} %find_lang screenlets-manager cat screenlets-manager.lang >> %{name}.lang %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS CHANGELOG COPYING DEVELOPERS LICENCE README TODO %{_bindir}/screenlets %{_bindir}/screenlets-daemon %{_bindir}/screenlets-manager %{_bindir}/screenlets-packager %{_bindir}/screenletsd %{python_sitelib}/* %{_datadir}/applications/screenlets-manager.desktop %{_datadir}/icons/screenlets.svg %{_datadir}/screenlets-manager/ %{_datadir}/screenlets/ %changelog * Sun Feb 15 2009 Edouard Bourguignon 0.1.2-3 - Shorten summary - Fix source URL * Sun Feb 15 2009 Edouard Bourguignon 0.1.2-2 - Validate desktop file - Change path to icon in desktop file - Change summary, original was too vague * Sun Feb 8 2009 Edouard Bourguignon 0.1.2-1 - Fix non unix format in RadioScreenlet.py - Patch to fix invalid desktop file - Patch to remove shebang on non executable scripts - Initial version