3 %bcond_without tests # unit tests
6 %define egg_name repomd
7 %define pypi_name repomd
8 Summary: Library for reading dnf/yum repositories
9 Summary(pl.UTF-8): Biblioteka do odczytu repozytoriów dnf/yum
10 Name: python3-%{pypi_name}
14 Group: Libraries/Python
15 Source0: https://files.pythonhosted.org/packages/source/r/repomd/%{pypi_name}-%{version}.tar.gz
16 # Source0-md5: 3979bcf59644ead9fb3324fe36d183ed
17 URL: https://github.com/carlwgeorge/repomd
18 BuildRequires: python3-modules
19 BuildRequires: python3-setuptools >= 1: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.
33 %description -l pl.UTF-8
34 Ta biblioteka udostępnia obiektowo zorientowany interfejs do
35 pobierania informacji z repozytoriów dnf/yum.
38 %setup -q -n %{pypi_name}-%{version}
41 %py3_build %{?with_tests:test}
44 rm -rf $RPM_BUILD_ROOT
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
54 %{py3_sitescriptdir}/%{module}.py
55 %{py3_sitescriptdir}/__pycache__/%{module}.cpython-*.py[co]
56 %{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info