From 4e066394c8c463842c876117d53ccab8b1029b12 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Oct 10 2020 08:01:52 +0000 Subject: * Sat Oct 10 2020 Fabian Affolter - 1.14.0-1 - Remove Python 2 subpackage - Update to latest upstrema release 1.14.0 --- diff --git a/.gitignore b/.gitignore index 07f2d80..2f96bb4 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /yattag-1.9.0.tar.gz /yattag-1.9.2.tar.gz /yattag-1.10.0.tar.gz +/yattag-1.14.0.tar.gz diff --git a/python-yattag.spec b/python-yattag.spec index 536291a..1111b8e 100644 --- a/python-yattag.spec +++ b/python-yattag.spec @@ -1,81 +1,53 @@ -%global pkgname yattag -%global desc Generate HTML or XML in a pythonic way +%global pypi_name yattag -# Settings for Fedora > 29 and EL > 7 -%if 0%{?fedora} > 29 || 0%{?rhel} > 7 -%bcond_with python2 -%else -%bcond_without python2 -%endif - -Name: python-%{pkgname} -Version: 1.10.0 -Release: 11%{?dist} -Summary: Pure python alternative to web template engines +Name: python-%{pypi_name} +Version: 1.14.0 +Release: 1%{?dist} +Summary: Generate HTML or XML in a pythonic way License: LGPLv2 -URL: https://pypi.python.org/pypi/yattag -Source0: https://files.pythonhosted.org/packages/source/y/%{pkgname}/%{pkgname}-%{version}.tar.gz - +URL: https://www.yattag.org/ +Source0: https://github.com/leforestier/yattag/archive/v%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %description -%{desc} +Generate HTML or XML in a pythonic way. -%if %{with python2} -%package -n python2-%{pkgname} -BuildRequires: python2-devel -BuildRequires: python2-nose +%package -n python3-%{pypi_name} Summary: %{summary} -%{?python_provide:%python_provide python2-%{pkgname}} - -%description -n python2-%{pkgname} -%{desc} -%endif -%package -n python3-%{pkgname} BuildRequires: python3-devel -BuildRequires: python3-nose -Summary: %{summary} -%{?python_provide:%python_provide python3-%{pkgname}} +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(pytest) +%{?python_provide:%python_provide python3-%{pypi_name}} -%description -n python3-%{pkgname} -%{desc} +%description -n python3-%{pypi_name} +Generate HTML or XML in a pythonic way. %prep -%autosetup -n %{pkgname}-%{version} - -# Remove upstream egg-info -rm -rf %{pkgname}.egg-info +%autosetup -n %{pypi_name}-%{version} +rm -rf %{pypi_name}.egg-info %build -%{?with_python2: %py2_build} %py3_build %install -%{?with_python2: %py2_install} %py3_install %check -%{?with_python2: %{__python2} -m nose -v} -%{__python3} -m nose -v +%pytest -v test/*.py -%if %{with python2} -%files -n python2-%{pkgname} +%files -n python3-%{pypi_name} %doc README.rst %license license/COPYING -%{python2_sitelib}/%{pkgname}-%{version}-py%{python2_version}.egg-info -%{python2_sitelib}/yattag -%endif - - -%files -n python3-%{pkgname} -%doc README.rst -%license license/COPYING -%{python3_sitelib}/%{pkgname}-%{version}-py%{python3_version}.egg-info -%{python3_sitelib}/yattag +%{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog +* Sat Oct 10 2020 Fabian Affolter - 1.14.0-1 +- Remove Python 2 subpackage +- Update to latest upstrema release 1.14.0 + * Wed Jul 29 2020 Fedora Release Engineering - 1.10.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild @@ -122,5 +94,4 @@ rm -rf %{pkgname}.egg-info - New upstream release 1.9.0 * Wed Jul 26 2017 Sebastian Kisela - 1.8.0-1 -- Initial 1.8.0 package version. - +- Initial 1.8.0 package version \ No newline at end of file diff --git a/sources b/sources index 4c5afe2..395f22e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (yattag-1.10.0.tar.gz) = e849f4561be251b0440dc8ca8abc4e2ec1a03ddeb71a8f50caacfc822675b5faee0a794d32bae3cdd02909fc2c9780b213436f8c172cf0be7d59aacea4320489 +SHA512 (yattag-1.14.0.tar.gz) = 8f09921a02b9961dd8d952bd83f7fee716c3334b662c938e91799af4ae0b5e1ad5f499bf8970500167b66e336711dc315c165760877f74901f12648528c4e9aa