forked from pulp/pulp_puppet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpulp-puppet.spec
437 lines (366 loc) · 16.3 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
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
%{!?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))")}
%if 0%{?rhel} == 5
%define pulp_admin 0
%define pulp_server 0
%define pulp_puppet_tools 0
%else
%define pulp_admin 1
%define pulp_server 1
%define pulp_puppet_tools 1
%endif # End RHEL 5 if block
# ---- Pulp (puppet) -----------------------------------------------------------
Name: pulp-puppet
Version: 2.5.0
Release: 0.19.rc%{?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: 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
%if %{pulp_admin}
pushd pulp_puppet_extensions_admin
%{__python} setup.py build
popd
%endif # End pulp_admin if block
pushd pulp_puppet_extensions_consumer
%{__python} setup.py build
popd
%if %{pulp_server}
pushd pulp_puppet_plugins
%{__python} setup.py build
popd
%endif # End pulp_server if block
pushd pulp_puppet_handlers
%{__python} setup.py build
popd
%if %{pulp_puppet_tools}
pushd pulp_puppet_tools
%{__python} setup.py build
popd
%endif # End pulp_puppet_tools if block
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_sysconfdir}/pulp/
pushd pulp_puppet_common
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
popd
%if %{pulp_admin}
pushd pulp_puppet_extensions_admin
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
popd
mkdir -p %{buildroot}/%{_usr}/lib/pulp/admin/extensions
cp -R pulp_puppet_extensions_admin/etc/pulp %{buildroot}/%{_sysconfdir}
%endif # End pulp_admin if block
pushd pulp_puppet_extensions_consumer
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
popd
%if %{pulp_server}
pushd pulp_puppet_plugins
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
popd
mkdir -p %{buildroot}/%{_sysconfdir}/pulp/vhosts80
mkdir -p %{buildroot}/srv/pulp
mkdir -p %{buildroot}/%{_usr}/lib/pulp/plugins/types
mkdir -p %{buildroot}/%{_var}/lib/pulp/published/puppet/http
mkdir -p %{buildroot}/%{_var}/lib/pulp/published/puppet/https
cp -R pulp_puppet_plugins/etc/httpd %{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_post33_api.wsgi %{buildroot}/srv/pulp/
cp -R pulp_puppet_plugins/srv/pulp/puppet_forge_pre33_api.wsgi %{buildroot}/srv/pulp/
# Types
cp -R pulp_puppet_plugins/pulp_puppet/plugins/types/* %{buildroot}/%{_usr}/lib/pulp/plugins/types/
%endif # End pulp_server if block
pushd pulp_puppet_handlers
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
popd
%if %{pulp_puppet_tools}
pushd pulp_puppet_tools
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
popd
%endif # End pulp_puppet_tools if block
# Directories
mkdir -p %{buildroot}/%{_sysconfdir}/pulp/agent/conf.d
mkdir -p %{buildroot}/%{_usr}/lib/pulp/agent/handlers
mkdir -p %{buildroot}/%{_bindir}
# Agent Handlers
cp pulp_puppet_handlers/etc/pulp/agent/conf.d/* %{buildroot}/%{_sysconfdir}/pulp/agent/conf.d/
# 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 COPYRIGHT LICENSE AUTHORS
# ---- Plugins -----------------------------------------------------------------
%if %{pulp_server}
%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-semantic-version >= 2.2.0
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/pulp_puppet.conf
%{_usr}/lib/pulp/plugins/types/puppet.json
%{python_sitelib}/pulp_puppet_plugins*.egg-info
/srv/pulp/puppet_forge_post33_api.wsgi
/srv/pulp/puppet_forge_pre33_api.wsgi
%defattr(-,apache,apache,-)
%{_var}/lib/pulp/published/puppet/
%doc COPYRIGHT LICENSE AUTHORS
%endif # End pulp_server if block
# ---- Admin Extensions --------------------------------------------------------
%if %{pulp_admin}
%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 COPYRIGHT LICENSE AUTHORS
%endif # End pulp_admin if block
# ---- 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 COPYRIGHT LICENSE AUTHORS
# ---- 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}
Requires: puppet >= 2.7.14
%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 COPYRIGHT LICENSE AUTHORS
# ---- Tools -----------------------------------------------------------------
%if %{pulp_puppet_tools}
%package tools
Summary: Pulp puppet tools
Group: Development/Languages
Requires: puppet >= 2.7
Requires: git >= 1.7
Requires: python-pulp-puppet-common = %{pulp_version}
%description tools
A collection of tools used to manage puppet modules.
%files tools
%defattr(-,root,root,-)
%{python_sitelib}/pulp_puppet/tools/
%{python_sitelib}/pulp_puppet_tools*.egg-info
%{_bindir}/pulp-puppet-module-builder
%doc COPYRIGHT LICENSE AUTHORS
%endif # End pulp_puppet_tools if block
%changelog
* Mon Nov 17 2014 asmacdo <[email protected]> 2.5.0-0.19.rc
- Pulp rebuild
* Mon Nov 10 2014 asmacdo <[email protected]> 2.5.0-0.18.rc
- Pulp rebuild
* Thu Nov 06 2014 asmacdo <[email protected]> 2.5.0-0.17.rc
- Pulp rebuild
* Fri Oct 31 2014 Austin Macdonald <[email protected]> 2.5.0-0.15.rc
- 1009429 - Don't verify FS permissions with httpd. ([email protected])
- 1153072 - do not delete /var/www/pulp_puppet on upgrade ([email protected])
- 1150297 - Change all 2.4.x versions to 2.5.0. ([email protected])
- 1131062 - propogate cancelation even when download exception occurs
- 1128274 - Puppet module sync against a directory now updates the progress
report ([email protected])
- 1092572 - Publish puppet files before removing the existing files so that
there is less time when the puppet modules are not available during a
republish. ([email protected])
- 1123446 - Syncing against a directory uses 'modulename' rather than
'authorname-modulename' as the module name ([email protected])
* Thu Oct 16 2014 Randy Barlow <[email protected]> 2.4.3-1
- Pulp rebuild
* Mon Oct 13 2014 Chris Duryee <[email protected]> 2.4.2-1
- 1103232 - Reference Pulp docs for proxy settings. ([email protected])
- 1103232 - Document proxy settings. ([email protected])
- 1149894 - Adjusts installdistributor to pick the correct temp dir
- 1009429 - Document the selinux boolean. ([email protected])
* Thu Sep 04 2014 Randy Barlow <[email protected]> 2.4.1-1
- 1130312 - Add release notes for 2.4.1. ([email protected])
- 1123446 - Syncing against a directory uses 'modulename' rather than
'authorname-modulename' as the module name ([email protected])
* Sat Aug 09 2014 Randy Barlow <[email protected]> 2.4.0-1
- 1103311 - Extract any unit_key fields from metadata ([email protected])
- 1096931 - slightly changed repo update command behavior to not send empty
distributor configs ([email protected])
- 1051700 - Don't build admin extensions, plugins, or tools on EL 5.
- 1073143 - improved CLI docs for --queries option ([email protected])
- 1093429 - Changing parameter name for repo create due to API change
- 1082802 - Stop downloading modules when canceled. ([email protected])
- 1091038 - Puppet repo update command needs to extend the generic update repo
command so that the return value from the server is processed properly.
- 1090522 - puppet handler requires puppet >= 2.7.14. ([email protected])
- 1072580 - Do not use module names in sync reports. ([email protected])
- 1045214 - Enable synchronization over SSL. ([email protected])
- 1074057 - Fix progress report for directory synchronization
- 1058500 - fixed puppet distributor to publish to /var/lib/pulp/published
instead of to /var/www/pulp_puppet ([email protected])
- 1014001 - Puppet forge API and handler now support puppet >= 3.3
- 1034978 - Move general formatting for puppet_module copy & remove to the base
class in pulp ([email protected])
- 1040958 - puppet uploader isn't returning a properly formatted upload report
- 995076 - make sure to call finalize on the nectar config object
- 1032132 - removed unused progress_report positional argument
- 1024739 - Rename /etc/pulp/vhosts80/pulp_puppet.conf to puppet.conf.
- 1021099 - Rename puppet.conf -> pulp_puppet.conf ([email protected])
* Wed Nov 06 2013 Jeff Ortel <[email protected]> 2.3.0-1
- 1024739 - Rename /etc/pulp/vhosts80/pulp_puppet.conf to puppet.conf.
- 1021099 - Rename puppet.conf -> pulp_puppet.conf ([email protected])
- 1014734 - Update documentation to include Puppet 3.3.x incompatibility.
- 976435 - load puppet importer config from a file using a common method.
- 1009114 - create install_path if not already exists. ([email protected])
- 1002691 - pass puppet forge host in options. ([email protected])
- 975103 - Removing metadata 'types' field from default rendering of puppet
modules and adding it only when --details flag is specified
- 946966 - made the forge-like API honor semantic versioning
- 915330 - Fix performance degradation of importer and distributor
configuration validation as the number of repositories increased
- Purge changelog prior to 2.0 ([email protected])
* Tue Jun 04 2013 Jeff Ortel <[email protected]> 2.2.0-1
- 968543 - remove conditional in pulp_version macro. ([email protected])
- 946966 - an uploaded module can now have a version that includes the '-'
character. ([email protected])
- 950740 - add support {?dist} in the Release: in .spec files.
* Mon Mar 04 2013 Jeff Ortel <[email protected]> 2.1.0-1
- 902514 - Removed the <VirtualHost> block, which apache was ignoring anyway,
in favor of using the platform's authoritative one. ([email protected])
- 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-1
- 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