%global pypi_name dateparser Name: python-%{pypi_name} Version: 0.7.2 Release: 4%{?dist} Summary: A Python parser for human readable dates License: BSD URL: https://github.com/scrapinghub/dateparser Source0: https://github.com/scrapinghub/dateparser/archive/v%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %description dateparser provides modules to easily parse localized dates in almost any string formats commonly found on web pages. %package -n python3-%{pypi_name} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-convertdate BuildRequires: python3-dateutil BuildRequires: python3-nose BuildRequires: python3-parameterized BuildRequires: python3-pytest BuildRequires: python3-regex BuildRequires: python3-tzlocal BuildRequires: python3-mock %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} dateparser provides modules to easily parse localized dates in almost any string formats commonly found on web pages. %package doc Summary: Documentation for python3-%{pypi_name} BuildRequires: python3-sphinx %description doc This documentation for python3-%{pypi_name}. %prep %autosetup -n %{pypi_name}-%{version} %build %py3_build %install %py3_install pushd docs PYTHONPATH=%{buildroot}/%{python3_sitelib} make html rm _build/html/.buildinfo popd # https://github.com/scrapinghub/dateparser/pull/591 #%check #PYTHONPATH=%{buildroot}/%{python3_sitelib} pytest-%{python3_version} tests %files -n python3-%{pypi_name} %doc AUTHORS.rst CONTRIBUTING.rst HISTORY.rst README.rst %license LICENSE %{python3_sitelib}/*.egg-info %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/dateparser_data/ %files doc %doc docs/_build/html/ %changelog * Thu Nov 19 2019 Fabian Affolter - 0.7.2-4 - Fix license tag (rhbz#1748956) * Mon Nov 18 2019 Fabian Affolter - 0.7.2-3 - Disable tests * Mon Nov 18 2019 Fabian Affolter - 0.7.2-2 - Fix BRs * Thu Oct 17 2019 Fabian Affolter - 0.7.2-1 - Update to latest upstream release 0.7.2 * Tue Sep 03 2019 Fabian Affolter - 0.7.1-1 - Initial package for Fedora