Blame SPECS/docker-registry.spec

da6803
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
da6803
c2b4b9
%global with_python3 0
c2b4b9
%global debug_package %{nil}
c2b4b9
c2b4b9
%if 0%{?rhel} && 0%{?rhel} <= 6
c2b4b9
%{!?__python2: %global __python2 %{__python}}
c2b4b9
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
c2b4b9
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
c2b4b9
%endif
c2b4b9
c2b4b9
Name: docker-registry
c2b4b9
Version: 0.9.1
c2b4b9
Release: 7%{?dist}
c2b4b9
Summary: Registry server for Docker
c2b4b9
License: ASL 2.0
c2b4b9
URL: https://github.com/docker/%{name}
c2b4b9
Source0: https://github.com/docker/%{name}/archive/%{version}.tar.gz
c2b4b9
Source1: %{name}.service
c2b4b9
Source2: %{name}.sysconfig
c2b4b9
Patch0: 0001-remove-python-redis-requirement.patch
c2b4b9
BuildRequires: python2-devel
c2b4b9
BuildRequires: pkgconfig(systemd)
c2b4b9
Requires(post): systemd
c2b4b9
Requires(preun): systemd
c2b4b9
Requires(postun): systemd
c2b4b9
Requires: m2crypto
c2b4b9
Requires: PyYAML
c2b4b9
Requires: python-requests
c2b4b9
Requires: python-gunicorn
c2b4b9
Requires: python-gevent
c2b4b9
Requires: python-blinker
c2b4b9
Requires: python-backports >= 1.0-8
c2b4b9
Requires: python-backports-lzma >= 0.0.2-8
c2b4b9
Requires: python-flask
c2b4b9
Requires: python-sqlalchemy >= 0.9.8-1
da6803
da6803
%description
da6803
Registry server for Docker (hosting/delivering of repositories and images).
da6803
da6803
%prep
c2b4b9
%setup -qn %{name}-%{version}
d01e70
%patch0 -p1
da6803
c2b4b9
%build
da6803
# Remove the golang implementation
da6803
# It's not the main one (yet?)
da6803
rm -rf contrib/golang_impl
da6803
da6803
%install
da6803
install -d %{buildroot}%{_bindir}
da6803
install -d %{buildroot}%{_sysconfdir}/sysconfig
da6803
install -d %{buildroot}%{python_sitelib}/%{name}
d01e70
install -d %{buildroot}%{python_sitelib}/docker_registry
da6803
da6803
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
da6803
da6803
install -d %{buildroot}%{_unitdir}
da6803
install -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
da6803
da6803
# Make sure we set proper WorkingDir in the systemd service file
da6803
sed -i "s|#WORKDIR#|%{python_sitelib}/%{name}|" %{buildroot}%{_unitdir}/%{name}.service
da6803
d01e70
cp -pr docker_registry %{buildroot}%{python_sitelib}/%{name}
d01e70
cp -pr depends/docker-registry-core/docker_registry %{buildroot}%{python_sitelib}/
da6803
cp config/config_sample.yml %{buildroot}%{_sysconfdir}/%{name}.yml
da6803
d01e70
# set storage path to /var/lib/docker-registry
d01e70
sed -i 's/tmp\/registry/var\/lib\/docker-registry/g' \
d01e70
%{buildroot}%{_sysconfdir}/%{name}.yml
61bb89
da6803
%post
da6803
%systemd_post %{name}.service
da6803
da6803
%preun
da6803
%systemd_preun %{name}.service
da6803
da6803
%postun
da6803
%systemd_postun_with_restart %{name}.service
da6803
da6803
%files
61bb89
%doc LICENSE README.md
d01e70
%{python_sitelib}/%{name}
d01e70
%{python_sitelib}/docker_registry
da6803
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
da6803
%config(noreplace) %{_sysconfdir}/%{name}.yml
da6803
%{_unitdir}/%{name}.service
da6803
da6803
%changelog
c2b4b9
* Wed Jul 08 2015 Lokesh Mandvekar <lsm5@redhat.com> - 0.9.1-7
c2b4b9
- disable empty debuginfo package
c2b4b9
c2b4b9
* Wed Jul 08 2015 Lokesh Mandvekar <lsm5@redhat.com> - 0.9.1-6
c2b4b9
- remove python-sqlalchemy subpackage, use it from extras repo
c2b4b9
c2b4b9
* Fri May 01 2015 Lokesh Mandvekar <lsm5@redhat.com> - 0.9.1-5
c2b4b9
- Resolves: rhbz#1217628
c2b4b9
- include python-sqlalchemy as a subpackage
c2b4b9
d01e70
* Mon Mar 09 2015 Lokesh Mandvekar <lsm5@redhat.com> - 0.9.1-4
d01e70
- Resolves: rhbz#1171295 - update to 0.9.1
d01e70
- Resolves: rhbz#1187101 - set storage path to /var/lib/docker-registry
d01e70
to ensure the same storage path is looked up after update
d01e70
- Don't install or own /var/lib/docker-registry
d01e70
61bb89
* Thu Jan 29 2015 Lokesh Mandvekar <lsm5@redhat.com> - 0.6.8-13
61bb89
- use correct min NVR of python-backports
61bb89
- preserver timestamps of copied files
61bb89
61bb89
* Wed Dec 17 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.6.8-12
61bb89
- No longer noarch because python-backports isn't noarch anymore
61bb89
- remove unused redis python binding patch
61bb89
61bb89
* Wed Dec 17 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.6.8-11
61bb89
- Resolves: rhbz#1175305 - should require python-backports-lzma >= 0.0.2-8
61bb89
- use systemd and not systemd-units
61bb89
61bb89
* Fri Nov 21 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.6.8-10
61bb89
- Resolves: rhbz#1158538 - use python-backports instead of
61bb89
python-backports-lzma
61bb89
- remove systemd/sysvinit conditionals, only systemd used in RHEL7
61bb89
- BR: pkgconfig(systemd)
61bb89
61bb89
* Fri Oct 24 2014 Tomas Hrcka <thrcka@redhat.com> - 0.6.8-9
61bb89
- Set standalone:true in docker_registry.yml
61bb89
da6803
* Tue May 06 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.6.8-8
da6803
- import lzma if no backports.lzma
da6803
da6803
* Fri May 02 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.6.8-7
da6803
- do not complain if redis absent
da6803
da6803
* Wed Apr 30 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.6.8-6
da6803
- import json if simplejson fails
da6803
da6803
* Wed Apr 30 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.6.8-5
da6803
- Add python-flask to requires
da6803
da6803
* Tue Apr 29 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.6.8-4
da6803
- remove python-simplejson runtime requirement
da6803
da6803
* Tue Apr 29 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.6.8-3
da6803
- remove redis requirement from unitfile
da6803
da6803
* Wed Apr 23 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.6.8-2
da6803
- M2Crypto branch used: https://github.com/lsm5/docker-registry/tree/m2crypto
da6803
- Built for RHEL7
da6803
da6803
* Fri Apr 18 2014 Marek Goldmann <mgoldman@redhat.com> - 0.6.8-1
da6803
- Upstream release 0.6.8
da6803
da6803
* Mon Apr 07 2014 Marek Goldmann <mgoldman@redhat.com> - 0.6.6-2
da6803
- docker-registry settings in /etc/sysconfig/docker-registry not honored,
da6803
  RHBZ#1072523
da6803
da6803
* Thu Mar 20 2014 Marek Goldmann <mgoldman@redhat.com> - 0.6.6-1
da6803
- Upstream release 0.6.6
da6803
- docker-registry cannot import module jinja2, RHBZ#1077630
da6803
da6803
* Mon Feb 17 2014 Marek Goldmann <mgoldman@redhat.com> - 0.6.5-1
da6803
- Upstream release 0.6.5
da6803
da6803
* Tue Jan 07 2014 Marek Goldmann <mgoldman@redhat.com> - 0.6.3-1
da6803
- Upstream release 0.6.3
da6803
- Added python-backports-lzma and python-rsa to R
da6803
- Removed configuration file path patch, it's in upstream
da6803
da6803
* Fri Dec 06 2013 Marek Goldmann <mgoldman@redhat.com> - 0.6.0-4
da6803
- Docker-registry does not currently support moving the config file, RHBZ#1038874
da6803
da6803
* Mon Dec 02 2013 Marek Goldmann <mgoldman@redhat.com> - 0.6.0-3
da6803
- EPEL support
da6803
- Comments in the sysconfig/docker-registry file
da6803
da6803
* Wed Nov 27 2013 Marek Goldmann <mgoldman@redhat.com> - 0.6.0-2
da6803
- Added license and readme
da6803
da6803
* Wed Nov 20 2013 Marek Goldmann <mgoldman@redhat.com> - 0.6.0-1
da6803
- Initial packaging
da6803