8 Commits
3 changed files with 54 additions and 2 deletions
+1
View File
@@ -5,3 +5,4 @@
/fmf-0.8.tar.gz
/fmf-0.10.tar.gz
/fmf-0.11.tar.gz
/fmf-0.12.tar.gz
+52 -1
View File
@@ -1,5 +1,5 @@
Name: fmf
Version: 0.11
Version: 0.12
Release: 1%{?dist}
Summary: Flexible Metadata Format
@@ -15,9 +15,12 @@ Source0: https://github.com/psss/fmf/releases/download/%{version}/fmf-%{version}
# Fedora or RHEL 8+
%if 0%{?fedora} || 0%{?rhel} > 7
%bcond_with python2
%bcond_with oldreqs
%bcond_with englocale
# RHEL 7
%else
%bcond_without python2
# The automatic runtime dependency generator doesn't exist yet
%bcond_without oldreqs
# The C.UTF-8 locale doesn't exist, Python defaults to C (ASCII)
@@ -38,6 +41,28 @@ This package contains the command line tool.
%?python_enable_dependency_generator
# Python 2
%if %{with python2}
%package -n python2-%{name}
Summary: %{summary}
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: pytest
BuildRequires: PyYAML
%{?python_provide:%python_provide python2-%{name}}
Requires: PyYAML
%description -n python2-%{name}
The fmf Python module and command line tool implement a flexible
format for defining metadata in plain text files which can be
stored close to the source code. Thanks to hierarchical structure
with support for inheritance and elasticity it provides an
efficient way to organize data into well-sized text documents.
This package contains the Python 2 module.
%endif
# Python 3
%package -n python%{python3_pkgversion}-%{name}
Summary: %{summary}
BuildRequires: python%{python3_pkgversion}-devel
@@ -68,6 +93,10 @@ This package contains the Python 3 module.
export LANG=en_US.utf-8
%endif
%if %{with python2}
%py2_build
%endif
%py3_build
@@ -76,6 +105,10 @@ export LANG=en_US.utf-8
export LANG=en_US.utf-8
%endif
%if %{with python2}
%py2_install
%endif
%py3_install
mkdir -p %{buildroot}%{_mandir}/man1
@@ -87,6 +120,10 @@ install -pm 644 fmf.1* %{buildroot}%{_mandir}/man1
export LANG=en_US.utf-8
%endif
%if %{with python2}
%{__python2} -m pytest -vv -m 'not web'
%endif
%{__python3} -m pytest -vv -m 'not web'
@@ -98,6 +135,13 @@ export LANG=en_US.utf-8
%doc README.rst examples
%license LICENSE
%if %{with python2}
%files -n python2-%{name}
%{python2_sitelib}/%{name}/
%{python2_sitelib}/%{name}-*.egg-info
%license LICENSE
%endif
%files -n python%{python3_pkgversion}-%{name}
%{python3_sitelib}/%{name}/
%{python3_sitelib}/%{name}-*.egg-info
@@ -105,6 +149,13 @@ export LANG=en_US.utf-8
%changelog
* Thu Jun 04 2020 Petr Šplíchal <psplicha@redhat.com> - 0.12-1
- Do git pull in utils.fetch
- Make fetch._run official as utils.run
* Tue Mar 17 2020 Petr Šplíchal <psplicha@redhat.com> - 0.11-2
- Enable back python2-fmf subpackage for RHEL7
* Fri Feb 14 2020 Petr Šplíchal <psplicha@redhat.com> - 0.11-1
- Add git to BuildRequires (now required by tests)
- Use coveralls to report coverage results
+1 -1
View File
@@ -1 +1 @@
SHA512 (fmf-0.11.tar.gz) = b18c9e1332bdd995abd9a641cb21ae6ba6856bfec52fae8dc69a76b278aab92726719f886af396450f9beaf5542341ce5f96639ef4b82eb164f08a99cf2a5edd
SHA512 (fmf-0.12.tar.gz) = adacfaac4a2bfad316d7f231f66935fc9dc9b1ac52b685cec35e082d81cb5d5cf5c02a644e29215f7a35b98b6a14f17d0f830fd3c234f8665592babb6578efbb