|
|
351b5f1 |
%global with_python3 1
|
|
|
75e28e7 |
%global module_name drat
|
|
|
75e28e7 |
|
|
|
75e28e7 |
Name: python-%{module_name}
|
|
|
f003ffc |
Version: 0.4.2
|
|
|
e63b29a |
Release: 8%{?dist}
|
|
|
75e28e7 |
Summary: A reading text analysis tool
|
|
|
75e28e7 |
|
|
|
f98cfcc |
License: GPLv3+
|
|
|
f98cfcc |
URL: https://github.com/riverrun/drat
|
|
|
75e28e7 |
Source0: https://pypi.python.org/packages/source/d/%{module_name}/%{module_name}-%{version}.tar.gz
|
|
|
75e28e7 |
|
|
|
75e28e7 |
BuildArch: noarch
|
|
|
75e28e7 |
BuildRequires: python2-devel
|
|
|
75e28e7 |
BuildRequires: python-requests
|
|
|
75e28e7 |
BuildRequires: python-click
|
|
|
75e28e7 |
BuildRequires: python-setuptools
|
|
|
351b5f1 |
|
|
|
351b5f1 |
%description
|
|
|
351b5f1 |
Drat is a tool that analyzes reading texts and produces a brief report which
|
|
|
351b5f1 |
gives a readability score (according to the Dale-Chall readability formula)
|
|
|
351b5f1 |
and the number of uncommon words (based on the General Service List) in the
|
|
|
351b5f1 |
text. It also lists all of these uncommon words (if you choose the verbose
|
|
|
351b5f1 |
option).
|
|
|
75e28e7 |
|
|
|
75e28e7 |
%if 0%{with_python3}
|
|
|
75e28e7 |
%package -n python3-%{module_name}
|
|
|
75e28e7 |
Summary: A reading text analysis tool
|
|
|
75e28e7 |
License: GPLv3+
|
|
|
75e28e7 |
BuildRequires: python3-devel
|
|
|
75e28e7 |
BuildRequires: python3-requests
|
|
|
75e28e7 |
BuildRequires: python3-click
|
|
|
75e28e7 |
BuildRequires: python3-setuptools
|
|
|
75e28e7 |
%endif
|
|
|
75e28e7 |
|
|
|
75e28e7 |
%package -n %{module_name}-tools
|
|
|
75e28e7 |
Summary: A reading text analysis tool
|
|
|
75e28e7 |
License: GPLv3+
|
|
|
75e28e7 |
|
|
|
351b5f1 |
%if 0%{with_python3}
|
|
|
351b5f1 |
Requires: python3-drat
|
|
|
351b5f1 |
%else
|
|
|
351b5f1 |
Requires: python-drat
|
|
|
351b5f1 |
%endif
|
|
|
75e28e7 |
|
|
|
75e28e7 |
%if 0%{with_python3}
|
|
|
75e28e7 |
%description -n python3-%{module_name}
|
|
|
75e28e7 |
Drat is a tool that analyzes reading texts and produces a brief report which
|
|
|
75e28e7 |
gives a readability score (according to the Dale-Chall readability formula)
|
|
|
75e28e7 |
and the number of uncommon words (based on the General Service List) in the
|
|
|
75e28e7 |
text. It also lists all of these uncommon words (if you choose the verbose
|
|
|
75e28e7 |
option).
|
|
|
75e28e7 |
%endif
|
|
|
75e28e7 |
|
|
|
75e28e7 |
%description -n %{module_name}-tools
|
|
|
75e28e7 |
drat tool.
|
|
|
75e28e7 |
|
|
|
75e28e7 |
%prep
|
|
|
75e28e7 |
%setup -q -n %{module_name}-%{version}
|
|
|
75e28e7 |
rm -rf *.egg-info
|
|
|
75e28e7 |
|
|
|
351b5f1 |
%if 0%{?with_python3}
|
|
|
351b5f1 |
rm -rf %{py3dir}
|
|
|
351b5f1 |
cp -a . %{py3dir}
|
|
|
351b5f1 |
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
|
|
351b5f1 |
%endif # with_python3
|
|
|
351b5f1 |
|
|
|
351b5f1 |
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|'
|
|
|
75e28e7 |
|
|
|
75e28e7 |
%build
|
|
|
75e28e7 |
%{__python2} setup.py build
|
|
|
75e28e7 |
|
|
|
75e28e7 |
%if 0%{with_python3}
|
|
|
75e28e7 |
echo ${_python3}
|
|
|
75e28e7 |
%{__python3} setup.py build
|
|
|
75e28e7 |
%endif
|
|
|
75e28e7 |
|
|
|
75e28e7 |
%install
|
|
|
75e28e7 |
%{__python2} setup.py install --skip-build --root=%{buildroot}
|
|
|
75e28e7 |
|
|
|
75e28e7 |
%if 0%{with_python3}
|
|
|
75e28e7 |
%{__python3} setup.py install --skip-build --root=%{buildroot}
|
|
|
75e28e7 |
%endif
|
|
|
75e28e7 |
|
|
|
75e28e7 |
%check
|
|
|
75e28e7 |
%{__python2} setup.py test
|
|
|
75e28e7 |
|
|
|
75e28e7 |
%if 0%{with_python3}
|
|
|
75e28e7 |
%{__python3} setup.py test
|
|
|
75e28e7 |
%endif
|
|
|
75e28e7 |
|
|
|
75e28e7 |
%files -n %{module_name}-tools
|
|
|
75e28e7 |
%doc README.rst
|
|
|
75e28e7 |
%{_bindir}/*
|
|
|
75e28e7 |
|
|
|
75e28e7 |
%files -n python-%{module_name}
|
|
|
75e28e7 |
%doc README.rst
|
|
|
75e28e7 |
%{python2_sitelib}/%{module_name}/
|
|
|
75e28e7 |
%{python2_sitelib}/%{module_name}-%{version}-py2.7.egg-info
|
|
|
75e28e7 |
|
|
|
75e28e7 |
%if 0%{?with_python3}
|
|
|
75e28e7 |
%files -n python3-%{module_name}
|
|
|
75e28e7 |
%doc README.rst
|
|
|
75e28e7 |
%{python3_sitelib}/%{module_name}/
|
|
|
75e28e7 |
%{python3_sitelib}/%{module_name}-%{version}-py3.*.egg-info
|
|
|
75e28e7 |
%endif
|
|
|
75e28e7 |
|
|
|
75e28e7 |
|
|
|
75e28e7 |
%changelog
|
|
|
e63b29a |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-8
|
|
|
e63b29a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
e63b29a |
|
|
|
128f395 |
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.4.2-7
|
|
|
128f395 |
- Rebuild for Python 3.6
|
|
|
128f395 |
|
|
|
7497b40 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-6
|
|
|
7497b40 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
7497b40 |
|
|
|
d719f89 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.2-5
|
|
|
d719f89 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
d719f89 |
|
|
|
149b43f |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-4
|
|
|
149b43f |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
149b43f |
|
|
|
7104842 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-3
|
|
|
7104842 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
7104842 |
|
|
|
351b5f1 |
* Fri Jan 09 2015 Parag Nemade <pnemade AT redhat DOT com> - 0.4.2-2
|
|
|
351b5f1 |
- Fix drat execution
|
|
|
351b5f1 |
- require python3-drat
|
|
|
351b5f1 |
|
|
|
f003ffc |
* Sun Oct 19 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.4.2-1
|
|
|
f003ffc |
- Update to 0.4.2 release
|
|
|
f003ffc |
|
|
|
75e28e7 |
* Sun Sep 28 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.4.1-1
|
|
|
75e28e7 |
- Update to 0.4.1 release
|
|
|
75e28e7 |
|
|
|
75e28e7 |
* Mon Sep 22 2014 Parag Nemade <pnemade AT redhat DOT com> - 0.4.0-1
|
|
|
75e28e7 |
- Initial packaging
|
|
|
75e28e7 |
|