forked from pulp/pulp_puppet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpulp-puppet.spec
421 lines (327 loc) · 14.2 KB
/
pulp-puppet.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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
# Copyright (c) 2012 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public
# License as published by the Free Software Foundation; either version
# 2 of the License (GPLv2) or (at your option) any later version.
# There is NO WARRANTY for this software, express or implied,
# including the implied warranties of MERCHANTABILITY,
# NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
# have received a copy of GPLv2 along with this software; if not, see
# http://www.gnu.org/licenses/old-licenses/gpl-2.0
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
# ---- Pulp (puppet) -----------------------------------------------------------
Name: pulp-puppet
Version: 2.3.0
Release: 0.4.alpha%{?dist}
Summary: Support for Puppet content in the Pulp platform
Group: Development/Languages
License: GPLv2
URL: https://fedorahosted.org/pulp/
Source0: https://fedorahosted.org/releases/p/u/%{name}/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: python-nose
BuildRequires: rpm-python
%description
Provides a collection of platform plugins, client extensions and agent
handlers that provide Puppet support.
%prep
%setup -q
%build
pushd pulp_puppet_common
%{__python} setup.py build
popd
pushd pulp_puppet_extensions_admin
%{__python} setup.py build
popd
pushd pulp_puppet_extensions_consumer
%{__python} setup.py build
popd
pushd pulp_puppet_plugins
%{__python} setup.py build
popd
pushd pulp_puppet_handlers
%{__python} setup.py build
popd
%install
rm -rf %{buildroot}
pushd pulp_puppet_common
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
popd
pushd pulp_puppet_extensions_admin
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
popd
pushd pulp_puppet_extensions_consumer
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
popd
pushd pulp_puppet_plugins
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
popd
pushd pulp_puppet_handlers
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
popd
# Directories
mkdir -p %{buildroot}/%{_sysconfdir}/pulp/agent/conf.d
mkdir -p %{buildroot}/%{_sysconfdir}/pulp/vhosts80
mkdir -p %{buildroot}/%{_usr}/lib
mkdir -p %{buildroot}/%{_usr}/lib/pulp/plugins/types
mkdir -p %{buildroot}/%{_usr}/lib/pulp/admin/extensions
mkdir -p %{buildroot}/%{_usr}/lib/pulp/agent/handlers
mkdir -p %{buildroot}/%{_var}/www/pulp_puppet
mkdir -p %{buildroot}/%{_var}/www/pulp_puppet/http
mkdir -p %{buildroot}/%{_var}/www/pulp_puppet/https
mkdir -p %{buildroot}/srv/pulp
# Configuration
cp -R pulp_puppet_plugins/etc/httpd %{buildroot}/%{_sysconfdir}
cp -R pulp_puppet_extensions_admin/etc/pulp %{buildroot}/%{_sysconfdir}
cp pulp_puppet_plugins/etc/pulp/vhosts80/puppet.conf %{buildroot}/%{_sysconfdir}/pulp/vhosts80/
# WSGI app
cp -R pulp_puppet_plugins/srv/pulp/puppet_forge_api.wsgi %{buildroot}/srv/pulp/
# Agent Handlers
cp pulp_puppet_handlers/etc/pulp/agent/conf.d/* %{buildroot}/%{_sysconfdir}/pulp/agent/conf.d/
# Types
cp -R pulp_puppet_plugins/pulp_puppet/plugins/types/* %{buildroot}/%{_usr}/lib/pulp/plugins/types/
# Remove tests
rm -rf %{buildroot}/%{python_sitelib}/test
%clean
rm -rf %{buildroot}
# define required pulp platform version.
%global pulp_version %{version}
# ---- Puppet Common -----------------------------------------------------------
%package -n python-pulp-puppet-common
Summary: Pulp Puppet support common library
Group: Development/Languages
Requires: python-pulp-common = %{pulp_version}
Requires: python-setuptools
%description -n python-pulp-puppet-common
A collection of modules shared among all Puppet components.
%files -n python-pulp-puppet-common
%defattr(-,root,root,-)
%dir %{python_sitelib}/pulp_puppet
%{python_sitelib}/pulp_puppet/__init__.py*
%{python_sitelib}/pulp_puppet/common/
%dir %{python_sitelib}/pulp_puppet/extensions
%{python_sitelib}/pulp_puppet/extensions/__init__.py*
%{python_sitelib}/pulp_puppet_common*.egg-info
%doc
# ---- Plugins -----------------------------------------------------------------
%package plugins
Summary: Pulp Puppet plugins
Group: Development/Languages
Requires: python-pulp-common = %{pulp_version}
Requires: python-pulp-puppet-common = %{pulp_version}
Requires: pulp-server = %{pulp_version}
Requires: python-setuptools
Requires: python-pycurl
%description plugins
Provides a collection of platform plugins that extend the Pulp platform
to provide Puppet specific support.
%files plugins
%defattr(-,root,root,-)
%{_sysconfdir}/pulp/vhosts80/puppet.conf
%{python_sitelib}/pulp_puppet/forge/
%{python_sitelib}/pulp_puppet/plugins/
%config(noreplace) %{_sysconfdir}/httpd/conf.d/puppet.conf
%{_usr}/lib/pulp/plugins/types/puppet.json
%{python_sitelib}/pulp_puppet_plugins*.egg-info
/srv/pulp/puppet_forge_api.wsgi
%defattr(-,apache,apache,-)
%{_var}/www/pulp_puppet/
%doc
# ---- Admin Extensions --------------------------------------------------------
%package admin-extensions
Summary: The Puppet admin client extensions
Group: Development/Languages
Requires: python-pulp-common = %{pulp_version}
Requires: python-pulp-puppet-common = %{pulp_version}
Requires: pulp-admin-client = %{pulp_version}
Requires: python-setuptools
Obsoletes: python-pulp-puppet-extension
%description admin-extensions
A collection of extensions that supplement and override generic admin
client capabilites with Puppet specific features.
%files admin-extensions
%defattr(-,root,root,-)
%{_sysconfdir}/pulp/admin/conf.d/puppet.conf
%{python_sitelib}/pulp_puppet/extensions/admin/
%{python_sitelib}/pulp_puppet_extensions_admin*.egg-info
%doc
# ---- Consumer Extensions --------------------------------------------------------
%package consumer-extensions
Summary: The Puppet consumer client extensions
Group: Development/Languages
Requires: python-pulp-puppet-common = %{pulp_version}
Requires: pulp-consumer-client = %{pulp_version}
Requires: python-setuptools
%description consumer-extensions
A collection of extensions that supplement generic consumer
client capabilites with Puppet specific features.
%files consumer-extensions
%defattr(-,root,root,-)
%{python_sitelib}/pulp_puppet/extensions/consumer/
%{python_sitelib}/pulp_puppet_extensions_consumer*.egg-info
%doc
# ---- Agent Handlers ----------------------------------------------------------
%package handlers
Summary: Pulp agent puppet handlers
Group: Development/Languages
Requires: python-pulp-agent-lib = %{pulp_version}
Requires: python-pulp-common = %{pulp_version}
%description handlers
A collection of handlers that provide Puppet specific
functionality within the Pulp agent. This includes Puppet install, update,
uninstall, bind, and unbind.
%files handlers
%defattr(-,root,root,-)
%{python_sitelib}/pulp_puppet/handlers/
%{_sysconfdir}/pulp/agent/conf.d/puppet_bind.conf
%{_sysconfdir}/pulp/agent/conf.d/puppet_module.conf
%{python_sitelib}/pulp_puppet_handlers*.egg-info
%doc
%changelog
* Tue Aug 27 2013 Jeff Ortel <[email protected]> 2.3.0-0.4.alpha
- Pulp rebuild
* Tue Aug 27 2013 Jeff Ortel <[email protected]> 2.3.0-0.3.alpha
- Pulp rebuild
* Thu Aug 01 2013 Jeff Ortel <[email protected]> 2.3.0-0.2.alpha
- Purge changelog prior to 2.0 ([email protected])
* Tue Jun 04 2013 Jeff Ortel <[email protected]> 2.2.0-0.16.alpha
- 968543 - remove conditional in pulp_version macro. ([email protected])
* Thu May 30 2013 Jeff Ortel <[email protected]> 2.2.0-0.15.alpha
- Pulp rebuild
* Fri May 24 2013 Jeff Ortel <[email protected]> 2.2.0-0.14.alpha
- Pulp rebuild
* Thu May 23 2013 Jeff Ortel <[email protected]> 2.2.0-0.13.alpha
- Pulp rebuild
* Thu May 23 2013 Jeff Ortel <[email protected]> 2.2.0-0.12.alpha
- Pulp rebuild
* Tue May 21 2013 Jeff Ortel <[email protected]> 2.2.0-0.11.alpha
- Pulp rebuild
* Mon May 20 2013 Jeff Ortel <[email protected]> 2.2.0-0.10.alpha
- Pulp rebuild
* Mon May 20 2013 Jeff Ortel <[email protected]> 2.2.0-0.9.alpha
- Pulp rebuild
* Fri May 17 2013 Jeff Ortel <[email protected]> 2.2.0-0.8.alpha
- 946966 - an uploaded module can now have a version that includes the '-'
character. ([email protected])
* Mon May 13 2013 Jeff Ortel <[email protected]> 2.2.0-0.5.alpha
- Pulp rebuild
* Mon May 13 2013 Jeff Ortel <[email protected]> 2.2.0-0.3.alpha
- Pulp rebuild
* Fri Apr 19 2013 Jeff Ortel <[email protected]> 2.2.0-0.2.alpha
- Pulp rebuild
* Fri Apr 12 2013 Jeff Ortel <[email protected]> 2.2.0-0.1.alpha
- 950740 - add support {?dist} in the Release: in .spec files.
* Mon Mar 04 2013 Jeff Ortel <[email protected]> 2.1.0-0.19.alpha
- 902514 - Removed the <VirtualHost> block, which apache was ignoring anyway,
in favor of using the platform's authoritative one. ([email protected])
* Tue Feb 26 2013 Jeff Ortel <[email protected]> 2.1.0-0.18.alpha
- Pulp rebuild
* Tue Feb 26 2013 Jeff Ortel <[email protected]> 2.1.0-0.17.alpha
- Pulp rebuild
* Mon Feb 25 2013 Jeff Ortel <[email protected]> 2.1.0-0.16.alpha
- Pulp rebuild
* Fri Feb 22 2013 Jeff Ortel <[email protected]> 2.1.0-0.14.alpha
- Pulp rebuild
* Thu Feb 21 2013 Jeff Ortel <[email protected]> 2.1.0-0.13.alpha
- Pulp rebuild
* Tue Feb 19 2013 Jeff Ortel <[email protected]> 2.1.0-0.12.alpha
- Pulp rebuild
* Thu Feb 14 2013 Jeff Ortel <[email protected]> 2.1.0-0.10.alpha
- Pulp rebuild
* Thu Feb 14 2013 Jeff Ortel <[email protected]> 2.1.0-0.9.alpha
- Pulp rebuild
* Wed Feb 13 2013 Jeff Ortel <[email protected]> 2.1.0-0.8.alpha
- Pulp rebuild
* Wed Feb 13 2013 Jeff Ortel <[email protected]> 2.1.0-0.7.alpha
- Pulp rebuild
* Tue Feb 12 2013 Jeff Ortel <[email protected]> 2.1.0-0.5.alpha
- Pulp rebuild
* Tue Feb 12 2013 Jeff Ortel <[email protected]> 2.1.0-0.4.alpha
- Pulp rebuild
* Tue Feb 05 2013 Jeff Ortel <[email protected]> 2.1.0-0.3.alpha
- Pulp rebuild
* Tue Feb 05 2013 Jeff Ortel <[email protected]> 2.1.0-0.2.alpha
- Pulp rebuild
* Sat Jan 19 2013 Jeff Ortel <[email protected]> 2.1.0-0.1.alpha
- 887372 - importer now gracefully fails when a feed URL is not present in the
config ([email protected])
- 861211 - Adding a "--queries" option to repo create and update that takes a
CSV list of query terms, and deprecating the previous "--query" option.
- 887959 - renaming pulp_puppet.conf to puppet.conf ([email protected])
- 887959 - renaming pulp_puppet.conf to puppet.conf ([email protected])
- 887959 - renaming pulp_puppet.conf file to puppet.conf so that it get's
loaded after pulp_rpm.conf ([email protected])
- 887959 - Removing NameVirtualHost entries from plugin httpd conf files and
adding it only at one place in main pulp.conf ([email protected])
- 886689 - puppet distributor output from the CLI now includes a relative path
to the published content. ([email protected])
- 882414 - Using an exception from the pulp server that allows a helpful error
message to be returned to clients. ([email protected])
- 882404 - now validating file name format when uploading modules.
- 882427 - No longer displaying traceback to user when a sync fails to import a
module ([email protected])
- 882419 - adding publish commands to the CLI ([email protected])
- 882421 - added unit remove command. ([email protected])
- 866491 - Added translation from server-side property name to client-side flag
- 862290 - Added support for non-Puppet repo listing ([email protected])
- 880229 - I think we need to create these as well. ([email protected])
- 880229 - Apache needs to be able to write to the publish directories
* Thu Dec 20 2012 Jeff Ortel <[email protected]> 2.0.6-0.19.rc
- Pulp rebuild
* Wed Dec 19 2012 Jeff Ortel <[email protected]> 2.0.6-0.19.beta
- Pulp rebuild
* Tue Dec 18 2012 Jeff Ortel <[email protected]> 2.0.6-0.18.beta
- 887959 - renaming pulp_puppet.conf to puppet.conf ([email protected])
- 887959 - renaming pulp_puppet.conf to puppet.conf ([email protected])
- 887959 - renaming pulp_puppet.conf file to puppet.conf so that it get's
loaded after pulp_rpm.conf ([email protected])
- 887959 - Removing NameVirtualHost entries from plugin httpd conf files and
adding it only at one place in main pulp.conf ([email protected])
* Thu Dec 13 2012 Jeff Ortel <[email protected]> 2.0.6-0.17.beta
- Pulp rebuild
* Thu Dec 13 2012 Jeff Ortel <[email protected]> 2.0.6-0.15.beta
- 886689 - puppet distributor output from the CLI now includes a relative path
to the published content. ([email protected])
- 882414 - Using an exception from the pulp server that allows a helpful error
message to be returned to clients. ([email protected])
- 882404 - now validating file name format when uploading modules.
- 882427 - No longer displaying traceback to user when a sync fails to import a
module ([email protected])
* Mon Dec 10 2012 Jeff Ortel <[email protected]> 2.0.6-0.14.beta
- Pulp rebuild
* Fri Dec 07 2012 Jeff Ortel <[email protected]> 2.0.6-0.13.beta
- Pulp rebuild
* Thu Dec 06 2012 Jeff Ortel <[email protected]> 2.0.6-0.12.beta
- 882419 - adding publish commands to the CLI ([email protected])
- 882421 - added unit remove command. ([email protected])
* Thu Nov 29 2012 Jeff Ortel <[email protected]> 2.0.6-0.11.beta
- Pulp rebuild
* Thu Nov 29 2012 Jeff Ortel <[email protected]> 2.0.6-0.10.beta
- 866491 - Added translation from server-side property name to client-side flag
- 862290 - Added support for non-Puppet repo listing ([email protected])
- 880229 - I think we need to create these as well. ([email protected])
- 880229 - Apache needs to be able to write to the publish directories
* Mon Nov 26 2012 Jay Dobies <[email protected]> 2.0.6-0.9.beta
- Pulp rebuild
* Wed Nov 21 2012 Jay Dobies <[email protected]> 2.0.6-0.8.beta
- Pulp rebuild
* Wed Nov 21 2012 Jay Dobies <[email protected]> 2.0.6-0.7.beta
- Pulp rebuild
* Tue Nov 20 2012 Jeff Ortel <[email protected]> 2.0.6-0.3.beta
- Pulp rebuild
* Mon Nov 12 2012 Jeff Ortel <[email protected]> 2.0.6-0.2.beta
- Pulp rebuild
* Mon Nov 12 2012 Jeff Ortel <[email protected]> 2.0.6-0.1.beta
- Pulp rebuild