File turpial.spec of Package turpial

#
# spec file for package turpial
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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:           turpial
Version:        3.0
Release:        0
Summary:        Lightweight, functional and integrated Twitter client
License:        GPL-3.0+
Group:          Productivity/Networking/Instant Messenger
Url:            http://turpial.org.ve/
Source:         http://files.turpial.org.ve/sources/stable/%{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  python-babel
BuildRequires:  python-imaging
BuildRequires:  python-setuptools
BuildRequires:  update-desktop-files
Requires:       libturpial
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Turpial is a microblogging client with support for multiple interfaces.
It's developed using Python and its goal is to be native, light and
integrated with desktop environment, but without loosing any
functionality.

%prep
%setup -q -n %{name}-%{version}

%build
chmod 644 AUTHORS ChangeLog COPYING README.rst
python setup.py build

%install
python setup.py install --skip-build --root %{buildroot} --prefix %{_prefix}
rm %{buildroot}%{_datadir}/doc/turpial/*
%if 0%{?fedora_version}
desktop-file-install --add-category=InstantMessaging %{buildroot}%{_datadir}/applications/%{name}.desktop
%endif
%if 0%{?suse_version}
%suse_update_desktop_file %{name} InstantMessaging
%fdupes %{buildroot}%{python_sitelib}
%endif

%if 0%{?suse_version} > 1130

%post
%desktop_database_post

%postun
%desktop_database_postun
%endif

%if !(0%{?suse_version})

%defattr(-,root,root,-)
%else

%files
%defattr(-,root,root,-)
%endif
%doc AUTHORS ChangeLog COPYING README.rst
%{python_sitelib}/%{name}/
%{python_sitelib}/%{name}-*-py%{py_ver}.egg-info
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%dir %{_datadir}/icons/scalable
%dir %{_datadir}/icons/scalable/apps
%{_datadir}/icons/scalable/apps/turpial.svg

%changelog
openSUSE Build Service is sponsored by