File python-xdg.spec of Package python-xdg
#
# spec file for package python-xdg
#
# Copyright (c) 2011 SUSE LINUX Products 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: python-xdg
%define _name pyxdg
Summary: Python library to use freedesktop.org specifications
Version: 0.19
Release: 1
# FIXME: on new upstream version (> 0.19), change <= in Obsoletes to <
License: LGPLv2.1+
Group: Development/Libraries/Python
Url: http://freedesktop.org/Software/pyxdg
Source: %{_name}-%{version}.tar.bz2
BuildRequires: fdupes
BuildRequires: python-devel
Provides: python-pyxdg = %{version}
# <= for now, as the packman package named python-pyxdg is for 0.19 too
Obsoletes: python-pyxdg <= %{version}
%py_requires
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
python-xdg (PyXDG) is a python library to use freedesktop.org
specifications.
%prep
%setup -q -n %{_name}-%{version}
%build
%{__python} setup.py build
%install
%{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_usr}"
%fdupes %{buildroot}/%{python_sitelib}
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, 0755)
%doc AUTHORS ChangeLog COPYING README TODO
%{python_sitelib}/*.egg-info
%{python_sitelib}/xdg
%changelog