500bd22
%global sum Returns Unicode slugs
1e5b84c
500bd22
Name:           python-slugify
bc7863d
Version:        1.2.1
48e9957
Release:        3%{?dist}
500bd22
Summary:        %{sum}
1e5b84c
500bd22
License:        BSD
500bd22
URL:            https://github.com/un33k/python-slugify
bc7863d
Source0:        https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
1e5b84c
1e5b84c
BuildArch:      noarch
1e5b84c
1e5b84c
%description
500bd22
A Python slugify application that handles Unicode.
1e5b84c
500bd22
%package -n python2-slugify
d95f813
Summary:        %{sum}
500bd22
%{?python_provide:%python_provide python2-slugify}
d95f813
Requires:       python-unidecode
d95f813
bc7863d
BuildRequires:  python2-devel
bc7863d
BuildRequires:  python2-setuptools
bc7863d
500bd22
%description -n python2-slugify
500bd22
A Python slugify application that handles Unicode.
500bd22
500bd22
%package -n python3-slugify
500bd22
Summary:        %{sum}
500bd22
%{?python_provide:%python_provide python3-slugify}
500bd22
Requires:       python3-unidecode
bc7863d
500bd22
BuildRequires:  python3-devel
500bd22
BuildRequires:  python3-setuptools
500bd22
500bd22
%description -n python3-slugify
500bd22
A Python slugify application that handles Unicode.
d95f813
1e5b84c
%prep
bc7863d
%autosetup
1e5b84c
1e5b84c
%build
d95f813
%py2_build
500bd22
%py3_build
1e5b84c
1e5b84c
%install
d95f813
%py2_install
500bd22
mv %{buildroot}/%{_bindir}/slugify \
500bd22
    %{buildroot}/%{_bindir}/python2-slugify
500bd22
500bd22
%py3_install
500bd22
500bd22
# rename binaries, make compat symlinks
500bd22
pushd %{buildroot}%{_bindir}
500bd22
for i in slugify-{2,%{?python2_version}}; do
500bd22
    ln -s python2-slugify $i
500bd22
done
500bd22
500bd22
for i in slugify-{3,%{?python3_version}}; do
500bd22
    ln -s slugify $i
500bd22
done
500bd22
500bd22
%files -n python2-slugify
bc7863d
%license LICENSE
500bd22
%{_bindir}/python2-*
500bd22
%{_bindir}/slugify-2*
500bd22
%{python2_sitelib}/slugify/
500bd22
%{python2_sitelib}/python_slugify-%{version}-py?.?.egg-info
500bd22
500bd22
%files -n python3-slugify
bc7863d
%license LICENSE
1e5b84c
%{_bindir}/slugify
500bd22
%{_bindir}/slugify-3*
500bd22
%{python3_sitelib}/slugify/
500bd22
%{python3_sitelib}/python_slugify-%{version}-py?.?.egg-info
1e5b84c
1e5b84c
%changelog
48e9957
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3
48e9957
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
48e9957
1f56fe3
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
1f56fe3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
1f56fe3
bc7863d
* Fri Jan 27 2017 William Moreno <williamjmorenor@gmail.com> - 1.2.1-1
bc7863d
- Update to v1.2.1
bc7863d
- Update source url
bc7863d
e85cd59
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.2.0-4
e85cd59
- Rebuild for Python 3.6
e85cd59
cad053c
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-3
cad053c
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
cad053c
87148a6
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
87148a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
87148a6
500bd22
* Sun Jan 17 2016 Eduardo Mayorga Téllez <mayorga@fedoraproject.org> - 1.2.0
500bd22
- Update to 1.2.0 (switching to sources from new upstream)
500bd22
- Add Python 3 support
500bd22
500bd22
* Thu Sep 17 2015 William Moreno Reyes <williamjmorenor at gmail.com> - 0.0.1-7
d95f813
- Update python macros
d95f813
496ab59
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-6
496ab59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
496ab59
eea9939
* Thu Jun 11 2015 William José Moreno Reyes <williamjmorenor at gmail.com> - 0.0.1-5
eea9939
- Fix %%Requires
eea9939
1e5b84c
* Thu Dec 25 2014 William Moreno Reyes < williamjmorenor at gmail.com> - 0.0.1.4
1e5b84c
- Fix %%license macro
1e5b84c
1e5b84c
* Sun Dec 07 2014 William Moreno Reyes < williamjmorenor at gmail.com> - 0.0.1-3
1e5b84c
- Add %%license macro
1e5b84c
1e5b84c
* Mon Oct 27 2014 William José Moreno Reyes <williamjmorenor at gmail.com> - 0.0.1-2
1e5b84c
- Patching Licence
1e5b84c
1e5b84c
* Mon Oct 20 2014 William José Moreno Reyes <williamjmorenor at gmail.com> - 0.0.1-1
1e5b84c
- Initial package.