From 26aa368e7ef920003dbbc475b9c9e33d9fdbd137 Mon Sep 17 00:00:00 2001 From: William Moreno Date: Dec 25 2014 20:29:42 +0000 Subject: update --- diff --git a/python-slugify.spec b/python-slugify.spec deleted file mode 100644 index 88b949c..0000000 --- a/python-slugify.spec +++ /dev/null @@ -1,96 +0,0 @@ -%if 0%{?fedora} > 12 -%global with_python3 1 -%else -%{!?__python2: %global __python2 /usr/bin/python2} -%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")} -%endif - -%global pypi_name slugify - -Name: python-%{pypi_name} -Version: 0.0.1 -Release: 4%{?dist} -Summary: A generic slugifier - -License: Unlicense -URL: http://github.com/zacharyvoase/slugify -Source0: https://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz -#Add License file to package -Patch1: slugify-0.0.1-LICENSE.patch - -BuildArch: noarch -BuildRequires: python2-devel -BuildRequires: python-setuptools - -%if 0%{?with_python3} -BuildRequires: python3-setuptools -BuildRequires: python3-devel -BuildRequires: python3 -Requires: python3 -%endif # if with_python3 - -%description -A generic slugifier. - -%if 0%{?with_python3} -%package -n python3-%{pypi_name} -Summary: A generic slugifier - -%description -n python3-%{pypi_name} -A Python3 generic slugifier -%endif # if with_python3 - -%prep -%setup -q -n %{pypi_name}-%{version} - -%patch1 -p1 - -%if 0%{?with_python3} -rm -rf %{py3dir} -cp -a . %{py3dir} -%endif # with_python3 - -%build -%{__python2} setup.py build - -%if 0%{?with_python3} -pushd %{py3dir} -%{__python3} setup.py build -popd -%endif # with_python3 - -%install -%{__python2} setup.py install --skip-build --root %{buildroot} - -%if 0%{?with_python3} -pushd %{py3dir} -%{__python3} setup.py install --skip-build --root=%{buildroot} -popd -%endif # with_python3 - -%files -%license LICENSE -%{_bindir}/slugify -%{python2_sitelib}/%{pypi_name}.py* -%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info - -%if 0%{?with_python3} -%files -n python3-%{pypi_name} -%license LICENSE -%{_bindir}/slugify -%{python3_sitelib}/%{pypi_name}.py* -%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info -%endif # with_python3 - -%changelog -* Mon Dec 08 2014 William Moreno Reyes < williamjmorenor@gmail.com> - 0.0.1-4 -- Add Python3 support - -* Sun Dec 07 2014 William Moreno Reyes < williamjmorenor@gmail.com> - 0.0.1-3 -- Add %%license macro - -* Mon Oct 27 2014 William José Moreno Reyes - 0.0.1-2 -- Patching Licence - -* Mon Oct 20 2014 William José Moreno Reyes - 0.0.1-1 -- Initial package.