forked from pulp/pulp_docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpulp-docker.spec
188 lines (145 loc) · 5.88 KB
/
pulp-docker.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
%{!?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))")}
Name: pulp-docker
Version: 1.2.0
Release: 0.1.alpha%{?dist}
Summary: Support for Docker layers in the Pulp platform
Group: Development/Languages
License: GPLv2
URL: http://pulpproject.org
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 and admin client extensions to
provide docker support
%prep
%setup -q
%build
pushd common
%{__python} setup.py build
popd
pushd extensions_admin
%{__python} setup.py build
popd
pushd plugins
%{__python} setup.py build
popd
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_sysconfdir}/pulp/
pushd common
%{__python} setup.py install --skip-build --root %{buildroot}
popd
pushd extensions_admin
%{__python} setup.py install --skip-build --root %{buildroot}
popd
pushd plugins
%{__python} setup.py install --skip-build --root %{buildroot}
popd
mkdir -p %{buildroot}/%{_var}/lib/pulp/published/docker/app/
mkdir -p %{buildroot}/%{_var}/lib/pulp/published/docker/export/
mkdir -p %{buildroot}/%{_var}/lib/pulp/published/docker/web/
cp -R plugins/etc/httpd %{buildroot}/%{_sysconfdir}
mkdir -p %{buildroot}/%{_bindir}
# Remove tests
rm -rf %{buildroot}/%{python_sitelib}/test
%clean
rm -rf %{buildroot}
# ---- Docker Common -----------------------------------------------------------
%package -n python-pulp-docker-common
Summary: Pulp Docker support common library
Group: Development/Languages
Requires: python-pulp-common >= 2.8.0
Requires: python-setuptools
%description -n python-pulp-docker-common
Common libraries for python-pulp-docker
%files -n python-pulp-docker-common
%defattr(-,root,root,-)
%dir %{python_sitelib}/pulp_docker
%{python_sitelib}/pulp_docker/__init__.py*
%{python_sitelib}/pulp_docker/common/
%dir %{python_sitelib}/pulp_docker/extensions
%{python_sitelib}/pulp_docker/extensions/__init__.py*
%{python_sitelib}/pulp_docker_common*.egg-info
%doc COPYRIGHT LICENSE AUTHORS
# ---- Plugins -----------------------------------------------------------------
%package plugins
Summary: Pulp Docker plugins
Group: Development/Languages
Requires: python-pulp-common >= 2.8.0
Requires: python-pulp-docker-common = %{version}
Requires: pulp-server >= 2.8.0
Requires: python-setuptools
Requires: python-nectar >= 1.3.0
%description plugins
Provides a collection of platform plugins that extend the Pulp platform
to provide Docker specific support
%files plugins
%defattr(-,root,root,-)
%{python_sitelib}/pulp_docker/plugins/
%config(noreplace) %{_sysconfdir}/httpd/conf.d/pulp_docker.conf
%{python_sitelib}/pulp_docker_plugins*.egg-info
%defattr(-,apache,apache,-)
%{_var}/lib/pulp/published/docker/
%doc COPYRIGHT LICENSE AUTHORS
# ---- Admin Extensions --------------------------------------------------------
%package admin-extensions
Summary: The Pulp Docker admin client extensions
Group: Development/Languages
Requires: python-pulp-common >= 2.8.0
Requires: python-pulp-docker-common = %{version}
Requires: pulp-admin-client >= 2.8.0
Requires: python-setuptools
%description admin-extensions
pulp-admin extensions for docker support
%files admin-extensions
%defattr(-,root,root,-)
%{python_sitelib}/pulp_docker/extensions/admin/
%{python_sitelib}/pulp_docker_extensions_admin*.egg-info
%doc COPYRIGHT LICENSE AUTHORS
%changelog
* Fri May 29 2015 Barnaby Court <[email protected]> 1.1.0
- Remove the json file definition for the docker unit types
* Fri Jan 16 2015 Chris Duryee <[email protected]> 0.2.2-1
- 1148556 - Validate repo-registry-id to ensure compatibility with Docker
- Merge pull request #50 from beav/specfix ([email protected])
- Merge pull request #49 from barnabycourt/1159828 ([email protected])
- pulp-docker requires Pulp 2.5 or later ([email protected])
* Fri Nov 21 2014 Chris Duryee <[email protected]> 0.2.1-1
- bump release to 1 ([email protected])
- 1160272 - Adjusting configuration files' path for docker plugins.
- Add intersphinx and extlinks support to pulp_docker ([email protected])
- 1150592 - set default auto-publish value ([email protected])
- 1150605 - fix error in docker recipe ([email protected])
- Merge branch 'merge_docs' ([email protected])
- Merge the two Sphinx projects together. ([email protected])
- Merge branch 'dev_install' ([email protected])
- pulp-dev.py installs the packages. ([email protected])
- Merge pull request #41 from pulp/mhrivnak-install-docs ([email protected])
- requiring python-nectar ([email protected])
- changing installation doc to use RPMs instead of git ([email protected])
- Merge branch 'master' of github.com:pulp/pulp_docker ([email protected])
- 1103232 - Document importer settings. ([email protected])
- Update for PR comments ([email protected])
- Clean up docs & fix export config name ([email protected])
* Thu Oct 02 2014 Chris Duryee <[email protected]> 0.2.1-0.2.beta
- making the default size None when a layer's metadata lacks the Size attribute
- adding several publish directories that need to be in the package
* Thu Sep 11 2014 Chris Duryee <[email protected]> 0.2.1-0.1.alpha
- declare correct package version in spec file ([email protected])
* Tue Sep 09 2014 Chris Duryee <[email protected]> 0.2.0-1
bump to 0.2.0
-
* Mon Sep 08 2014 Chris Duryee <[email protected]> 0.1.2-1
- adding cancellation support ([email protected])
- adding sync ([email protected])
* Mon Jul 07 2014 Chris Duryee <[email protected]> 0.1.1-1
- new package built with tito