forked from pulp/crane
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpython-crane.spec
120 lines (91 loc) · 4.21 KB
/
python-crane.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
%if 0%{?rhel} && 0%{?rhel} <= 6
%{!?__python2: %global __python2 /usr/bin/python2}
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
Name: python-crane
Version: 1.2.0
Release: 1%{?dist}
Summary: docker-registry-like API with redirection, as a wsgi app
License: GPLv2
URL: https://github.com/pulp/crane
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
Requires: python-flask >= 0.9
Requires: python-setuptools
Requires: python-rhsm
Requires(post): policycoreutils-python
Requires(postun): policycoreutils-python
%description
This wsgi application exposes a read-only API similar to docker-registry, which
docker can use for "docker pull" operations. Requests for actual image files
are responded to with 302 redirects to a URL formed with per-repository
settings.
%prep
%setup -q -n %{name}-%{version}
%build
%{__python2} setup.py build
%install
%{__python2} setup.py install --skip-build --root %{buildroot}
mkdir -p %{buildroot}/%{_usr}/share/crane/
mkdir -p %{buildroot}/%{_var}/lib/crane/metadata/
cp deployment/crane.wsgi %{buildroot}/%{_usr}/share/crane/
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
cp deployment/apache24.conf %{buildroot}/%{_usr}/share/crane/apache.conf
cp deployment/crane.wsgi %{buildroot}/%{_usr}/share/crane/
%else
cp deployment/apache22.conf %{buildroot}/%{_usr}/share/crane/apache.conf
cp deployment/crane_el6.wsgi %{buildroot}/%{_usr}/share/crane/crane.wsgi
%endif
rm -rf %{buildroot}%{python2_sitelib}/tests
%files
%defattr(-,root,root,-)
%{python2_sitelib}/crane
%{python2_sitelib}/crane*.egg-info
%{_usr}/share/crane/
%dir %{_var}/lib/crane/
%dir %{_var}/lib/crane/metadata/
%doc AUTHORS COPYRIGHT LICENSE README.rst
%changelog
* Fri Nov 21 2014 Chris Duryee <[email protected]> 0.2.2-1
- Bump release to 1 ([email protected])
* Wed Oct 22 2014 Chris Duryee <[email protected]> 0.2.2-0.3.beta
- the /v1/repositories/<repo_id>/images call now handles the default "library"
namespace ([email protected])
- review improvements ([email protected])
- Adding a basic "what is crane?" section to the README ([email protected])
* Mon Sep 15 2014 Randy Barlow <[email protected]> 0.2.2-0.2.beta
- Do not run unit tests during RPM build ([email protected])
* Mon Sep 15 2014 Randy Barlow <[email protected]> 0.2.2-0.1.beta
- updating pulp/cranebuilder for centos7 ([email protected])
- updating the Dockerfile to use centos7 and add the python-rhsm dependency
* Mon Jul 28 2014 Michael Hrivnak <[email protected]> 0.2.1-1.beta
- Add python-rhsm to spec ([email protected])
- Move indirect-requirements needed for the travis environment to a separate
requirements.txt file ([email protected])
* Fri Jul 25 2014 Michael Hrivnak <[email protected]> 0.2.0-1.beta
- Monitor the data directory for changes ([email protected])
- ensuring that setuptools excludes tests from a distribution package
- simplifying the config loading so that it uses a default config file
- Implementing the search API to use a Google Search Appliance backend.
- adding Dockerfile for cranebuilder ([email protected])
- Add Entitlement support for Crane ([email protected])
- Added Dockerfile for crane ([email protected])
* Fri May 02 2014 Michael Hrivnak <[email protected]> 0.1.0-0.4.beta
- Incrementing the release number. ([email protected])
- adding selinux fcontext changes to spec file ([email protected])
- Adding comments about how to deploy crane. ([email protected])
* Thu May 01 2014 Michael Hrivnak <[email protected]> 0.1.0-0.3.alpha
- adding metadata dir to rpm spec file ([email protected])
* Wed Apr 30 2014 Michael Hrivnak <[email protected]> 0.1.0-0.2.alpha
- adding wsgi file specifically for el6 to handle python-jinja2-26 weirdness
* Wed Apr 30 2014 Michael Hrivnak <[email protected]> 0.1.0-0.1.alpha
- new package built with tito