diff --git a/.gitignore b/.gitignore index b894051..3cf20ad 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /distro-1.0.1.tar.gz /distro-1.0.2.tar.gz /distro-1.0.3.tar.gz +/distro-1.2.0.tar.gz diff --git a/python-distro.spec b/python-distro.spec index 1492404..83fd9e3 100644 --- a/python-distro.spec +++ b/python-distro.spec @@ -1,7 +1,4 @@ %global pypi_name distro -# compatibility for RHEL <= 6 -%{!?_licensedir:%global license %%doc} - %if 0%{?rhel} && 0%{?rhel} <= 7 %bcond_with python3 %else @@ -9,8 +6,8 @@ %endif Name: python-%{pypi_name} -Version: 1.0.3 -Release: 2%{?dist} +Version: 1.2.0 +Release: 1%{?dist} Summary: Linux Distribution - a Linux OS platform information API License: ASL 2.0 @@ -43,12 +40,13 @@ BuildRequires: python-setuptools %else BuildRequires: python2-setuptools %endif -%if 0%{?rhel} == 6 -Requires: python-argparse -%endif %if 0%{?fedora} Suggests: /usr/bin/lsb_release %endif +%if %{with python3} +#for tests +BuildRequires: python3-tox +%endif %description -n python2-%{pypi_name} %{_description} @@ -103,9 +101,15 @@ rm -rf %{pypi_name}.egg-info %{_bindir}/distro +%check +%if %{with python3} +tox +%endif + %changelog -* Thu Jul 27 2017 Fedora Release Engineering - 1.0.3-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild +* Tue Jan 02 2018 Miroslav Suchý 1.2.0-1 +- run tests +- rebase to distro 1.2.0 * Mon Mar 20 2017 Miroslav Suchý 1.0.3-1 - rebase to 1.0.3 diff --git a/sources b/sources index 556591b..5b14c1f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (distro-1.0.3.tar.gz) = 0f5e41919076e5230adc2f7941e12779ad756e6e50f6feb66221d6c11a20600cf009dffa11ee1fcd9a7fc47faff38fd8b2e75d24356ea110ace5cc07829fda94 +SHA512 (distro-1.2.0.tar.gz) = 022cbe8e1406d58ad1242ac3e5a2db38424a79eecf1b06131e7ee81d3727444413ed01b35279f7b657fadacec6717e428d1eee239d0698faa575cc38923d8a33