84b43fd
%global pypi_name django-robots
Matthias Runge 6e7110d
%global obs_ver 0.8.0-3
84b43fd
84b43fd
Name:           python-%{pypi_name}
67bc45b
Version:        3.1.0
cbd808f
Release:        8%{?dist}
Matthias Runge 6e7110d
Summary:        Robots exclusion application for Django, complementing Sitemaps
Matthias Runge 6e7110d
Matthias Runge 6e7110d
License:        BSD
67bc45b
URL:            https://github.com/jazzband/django-robots
67bc45b
Source0:        https://github.com/jazzband/%{pypi_name}/archive/%{version}.tar.gz#/%{pypi_name}-%{version}.tar.gz
Matthias Runge 6e7110d
Matthias Runge 6e7110d
BuildArch:      noarch
Matthias Runge 6e7110d
84b43fd
BuildRequires:  gettext
Matthias Runge 6e7110d
Matthias Runge 6e7110d
%description
Matthias Runge 6e7110d
Django application to manage robots.txt files following the robots exclusion 
Matthias Runge 6e7110d
protocol, complementing the Django Sitemap contrib app.
Matthias Runge 6e7110d
84b43fd
%package -n python3-%{pypi_name}
84b43fd
Summary:        Robots exclusion application for Django - Python 3 version
84b43fd
84b43fd
BuildRequires:  python3-devel
84b43fd
BuildRequires:  python3-setuptools
84b43fd
Requires:       python3-django
84b43fd
84b43fd
%{?python_provide:%python_provide python3-%{pypi_name}}
67bc45b
Obsoletes:      python-%{pypi_name} < 2.0-5
67bc45b
Obsoletes:      python2-%{pypi_name} < 2.0-5
84b43fd
84b43fd
%description -n python3-%{pypi_name}
84b43fd
Django application to manage robots.txt files following the robots exclusion
84b43fd
protocol, complementing the Django Sitemap contrib app.
84b43fd
This package provides Python 3 build of %{pypi_name}.
84b43fd
Matthias Runge 6e7110d
%prep
84b43fd
%autosetup -n %{pypi_name}-%{version}
84b43fd
Matthias Runge 6e7110d
Matthias Runge 6e7110d
%build
84b43fd
%py3_build
Matthias Runge 6e7110d
Matthias Runge 6e7110d
%install
84b43fd
%py3_install
84b43fd
rm -rf %{buildroot}%{python3_sitelib}/tests
84b43fd
Matthias Runge 6e7110d
Matthias Runge 6e7110d
# Language files; not under /usr/share, need to be handled manually
84b43fd
(cd %{buildroot} && find .%{python3_sitelib} -name 'django.?o') | sed -e 's|^.||' | sed -e \
Matthias Runge 6e7110d
  's:\(.*/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:' \
84b43fd
  >> python3-%{pypi_name}.lang
84b43fd
84b43fd
%files -f python3-%{pypi_name}.lang -n python3-%{pypi_name}
84b43fd
%doc README.rst docs/
84b43fd
%license LICENSE.txt
Matthias Runge 6e7110d
# list some files explicitly to avoid listing locale files twice
84b43fd
%dir %{python3_sitelib}/robots
84b43fd
%{python3_sitelib}/robots/*.py
84b43fd
%{python3_sitelib}/robots/__pycache__
84b43fd
%{python3_sitelib}/robots/migrations
84b43fd
%{python3_sitelib}/robots/south_migrations
84b43fd
%dir %{python3_sitelib}/robots/templates/
84b43fd
%dir %{python3_sitelib}/robots/templates/robots
84b43fd
%{python3_sitelib}/robots/templates/robots/rule_list.html
84b43fd
%{python3_sitelib}/django_robots*.egg-info
Matthias Runge 6e7110d
Matthias Runge 6e7110d
%changelog
cbd808f
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-8
cbd808f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
cbd808f
fee7e29
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-7
fee7e29
- Rebuilt for Python 3.8.0rc1 (#1748018)
fee7e29
a253336
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-6
a253336
- Rebuilt for Python 3.8
a253336
2466d9a
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-5
2466d9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2466d9a
8fa7383
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-4
8fa7383
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
8fa7383
9c362e1
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-3
9c362e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9c362e1
4e569a8
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-2
4e569a8
- Rebuilt for Python 3.7
4e569a8
67bc45b
* Thu Feb 15 2018 Matthias Runge <mrunge@redhat.com> - 3.1.0-1
67bc45b
- rebase to 3.1.0
67bc45b
- drop python2 subpackage for https://fedoraproject.org/wiki/Changes/Django20
d3923e6
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-5
d3923e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d3923e6
8cc5161
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-4
8cc5161
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8cc5161
92321e7
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-3
92321e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
92321e7
ddf2373
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0-2
ddf2373
- Rebuild for Python 3.6
ddf2373
84b43fd
* Thu Jul 21 2016 Matthias Runge <mrunge@redhat.com> - 2.0-1
84b43fd
- porting the specfile to Python 3, thanks to Jan Beran <jberan@redhat.com>
84b43fd
- major spec file cleanup
84b43fd
213619c
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-9
213619c
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
213619c
275d03a
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-8
275d03a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
275d03a
e46496e
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-7
e46496e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e46496e
14acf2e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-6
14acf2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
14acf2e
2e278f0
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-5
2e278f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2e278f0
509be44
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-4
509be44
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
509be44
4ffc8c8
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-3
4ffc8c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4ffc8c8
Matthias Runge 6e7110d
* Fri Mar 23 2012 Matthias Runge <mrunge@matthias-runge.de> - 0.8.1-2
Matthias Runge 6e7110d
- renamed to python-django-robots
Matthias Runge 6e7110d
- SPEC cleanup
Matthias Runge 6e7110d
Matthias Runge 6e7110d
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-2
Matthias Runge 6e7110d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
Matthias Runge 6e7110d
Matthias Runge 6e7110d
* Thu Apr 14 2011 Rahul Sundaram <sundaram@fedoraproject.org> - 0.8.0-1
Matthias Runge 6e7110d
- initial spec