-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.spec.in
58 lines (46 loc) · 1.32 KB
/
package.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
52
53
54
55
56
57
58
%global pkgname ansiblelint_custom_rules_ex
%global desc \
Some ansible-lint custom rule impolementations as examples.
%bcond_with tests
Name: python-%{pkgname}
Version: @VERSION@
Release: 1%{?dist}
Summary: Some ansible-lint custom rule examples
License: MIT
URL: https://github.com/ssato/ansible-lint-custom-rules
Source0: %{url}/archive/RELEASE_%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%if %{with tests}
BuildRequires: python3-coveralls
BuildRequires: python3-flake8
BuildRequires: python3-mock
BuildRequires: python3-pytest
BuildRequires: python3-pycodestyle
BuildRequires: python3-pylint
BuildRequires: python3-tox
%endif
%description %{desc}
%package -n python3-%{pkgname}
Summary: %{summary}
Requires: ansible-lint
%{?python_provide:%python_provide python3-%{pkgname}}
%description -n python3-%{pkgname} %{desc}
%prep
%autosetup -n %{pkgname}-%{version}
%build
%py3_build
%install
%py3_install
%if %{with tests}
%check
tox -e py$(python -c "import sys; sys.stdout.write(sys.version[:3].replace('.', ''))")
%endif
%files -n python3-%{pkgname}
%doc README.rst
%license LICENSE.MIT
%{python3_sitelib}/*
%changelog
* Tue Sep 1 2020 Satoru SATOH <ssato@redhat.com> - 0.1.0-1
- Initial release