-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpython-koji-fedoramessaging-messages.spec.in
51 lines (38 loc) · 1.27 KB
/
python-koji-fedoramessaging-messages.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
%global rpm_name koji-fedoramessaging-messages
%global pypi_name koji_fedoramessaging_messages
%global pypi_version @@VERSION@@
Name: python-%{rpm_name}
Version: %{pypi_version}
Release: 1%{?dist}
Summary: A schema package for messages sent by the koji-fedoramessaging plugin
License: GPL-3.0-or-later
URL: https://github.com/fedora-infra/koji-fedoramessaging-messages
Source0: %{pypi_source}
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3dist(fedora-messaging) >= 3.0.1
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(pytest)
%description
Schema package for koji-fedoramessaging.
%package -n python3-%{rpm_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{rpm_name}}
Requires: python3dist(fedora-messaging) >= 3.0.1
Requires: python3dist(setuptools)
%description -n python3-%{rpm_name}
Schema package for koji-fedoramessaging.
%prep
%autosetup -n %{pypi_name}-%{pypi_version}
%build
%py3_build
%install
%py3_install
%check
%{__python3} -m pytest -v tests/
%files -n python3-%{rpm_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info
%changelog