-
Notifications
You must be signed in to change notification settings - Fork 35
/
python-pytest-dependency.spec
60 lines (45 loc) · 1.12 KB
/
python-pytest-dependency.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
%bcond_without tests
%global distname pytest-dependency
%if 0%{?sle_version} >= 150500
%global pythons python3 python311
%else
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
%endif
Name: python-%{distname}
Version: $version
Release: 0
Summary: $description
License: Apache-2.0
URL: $url
Group: Development/Languages/Python
Source: https://github.com/RKrahl/pytest-dependency/releases/download/%{version}/%{distname}-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.4}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with tests}
BuildRequires: %{python_module distutils-pytest}
BuildRequires: %{python_module pytest >= 3.7}
%endif
Requires: python-pytest >= 3.7
BuildArch: noarch
%python_subpackages
%description
$long_description
%prep
%setup -q -n %{distname}-%{version}
%build
%python_build
%install
%python_install
%fdupes %{buildroot}%{python_sitelib}
%if %{with tests}
%check
%python_expand $$python setup.py test
%endif
%files %{python_files}
%license LICENSE.txt
%doc README.rst CHANGES.rst
%{python_sitelib}/*
%changelog