forked from pulp/pulp_puppet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpulp-puppet.spec
458 lines (380 loc) · 17 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
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
%{!?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.8.0
Release: 0.5.beta%{?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}/%{_datadir}/pulp/wsgi
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/usr/share/pulp/wsgi/puppet_forge.wsgi %{buildroot}%{_datadir}/pulp/wsgi
%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
%{python_sitelib}/pulp_puppet_plugins*.egg-info
%{_datadir}/pulp/wsgi/puppet_forge.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
%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
* Thu Jan 28 2016 Dennis Kliban <dkliban@redhat.com> 2.8.0-0.4.beta
- Pulp rebuild
* Tue Jan 19 2016 Dennis Kliban <dkliban@redhat.com> 2.8.0-0.3.beta
- Pulp rebuild
* Wed Jan 13 2016 Dennis Kliban <dkliban@redhat.com> 2.8.0-0.2.beta
- Pulp rebuild
* Mon Jan 11 2016 Dennis Kliban <dkliban@redhat.com> 2.8.0-0.1.beta
- Pulp rebuild
* Tue Feb 10 2015 Chris Duryee <cduryee@redhat.com> 2.6.0-0.7.beta
- Pulp rebuild
* Tue Feb 10 2015 Chris Duryee <cduryee@redhat.com> 2.6.0-0.6.beta
- 1186445 - Ensure that the install distributor install_path already exists
before we start working with it (bcourt@redhat.com)
- 1184187 - Causes all tests to use pulp_unittest (bmbouter@gmail.com)
* Fri Jan 16 2015 Chris Duryee <cduryee@redhat.com> 2.6.0-0.5.beta
- Pulp rebuild
* Tue Jan 13 2015 Chris Duryee <cduryee@redhat.com> 2.6.0-0.4.beta
- Pulp rebuild
* Mon Jan 12 2015 Chris Duryee <cduryee@redhat.com> 2.6.0-0.3.beta
- Pulp rebuild
* Tue Dec 23 2014 Chris Duryee <cduryee@redhat.com> 2.6.0-0.2.beta
- 1145719 - Puppet directory import now respects the 'remove_missing'
configuration setting. (jcline@redhat.com)
* Fri Nov 21 2014 Chris Duryee <cduryee@redhat.com> 2.6.0-0.1.alpha
- 1145713 - add python-pulp-puppet-common as dep to tools rpm
(cduryee@redhat.com)
- 1146916 - pulp-puppet-module-builder now builds modules without init.pp files
(jcline@redhat.com)
- 1153072 - do not delete /var/www/pulp_puppet on upgrade (cduryee@redhat.com)
* Fri Nov 21 2014 Austin Macdonald <amacdona@redhat.com> 2.5.0-1
- 1009429 - Don't verify FS permissions with httpd. (rbarlow@redhat.com)
- 1153072 - do not delete /var/www/pulp_puppet on upgrade (cduryee@redhat.com)
- 1150297 - Change all 2.4.x versions to 2.5.0. (rbarlow@redhat.com)
- 1131062 - propogate cancelation even when download exception occurs
(cduryee@redhat.com)
- 1128274 - Puppet module sync against a directory now updates the progress
report (jcline@redhat.com)
- 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. (bcourt@redhat.com)
- 1123446 - Syncing against a directory uses 'modulename' rather than
'authorname-modulename' as the module name (jcline@redhat.com)
* Mon Oct 13 2014 Chris Duryee <cduryee@redhat.com> 2.4.2-1
- 1103232 - Reference Pulp docs for proxy settings. (rbarlow@redhat.com)
- 1103232 - Document proxy settings. (rbarlow@redhat.com)
- 1149894 - Adjusts installdistributor to pick the correct temp dir
(bmbouter@gmail.com)
- 1009429 - Document the selinux boolean. (rbarlow@redhat.com)
* Thu Sep 04 2014 Randy Barlow <rbarlow@redhat.com> 2.4.1-1
- 1130312 - Add release notes for 2.4.1. (rbarlow@redhat.com)
- 1123446 - Syncing against a directory uses 'modulename' rather than
'authorname-modulename' as the module name (jcline@redhat.com)
* Sat Aug 09 2014 Randy Barlow <rbarlow@redhat.com> 2.4.0-1
- 1103311 - Extract any unit_key fields from metadata (daviddavis@redhat.com)
- 1096931 - slightly changed repo update command behavior to not send empty
distributor configs (mhrivnak@redhat.com)
- 1051700 - Don't build admin extensions, plugins, or tools on EL 5.
(rbarlow@redhat.com)
- 1073143 - improved CLI docs for --queries option (mhrivnak@redhat.com)
- 1093429 - Changing parameter name for repo create due to API change
(mhrivnak@redhat.com)
- 1082802 - Stop downloading modules when canceled. (rbarlow@redhat.com)
- 1091038 - Puppet repo update command needs to extend the generic update repo
command so that the return value from the server is processed properly.
(bcourt@redhat.com)
- 1090522 - puppet handler requires puppet >= 2.7.14. (jortel@redhat.com)
- 1072580 - Do not use module names in sync reports. (rbarlow@redhat.com)
- 1045214 - Enable synchronization over SSL. (rbarlow@redhat.com)
- 1074057 - Fix progress report for directory synchronization
(bcourt@redhat.com)
- 1058500 - fixed puppet distributor to publish to /var/lib/pulp/published
instead of to /var/www/pulp_puppet (skarmark@redhat.com)
- 1014001 - Puppet forge API and handler now support puppet >= 3.3
(mhrivnak@redhat.com)
- 1034978 - Move general formatting for puppet_module copy & remove to the base
class in pulp (bcourt@redhat.com)
- 1040958 - puppet uploader isn't returning a properly formatted upload report
(bcourt@redhat.com)
- 995076 - make sure to call finalize on the nectar config object
(jason.connor@gmail.com)
- 1032132 - removed unused progress_report positional argument
(jason.connor@gmail.com)
- 1024739 - Rename /etc/pulp/vhosts80/pulp_puppet.conf to puppet.conf.
(rbarlow@redhat.com)
- 1021099 - Rename puppet.conf -> pulp_puppet.conf (bcourt@redhat.com)
* Wed Nov 06 2013 Jeff Ortel <jortel@redhat.com> 2.3.0-1
- 1024739 - Rename /etc/pulp/vhosts80/pulp_puppet.conf to puppet.conf.
(rbarlow@redhat.com)
- 1021099 - Rename puppet.conf -> pulp_puppet.conf (bcourt@redhat.com)
- 1014734 - Update documentation to include Puppet 3.3.x incompatibility.
(bcourt@redhat.com)
- 976435 - load puppet importer config from a file using a common method.
(bcourt@redhat.com)
- 1009114 - create install_path if not already exists. (jortel@redhat.com)
- 1002691 - pass puppet forge host in options. (jortel@redhat.com)
- 975103 - Removing metadata 'types' field from default rendering of puppet
modules and adding it only when --details flag is specified
(skarmark@redhat.com)
- 946966 - made the forge-like API honor semantic versioning
(mhrivnak@redhat.com)
- 915330 - Fix performance degradation of importer and distributor
configuration validation as the number of repositories increased
(bcourt@redhat.com)
- Purge changelog prior to 2.0 (jortel@redhat.com)
* Tue Jun 04 2013 Jeff Ortel <jortel@redhat.com> 2.2.0-1
- 968543 - remove conditional in pulp_version macro. (jortel@redhat.com)
- 946966 - an uploaded module can now have a version that includes the '-'
character. (mhrivnak@redhat.com)
- 950740 - add support {?dist} in the Release: in .spec files.
(jortel@redhat.com)
* Mon Mar 04 2013 Jeff Ortel <jortel@redhat.com> 2.1.0-1
- 902514 - Removed the <VirtualHost> block, which apache was ignoring anyway,
in favor of using the platform's authoritative one. (mhrivnak@redhat.com)
- 887372 - importer now gracefully fails when a feed URL is not present in the
config (mhrivnak@redhat.com)
- 861211 - Adding a "--queries" option to repo create and update that takes a
CSV list of query terms, and deprecating the previous "--query" option.
(mhrivnak@redhat.com)
- 887959 - renaming pulp_puppet.conf to puppet.conf (skarmark@redhat.com)
- 887959 - renaming pulp_puppet.conf to puppet.conf (skarmark@redhat.com)
- 887959 - renaming pulp_puppet.conf file to puppet.conf so that it get's
loaded after pulp_rpm.conf (skarmark@redhat.com)
- 887959 - Removing NameVirtualHost entries from plugin httpd conf files and
adding it only at one place in main pulp.conf (skarmark@redhat.com)
- 886689 - puppet distributor output from the CLI now includes a relative path
to the published content. (mhrivnak@redhat.com)
- 882414 - Using an exception from the pulp server that allows a helpful error
message to be returned to clients. (mhrivnak@redhat.com)
- 882404 - now validating file name format when uploading modules.
(mhrivnak@redhat.com)
- 882427 - No longer displaying traceback to user when a sync fails to import a
module (mhrivnak@redhat.com)
- 882419 - adding publish commands to the CLI (mhrivnak@redhat.com)
- 882421 - added unit remove command. (mhrivnak@redhat.com)
- 866491 - Added translation from server-side property name to client-side flag
(jason.dobies@redhat.com)
- 862290 - Added support for non-Puppet repo listing (jason.dobies@redhat.com)
- 880229 - I think we need to create these as well. (jason.dobies@redhat.com)
- 880229 - Apache needs to be able to write to the publish directories
(jason.dobies@redhat.com)
* Thu Dec 20 2012 Jeff Ortel <jortel@redhat.com> 2.0.6-1
- 887959 - renaming pulp_puppet.conf to puppet.conf (skarmark@redhat.com)
- 887959 - renaming pulp_puppet.conf to puppet.conf (skarmark@redhat.com)
- 887959 - renaming pulp_puppet.conf file to puppet.conf so that it get's
loaded after pulp_rpm.conf (skarmark@redhat.com)
- 887959 - Removing NameVirtualHost entries from plugin httpd conf files and
adding it only at one place in main pulp.conf (skarmark@redhat.com)
- 886689 - puppet distributor output from the CLI now includes a relative path
to the published content. (mhrivnak@redhat.com)
- 882414 - Using an exception from the pulp server that allows a helpful error
message to be returned to clients. (mhrivnak@redhat.com)
- 882404 - now validating file name format when uploading modules.
(mhrivnak@redhat.com)
- 882427 - No longer displaying traceback to user when a sync fails to import a
module (mhrivnak@redhat.com)
- 882419 - adding publish commands to the CLI (mhrivnak@redhat.com)
- 882421 - added unit remove command. (mhrivnak@redhat.com)
- 866491 - Added translation from server-side property name to client-side flag
(jason.dobies@redhat.com)
- 862290 - Added support for non-Puppet repo listing (jason.dobies@redhat.com)
- 880229 - I think we need to create these as well. (jason.dobies@redhat.com)
- 880229 - Apache needs to be able to write to the publish directories
(jason.dobies@redhat.com)