Package not found: openSUSE:Factory/courier-authlib

File googsystray.spec of Package googsystray

# vim: set ts=4 sw=4 et:

%{!?python_sitearch: %global python_sitearch %(%__python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}

Name:           googsystray
Version:        1.3.1
Release:        0
Summary:        System Tray Notifications for various Google Services
# http://prdownloads.sourceforge.net/googsystray/googsystray-%{version}.tar.gz
Source:         googsystray-%{version}.tar.bz2
Patch1:         googsystray-fix_desktop_files.patch
Source99:       googsystray-rpmlintrc
URL:            http://googsystray.sourceforge.net/
Group:          Development/Libraries/Python
License:        GNU General Public License version 3 or later (GPL v3 or later)
BuildRoot:      %{_tmppath}/build-%{name}-%{version}
BuildRequires:  python python-devel
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif
Requires:       python-gtk
%if 0%{?suse_version} >= 1030
BuildRequires:  fdupes
%endif
%if 0%{?suse_version} >= 1120
BuildArch:      noarch
%endif
%py_requires

%description
Googsystray is a system tray app for Google Voice, GMail, Google Calendar,
Google Reader, and Google Wave. The idea is to be able to keep track of all
that stuff without having to keep a bunch of browser tabs open, or constantly
checking them. It notifies on new messages, alerts, etc., and provides basic
services quickly (Reading or sending a new SMS message, or marking an email
read, for example.)




Authors:
--------
    Jim Duchek <jim.duchek@gmail.com>

%prep
%setup -q
%patch1

# remove shebangs
find googsystray/ -type f -name '*.py' -exec %__sed -i -e '/^#!\//, 1d' {} \;


%build
%__python ./setup.py build

%install
%__python ./setup.py install \
    --prefix="%{_prefix}" \
    --root="%{buildroot}" \
    --record-rpm=rpmfiles.lst

%__chmod 0755 "%{buildroot}%{_bindir}"/*

%__perl -ni -e 'print unless m,^%{_datadir}/locale,' rpmfiles.lst
%__perl -ni -e 'print unless m,^(%dir\s+)?%{_datadir}/(applications|icons)/?$,' rpmfiles.lst
%__perl -ni -e 'print unless m,^%{_bindir}/,' rpmfiles.lst

%__mv "%{buildroot}%{_datadir}/locale/no" "%{buildroot}%{_datadir}/locale/nb"

%find_lang googsystray

cat googsystray.lang rpmfiles.lst > files.lst

%if 0%{?suse_update_desktop_file:1}
for f in %{name} %{name}-settings %{name}-ical; do
     %__sed -ri 's|^(Categories=).+|Categories=|' "%{buildroot}%{_datadir}/applications/$f.desktop"
     %suse_update_desktop_file "$f" Network Monitor
done
%endif

%if 0%{?suse_version} >= 1030
%fdupes -s "%{buildroot}%{_datadir}/icons"
%endif

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files -f files.lst
%defattr(-,root,root)
%doc CHANGELOG CREDITS TODO
%attr(0755,root,root) %{_bindir}/googsystray

openSUSE Build Service is sponsored by