forked from user-cont/colin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
colin.spec
129 lines (97 loc) · 3.42 KB
/
colin.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
%global pypi_name colin
%{?python_enable_dependency_generator}
%if 0%{?rhel} && 0%{?rhel} <= 7
%bcond_with python3
%else
%bcond_without python3
%endif
Name: %{pypi_name}
Version: 0.4.0
Release: 1%{?dist}
Summary: Tool to check generic rules/best-practices for containers/images/dockerfiles.
License: GPLv3+
URL: https://github.com/user-cont/colin
Source0: https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
Requires: python3-%{pypi_name}
%description
`colin` is a tool to check generic rules/best-practices
for containers/images/dockerfiles
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Recommends: moby-engine
Recommends: atomic
%description -n python3-%{pypi_name}
`colin` as a tool to check generic rules/best-practices
for containers/images/dockerfiles
%package doc
BuildRequires: python3-sphinx
BuildRequires: python3-sphinx_rtd_theme
Summary: colin documentation
%description doc
Documentation for colin
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py3_build
# generate html docs
PYTHONPATH="${PWD}:${PWD}/docs/" sphinx-build docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%install
%py3_install
%files
%license LICENSE
%{_bindir}/%{pypi_name}
%{_datadir}/bash-completion/completions/%{pypi_name}
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-*.egg-info/
%{_datadir}/%{pypi_name}/
%exclude %{python3_sitelib}/tests
%files doc
%license LICENSE
%doc html
%changelog
* Thu May 23 2019 Tomas Tomecek <[email protected]> - 0.4.0-1
- new upstream release: 0.4.0
* Wed May 01 2019 Lukas Slebodnik <[email protected]> 0.3.1-4
- Change weak dependency in rawhide (docker -> moby-engine)
* Wed May 01 2019 Lukas Slebodnik <[email protected]> 0.3.1-3
- rhbz#1684558 - Remove hard dependency on docker
* Thu Jan 31 2019 Fedora Release Engineering <[email protected]> - 0.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Mon Jan 21 2019 Tomas Tomecek <[email protected]> 0.3.1-1
- 0.3.1 release
* Wed Nov 14 2018 Frantisek Lachman <[email protected]> - 0.3.0-1
- 0.3.0 release
* Mon Oct 22 2018 lachmanfrantisek <[email protected]> 0.2.1-1
- 0.2.1 release
* Wed Sep 19 2018 Jiri Popelka <[email protected]> 0.2.0-1
- 0.2.0 release
* Thu Jul 12 2018 Fedora Release Engineering <[email protected]> - 0.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Jun 19 2018 Miro Hrončok <[email protected]> - 0.1.0-2
- Rebuilt for Python 3.7
* Wed May 30 2018 Jiri Popelka <[email protected]> 0.1.0-1
- 0.1.0 release
* Wed May 02 2018 Petr Hracek <[email protected]> - 0.0.4-3
- Polishing texts and remove leftovers (#1572084)
* Wed May 02 2018 Petr Hracek <[email protected]> - 0.0.4-2
- Fix issues catched by BZ review process (#1572084)
* Wed Apr 25 2018 lachmanfrantisek <[email protected]> - 0.0.4-1
- bash completion
- better cli
- better ruleset files and loading
- dockerfile support
- python2 compatibility
- better error handling
* Mon Apr 09 2018 Petr Hracek <[email protected]> - 0.0.3-1
- Initial package.