|
|
3f9ad0 |
Name: docker-storage-setup
|
|
|
3f9ad0 |
Version: 0.0.4
|
|
|
3f9ad0 |
Release: 2%{?dist}
|
|
|
3f9ad0 |
Summary: A simple service to setup docker storage devices
|
|
|
3f9ad0 |
|
|
|
3f9ad0 |
License: ASL 2.0
|
|
|
3f9ad0 |
URL: http://github.com/projectatomic/docker-storage-setup/
|
|
|
3f9ad0 |
Source0: https://github.com/projectatomic/docker-storage-setup/archive/%{name}-%{version}.tar.gz
|
|
|
3f9ad0 |
|
|
|
3f9ad0 |
BuildArch: noarch
|
|
|
3f9ad0 |
BuildRequires: pkgconfig(systemd)
|
|
|
3f9ad0 |
|
|
|
3f9ad0 |
Requires: lvm2
|
|
|
3f9ad0 |
Requires: cloud-utils-growpart
|
|
|
3f9ad0 |
Requires: systemd-units
|
|
|
3f9ad0 |
# systemd_requires macro doesn't work here because the srpm build fails?
|
|
|
3f9ad0 |
Requires(post): systemd
|
|
|
3f9ad0 |
Requires(preun): systemd
|
|
|
3f9ad0 |
Requires(postun): systemd
|
|
|
3f9ad0 |
|
|
|
3f9ad0 |
%description
|
|
|
3f9ad0 |
This is a simple service to divide available storage between
|
|
|
3f9ad0 |
the OS and docker using LVM devices.
|
|
|
3f9ad0 |
|
|
|
3f9ad0 |
%prep
|
|
|
3f9ad0 |
%setup
|
|
|
3f9ad0 |
|
|
|
3f9ad0 |
%build
|
|
|
3f9ad0 |
|
|
|
3f9ad0 |
%install
|
|
|
3f9ad0 |
install -d %{buildroot}%{_bindir}
|
|
|
3f9ad0 |
install -p -m 755 docker-storage-setup.sh %{buildroot}%{_bindir}/docker-storage-setup
|
|
|
3f9ad0 |
install -d %{buildroot}%{_unitdir}
|
|
|
3f9ad0 |
install -p -m 644 docker-storage-setup.service %{buildroot}%{_unitdir}
|
|
|
3f9ad0 |
# install -d %{buildroot}%{_sysconfdir}/sysconfig/
|
|
|
3f9ad0 |
# install -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/docker-storage-setup
|
|
|
3f9ad0 |
|
|
|
3f9ad0 |
%post
|
|
|
3f9ad0 |
%systemd_post %{name}.service
|
|
|
3f9ad0 |
|
|
|
3f9ad0 |
%preun
|
|
|
3f9ad0 |
%systemd_preun %{name}.service
|
|
|
3f9ad0 |
|
|
|
3f9ad0 |
%postun
|
|
|
3f9ad0 |
%systemd_postun %{name}.service
|
|
|
3f9ad0 |
|
|
|
3f9ad0 |
%files
|
|
|
3f9ad0 |
%{_unitdir}/docker-storage-setup.service
|
|
|
3f9ad0 |
%{_bindir}/docker-storage-setup
|
|
|
3f9ad0 |
# %{_sysconfdir}/sysconfig/docker-storage-setup
|
|
|
3f9ad0 |
|
|
|
3f9ad0 |
%changelog
|
|
|
3f9ad0 |
* Tue Feb 17 2015 Colin Walters <walters@redhat.com> - 0.0.4-2
|
|
|
3f9ad0 |
- New upstream version; uses LVM-managed thin pools by default
|
|
|
3f9ad0 |
Resolves: rhbz#1193610
|
|
|
3f9ad0 |
|
|
|
3f9ad0 |
* Fri Dec 19 2014 Colin Walters <walters@redhat.com> - 0.0.3-2
|
|
|
3f9ad0 |
- Rebuild for 7.1
|
|
|
3f9ad0 |
|
|
|
3f9ad0 |
* Tue Oct 28 2014 Andy Grimm <agrimm@redhat.com> - 0.0.3-1
|
|
|
3f9ad0 |
- Resolves: rhbz#1156656
|
|
|
3f9ad0 |
|
|
|
3f9ad0 |
* Thu Oct 23 2014 Andy Grimm <agrimm@redhat.com> - 0.0.2-1
|
|
|
3f9ad0 |
- version bump, fix default use case
|
|
|
3f9ad0 |
|
|
|
3f9ad0 |
* Wed Oct 22 2014 Colin Walters <walters@redhat.com> - 0.0.1-4
|
|
|
3f9ad0 |
- Strip trailing whitespace
|
|
|
3f9ad0 |
|
|
|
3f9ad0 |
* Wed Oct 22 2014 Colin Walters <walters@redhat.com> - 0.0.1-3
|
|
|
3f9ad0 |
- Fix service ordering
|
|
|
3f9ad0 |
|
|
|
3f9ad0 |
* Thu Oct 16 2014 Andy Grimm <agrimm@redhat.com> - 0.0.1-1
|
|
|
3f9ad0 |
- Fix rpm scripts
|
|
|
3f9ad0 |
|
|
|
3f9ad0 |
* Thu Oct 16 2014 Andy Grimm <agrimm@redhat.com> - 0.0.1-1
|
|
|
3f9ad0 |
- Initial build
|
|
|
3f9ad0 |
|