-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtplib.spec
79 lines (58 loc) · 1.42 KB
/
tplib.spec
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
Name: python-tplib
Version: 1.0.0
Release: 2%{?dist}
Summary: Library for test cases, test plans
License: BSD
Source0: %\{name}-%\{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-sphinx
BuildRequires: python3-tox
BuildRequires: python3-wheel
Obsoletes: python-tclib
%global _description %{expand:
A python library for test cases, test plans, and requirements stored
in yaml files.}
%description %_description
%package -n python3-tplib
Summary: %{summary}
%if 0%{?rhel} < 9
Requires: python3-jinja2
Requires: python3-pyyaml
%endif
%description -n python3-tplib %_description
%prep
%autosetup -p1 -n tplib-%{version}
%if 0%{?fedora} > 30 || 0%{?rhel} > 8
# for fedora and potentially epel9
%generate_buildrequires
%pyproject_buildrequires -t
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files tplib
%check
%tox
%pyproject_check_import tplib
%files -n python3-tplib -f %{pyproject_files}
/usr/bin/*
%doc README.*
%else
# for epel8
%build
%py3_build
%install
%py3_install
%check
%files -n python3-tplib
/usr/bin/*
%{python3_sitelib}/tplib/
%{python3_sitelib}/tplib-*.egg-info/
%doc README.*
%endif
%changelog
* Tue May 24 2022 Jiri Kortus <jikortus@redhat.com> 1.0.0-2
- rename the library and package to tplib
* Fri Apr 29 2022 Marta Lewandowska <mlewando@redhat.com> 1.0.0-1
- new package built with tito