-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpython-distutils-pytest.spec
58 lines (43 loc) · 1.04 KB
/
python-distutils-pytest.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
%bcond_without tests
%global distname distutils-pytest
%if 0%{?sle_version} >= 150500
%{?sle15_python_module_pythons}
%else
%{?!python_module:%define python_module() python3-%{**}}
%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/distutils-pytest/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 pytest >= 3.0}
%endif
Requires: python-pytest
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