File screenlets.spec of Package screenlets

Name:           screenlets
Version:        0.1.7
Release:        0
License:        GPL
URL:            http://www.screenlets.org/index.php/Home
Summary:        OsX Like Dashboard
Group:          System/X11/Utilities
BuildRoot:      %{_tmppath}/%{name}-%{version}-root
Source:         screenlets-0.1.7.tar.bz2
Source1:	%{name}.svg
Source2:	screenlets-tray.svg
#Source3:	screenlets-manager.desktop
BuildRequires:  python-devel
Buildrequires:  update-desktop-files
BuildRequires: -post-build-checks -rpmlint-Factory
Requires:       python-gnome
Requires:       python-gtk
Requires:       python-pyxdg
Requires:       gnome-python-desktop
Requires:       dbus-1-python >= 0.80.1
Requires:       python-imaging
Requires:       python-dateutil
Requires:       python-gnome-extras


%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.
You do NOT need Compiz or Beryl to use screenlets

%prep
%setup -q -n screenlets-0.1.7

%build
%{__python} setup.py build

%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT --prefix /usr

# install desktop file & icon
install -D -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/icons/%{name}.svg
install -D -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/icons/screenlets-tray.svg

%suse_update_desktop_file -i screenlets-manager GNOME Utility DesktopUtility 

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root, 0755)
%doc CHANGELOG README TODO
%{_bindir}/*
%dir %{_datadir}/screenlets/
%dir %{_datadir}/screenlets-manager/
%dir /usr/lib*/python*/site-packages/%{name}/
%{_datadir}/screenlets-manager/*
%{_datadir}/applications/*
%{_datadir}/locale/*/LC_MESSAGES/screenlets-manager.mo
%{_datadir}/locale/*/LC_MESSAGES/screenlets.mo
/usr/lib*/python*/site-packages/%{name}/*
/usr/lib*/python*/site-packages/%{name}-*-py*.egg-info
/usr/share/icons/ubuntu-mono-dark/apps/24/screenlets-tray.svg
/usr/share/icons/ubuntu-mono-light/apps/24/screenlets-tray.svg
/usr/share/icons/hicolor/scalable/apps/screenlets-tray.svg
/usr/share/icons/hicolor/scalable/apps/screenlets.svg
/usr/share/icons/screenlets-tray.svg
/usr/share/icons/screenlets.svg
#/usr/share/applications/screenlets-manager.desktop
%changelog
* Sat Jul 2 2011 maxge73 <max73@fastwebmail.it>
- Update to 0.1.4 
* Sat Nov 13 2010 maxge73 <max73@fastwebmail.it>
- Building for opensuse 11.3 

openSUSE Build Service is sponsored by