forked from containerbuildsystem/dockerfile-parse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
python-dockerfile-parse.spec
196 lines (151 loc) · 4.48 KB
/
python-dockerfile-parse.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
%if 0%{?rhel} && 0%{?rhel} <= 7
%bcond_with python3
%else
%bcond_without python3
%endif
%if (0%{?fedora} && 0%{?fedora} >= 30) || (0%{?rhel} && 0%{?rhel} >= 8)
%bcond_with python2
%else
%bcond_without python2
%endif
%bcond_without tests
%global srcname dockerfile-parse
%global modname %(n=%{srcname}; echo ${n//-/_})
Name: python-%{srcname}
Version: 1.2.0
Release: 1%{?dist}
Summary: Python library for Dockerfile manipulation
License: BSD
URL: https://github.com/containerbuildsystem/dockerfile-parse
Source0: https://github.com/containerbuildsystem/dockerfile-parse/archive/%{version}.tar.gz
BuildArch: noarch
%description
%{summary}.
%if %{with python2}
%package -n python2-%{srcname}
Summary: %{summary}
%{?python_provide:%python_provide python2-%{srcname}}
BuildRequires: python2-devel
%if 0%{?rhel} && 0%{?rhel} <= 7
BuildRequires: python-six
BuildRequires: python-setuptools
BuildRequires: pytest
Requires: python-six
%else
BuildRequires: python2-six
BuildRequires: python2-setuptools
BuildRequires: python2-pytest
Requires: python2-six
%endif
%description -n python2-%{srcname}
%{summary}.
Python 2 version.
%endif # python2 pkg
%if %{with python3}
%package -n python3-%{srcname}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%if %{with tests}
BuildRequires: python3-pytest
BuildRequires: python3-six
%endif
Requires: python3-six
%description -n python3-%{srcname}
%{summary}.
Python 3 version.
%endif #python3 pkg
%prep
%setup -q
%build
%if %{with python2}
%py2_build
%endif # python2
%if %{with python3}
%py3_build
%endif
%install
%if %{with python2}
%py2_install
%endif #python2
%if %{with python3}
%py3_install
%endif
%if %{with tests}
%check
export LANG=C.UTF-8
%if %{with python2}
py.test-%{python2_version} -v tests
%endif # python2
%if %{with python3}
py.test-%{python3_version} -v tests
%endif # python3
%endif
%if %{with python2}
%files -n python2-%{srcname}
%license LICENSE
%doc README.md
%{python2_sitelib}/%{modname}-*.egg-info/
%{python2_sitelib}/%{modname}/
%endif
%if %{with python3}
%files -n python3-%{srcname}
%license LICENSE
%doc README.md
%{python3_sitelib}/%{modname}-*.egg-info/
%{python3_sitelib}/%{modname}/
%endif
%changelog
* Wed Jun 09 2021 Robert Cerven <rcerven@redhat.com> 1.2.0-1
- new upstream release: 1.2.0
* Fri Nov 06 2020 Robert Cerven <rcerven@redhat.com> 1.1.0-1
- new upstream release: 1.1.0
* Fri Jul 03 2020 Martin Bašti <mbasti@redhat.com> 1.0.0-1
- new upstream release: 1.0.0
* Tue Jun 02 2020 Robert Cerven <rcerven@redhat.com> 0.0.18-1
- new upstream release: 0.0.18
* Fri Apr 24 2020 Martin Bašti <mbasti@redhat.com> 0.0.17-1
- new upstream release: 0.0.17
* Tue Jan 21 2020 Robert Cerven <rcerven@redhat.com> - 0.0.16-1
- new upstream release: 0.0.16
* Mon Jul 15 2019 Robert Cerven <rcerven@redhat.com> - 0.0.15-1
- new upstream release: 0.0.15
* Fri Apr 26 2019 Robert Cerven <rcerven@redhat.com> - 0.0.14-1
- new upstream release: 0.0.14
* Wed Nov 14 2018 Robert Cerven <rcerven@redhat.com> - 0.0.13-1
- new upstream release: 0.0.13
* Fri Oct 05 2018 Robert Cerven <rcerven@redhat.com> - 0.0.12-1
- new upstream release: 0.0.12
* Wed Jun 13 2018 Robert Cerven <rcerven@redhat.com> - 0.0.11-1
- new upstream release: 0.0.11
* Fri Mar 23 2018 Robert Cerven <rcerven@redhat.com> - 0.0.10-1
- new upstream release: 0.0.10
* Mon Feb 12 2018 Robert Cerven <rcerven@redhat.com> - 0.0.9-1
- new upstream release: 0.0.9
* Tue Jan 16 2018 Robert Cerven <rcerven@redhat.com> - 0.0.8-1
- new upstream release: 0.0.8
* Mon May 22 2017 Tim Waugh <twaugh@redhat.com> - 0.0.7-1
- 0.0.7
* Fri Feb 3 2017 Tim Waugh <twaugh@redhat.com>
- Incorporate modernisations from Fedora spec file.
* Tue Dec 20 2016 Tim Waugh <twaugh@redhat.com> - 0.0.6-1
- 0.0.6
* Fri Nov 20 2015 Jiri Popelka <jpopelka@redhat.com> - 0.0.5-3
- don't use py3dir
- new python macros
- use python_provide macro
* Fri Nov 06 2015 Jiri Popelka <jpopelka@redhat.com> - 0.0.5-2
- %%check section
* Mon Sep 21 2015 Jiri Popelka <jpopelka@redhat.com> - 0.0.5-1
- 0.0.5
* Thu Aug 27 2015 Jiri Popelka <jpopelka@redhat.com> - 0.0.4-1
- 0.0.4
* Tue Jun 30 2015 Jiri Popelka <jpopelka@redhat.com> - 0.0.3-2
- define macros for RHEL-6
* Fri Jun 26 2015 Jiri Popelka <jpopelka@redhat.com> - 0.0.3-1
- 0.0.3
* Fri Jun 26 2015 Jiri Popelka <jpopelka@redhat.com> - 0.0.2-1
- 0.0.2
* Thu Jun 18 2015 Jiri Popelka <jpopelka@redhat.com> - 0.0.1-1
- initial release