]> git.pld-linux.org Git - packages/python3-repomd.git/blame - python3-repomd.spec
rebuild with tests and docs
[packages/python3-repomd.git] / python3-repomd.spec
CommitLineData
c117e022
ER
1#
2# Conditional build:
32a53ca1 3%bcond_without tests # unit tests
c117e022
ER
4
5%define module repomd
6%define egg_name repomd
7%define pypi_name repomd
8Summary: Library for reading dnf/yum repositories
32a53ca1 9Summary(pl.UTF-8): Biblioteka do odczytu repozytoriów dnf/yum
c117e022 10Name: python3-%{pypi_name}
280d5811 11Version: 0.2.1
d75c827c 12Release: 5
c117e022
ER
13License: MIT
14Group: Libraries/Python
32a53ca1 15Source0: https://files.pythonhosted.org/packages/source/r/repomd/%{pypi_name}-%{version}.tar.gz
280d5811 16# Source0-md5: 3979bcf59644ead9fb3324fe36d183ed
c117e022
ER
17URL: https://github.com/carlwgeorge/repomd
18BuildRequires: python3-modules
ad23eeed 19BuildRequires: python3-setuptools >= 1:38.6.0
c117e022
ER
20%if %{with tests}
21BuildRequires: python3-lxml
22BuildRequires: python3-pytest
23%endif
24BuildRequires: rpm-pythonprov
25BuildRequires: rpmbuild(macros) >= 1.714
26BuildArch: noarch
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30This library provides an object-oriented interface to get information
31out of dnf/yum repositories.
32
32a53ca1
JB
33%description -l pl.UTF-8
34Ta biblioteka udostępnia obiektowo zorientowany interfejs do
35pobierania informacji z repozytoriów dnf/yum.
36
c117e022
ER
37%prep
38%setup -q -n %{pypi_name}-%{version}
39
40%build
41%py3_build %{?with_tests:test}
42
43%install
44rm -rf $RPM_BUILD_ROOT
32a53ca1 45
c117e022
ER
46%py3_install
47
48%clean
49rm -rf $RPM_BUILD_ROOT
50
51%files
52%defattr(644,root,root,755)
53%doc README.md
32a53ca1
JB
54%{py3_sitescriptdir}/%{module}.py
55%{py3_sitescriptdir}/__pycache__/%{module}.cpython-*.py[co]
c117e022 56%{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
This page took 0.089923 seconds and 4 git commands to generate.