File python-xdg.spec of Package python-xdg

# spec file for package python-xdg (Version 0.19)
# Copyright (c) 2010 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

Name:           python-xdg
%define         _name pyxdg
Summary:        Python library to use specifications
Version:        0.19
Release:        1
License:        LGPLv2.1+
Group:          Development/Libraries/Python
Source:         %{_name}-%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  python-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

python-xdg (PyXDG) is a python library to use

%setup -q -n %{_name}-%{version}

%{__python} build

%{__python} install -O1 --skip-build --root="%{buildroot}" --prefix="%{_usr}"
%fdupes %{buildroot}/%{python_sitelib}

%{__rm} -rf %{buildroot}

%defattr(-, root, root, 0755)