File python-awesome-slugify.spec of Package python-awesome-slugify
#
# spec file for package python-awesome-slugify
#
# Copyright (c) 2015 Angelos Tzotsos <tzotsos@opensuse.org>
#
# 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/
%define pyname awesome-slugify
Name: python-%{pyname}
Version: 1.6.2
Release: 1
License: GPLv3
Summary: Python flexible slugify function
Url: https://github.com/dimka665/awesome-slugify
Group: Productivity/Scientific/Other
Source0: %{pyname}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-devel
BuildRequires: python-distribute
BuildArchitectures: noarch
Provides: %{pyname} = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 1310
%{py_requires}
%else
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
%description
Python flexible slugify function
%prep
%setup -q -n %{pyname}-%{version}
%build
%install
rm -rf %{buildroot}
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%fdupes -s %{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
#%{python_sitearch}/*
/usr/lib/*
%changelog