File python-xdg.spec of Package python-xdg

#
# spec file for package python-xdg (Version 0.16)
#
# Copyright (c) 2008 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         real_name pyxdg
Summary:        PyXDG is a python library to access freedesktop.org standards
Version:        0.16
Release:        2
License:        LGPL v2.1 or later
Group:          Development/Libraries/Python
Url:            http://freedesktop.org/Software/pyxdg
# http://www.freedesktop.org/~lanius/pyxdg-%{version}.tar.gz
Source:         %{real_name}-%{version}.tar.bz2
Source1:        python-xdg-rpmlintrc
Patch1:         python-xdg-indentation.patch
BuildRequires:  python-devel
%py_requires
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
python-xdg (PyXDG) is a python library to access freedesktop.org
standards.

Currently supported are: * Base Directory Specification Version 0.6

* Menu Specification Version 1.0-draft1

* Desktop Entry Specification Version 0.9.4

* Icon Theme Specification Version 0.8

* Recent File Spec 0.2

* Shared-MIME-Database Specification 0.13



Authors:
--------
    Current Maintainer:
    Heinrich Wendel <h_wendel@cojobo.net>
    Inactive:
    Sergey Kuleshov <svyatogor@gentoo.org>

%prep
%setup -q -n %{real_name}-%{version}
%patch1 -p1

%build
%{__python} setup.py build

%install
%{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_usr}"

%clean
# %{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc AUTHORS ChangeLog COPYING README TODO
%{py_sitedir}/*.egg-info
%dir %{py_sitedir}/xdg
%{py_sitedir}/xdg/*

%changelog
* Tue Dec 02 2008 riggwelter@opensuse.org
- Fix indentation problem in DesktopEntry
* Fri Oct 24 2008 lrupp@suse.de
- update to 0.16
  + IconTheme.py: Add more directories to the pixmap path
  + IniFile.py: Fix saving of relative filenames
  + IniFile.py, DesktopEntry.py: Fix __cmp__ method
  + IniFile.py, IconTheme.py: Better error handling
- avoid self-provides
- remove provides/obsoletes for non existing package
- cleanup in %%install is not necessary
* Fri Jul 25 2008 mauro@suse.de
- initial SUSE package
openSUSE Build Service is sponsored by