3 %bcond_without doc # don't build doc
4 %bcond_without tests # do not perform "make test"
7 %define egg_name repomd
8 %define pypi_name repomd
9 Summary: Library for reading dnf/yum repositories
10 Name: python3-%{pypi_name}
14 Group: Libraries/Python
15 Source0: https://files.pythonhosted.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
16 # Source0-md5: f781a03ba41afb662843aca196a221ea
17 URL: https://github.com/carlwgeorge/repomd
18 BuildRequires: python3-modules
19 BuildRequires: python3-setuptools >= 38.6.0
21 BuildRequires: python3-lxml
22 BuildRequires: python3-pytest
24 BuildRequires: rpm-pythonprov
25 BuildRequires: rpmbuild(macros) >= 1.714
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 This library provides an object-oriented interface to get information
31 out of dnf/yum repositories.
34 %setup -q -n %{pypi_name}-%{version}
37 %py3_build %{?with_tests:test}
40 rm -rf $RPM_BUILD_ROOT
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
49 %{py3_sitescriptdir}/%{pypi_name}.py
50 %{py3_sitescriptdir}/__pycache__/*
51 %{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info