diff --git a/fmf.spec b/fmf.spec index 76b91a69..ba9bc99c 100644 --- a/fmf.spec +++ b/fmf.spec @@ -13,7 +13,10 @@ Source: %{pypi_source fmf} BuildRequires: python3-devel BuildRequires: python3dist(docutils) BuildRequires: git-core -Requires: python3-fmf == %{version}-%{release} +Requires: git-core + +# fmf and python3-fmf packages were merged in 1.4.0 +Obsoletes: python3-fmf < 1.4.0 %description The fmf Python module and command line tool implement a flexible @@ -24,19 +27,6 @@ efficient way to organize data into well-sized text documents. This package contains the command line tool. -%package -n python3-fmf -Summary: %{summary} -Requires: git-core - -%description -n python3-fmf -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 3 module. - - %prep %autosetup -p1 -n fmf-%{version} @@ -64,18 +54,14 @@ install -pm 644 fmf.1* %{buildroot}%{_mandir}/man1 %pytest -vv -m 'not web' -%files +%files -f %{pyproject_files} %{_mandir}/man1/* %{_bindir}/%{name} %doc README.rst examples -%license LICENSE - -%files -n python3-fmf -f %{pyproject_files} # Epel9 does not tag the license file in pyproject_files as a license. Manually install it in this case %if 0%{?el9} %license LICENSE %endif -%doc README.rst %changelog