%global git0 https://github.com/projectatomic/%{name}
%global csslibdir %{_datadir}/%{name}
%global commit0 5eaf76cf233bf43dea5385f3dfcad7ec72cf05d9
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
Name: container-storage-setup
Version: 0.11.0
Release: 2.git%{shortcommit0}%{?dist}
Summary: A simple service to setup container storage devices
License: ASL 2.0
URL: %{git0}
Source0: %{git0}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz
BuildArch: noarch
BuildRequires: git
Requires: lvm2
Requires: xfsprogs
Requires: parted
%description
This is a simple service to configure Container Runtimes to use an LVM-managed
thin pool. It also supports auto-growing both the pool as well
as the root logical volume and partition table.
%prep
%autosetup -Sgit -n %{name}-%{commit0}
%build
%install
install -dp %{buildroot}%{_datadir}/%{name}
install -dp %{buildroot}%{_mandir}/man1
install -D -p -m 755 %{name}.sh %{buildroot}%{_bindir}/%{name}
install -p -m 644 %{name}.conf %{buildroot}%{csslibdir}/%{name}
install -p -m 755 libcss.sh %{buildroot}/%{csslibdir}
install -p -m 755 css-child-read-write.sh %{buildroot}/%{csslibdir}/css-child-read-write
install -p -m 644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
#%{__make} install-core DESTDIR=%{buildroot}
%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%dir %{csslibdir}
%{_mandir}/man1/%{name}.1*
%{csslibdir}/%{name}
%{csslibdir}/css-child-read-write
%{csslibdir}/libcss.sh
%changelog
* Thu Jun 21 2018 Frantisek Kluknavsky <fkluknav@redhat.com> - 0.11.0-2.git5eaf76c
- rebase to 0.11.0 commit 5eaf76cf233bf43dea5385f3dfcad7ec72cf05d9
- Resolves: #1500360
* Thu May 03 2018 Lokesh Mandvekar <lsm5@redhat.com> - 0.10.0-1.gitdf0dcd5
- Resolves: #1572266
- bump to v0.10.0
- built df0dcd5
* Mon Nov 13 2017 Lokesh Mandvekar <lsm5@redhat.com> - 0.9.0-1.rhel75.gite0997c3
- Resolves: #1475625
- bump to v0.9.0
- built commit e0997c3
- include 'rhel75' string in release field to differentiate from rhel 7.4
* Thu Oct 26 2017 Frantisek Kluknavsky <fkluknav@redhat.com> - 0.8.0-2.git1d27ecf
- Requires: parted
- Resolves: #1416928
* Wed Oct 25 2017 Frantisek Kluknavsky <fkluknav@redhat.com> - 0.8.0-1.git1d27ecf
- built commit 1d27ecf705a964b4d96ec815120359eeec1fea50
* Tue Jun 13 2017 Lokesh Mandvekar <lsm5@redhat.com> - 0.3.0-1.git9b77bcb
- built commit 9b77bcb
* Thu May 04 2017 Lokesh Mandvekar <lsm5@redhat.com> - 0.3.0-1.git8276a1e
- use correct version tag, no change in source
* Wed May 03 2017 Lokesh Mandvekar <lsm5@redhat.com> - 0.2.0-3.git8276a1e
- add shortcommit to release tag
* Wed May 03 2017 Lokesh Mandvekar <lsm5@redhat.com> - 0.2.0-2
- built commit 8276a1e
* Fri Mar 03 2017 Dan Walsh <dwalsh@redhat.com> - 0.2.0-1
- Add License
- Add compatibility mode flag to only do docker specific stuff if INPUTFILE
not specified.
- Minor Bug fixes for non docker use cases
* Thu Mar 02 2017 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.1.0-2
- Resolves: #1427295 - initial package on rawhide
- misc macro changes
- preserve timestamps
* Mon Feb 27 2017 Dan Walsh <dwalsh@redhat.com> - 0.1.0-1
- Initial version of container-storage-setup
- Building to push through the fedora release cycle
* Thu Oct 16 2014 Andy Grimm <agrimm@redhat.com> - 0.0.1-2
- Fix rpm deps and scripts
* Thu Oct 16 2014 Andy Grimm <agrimm@redhat.com> - 0.0.1-1
- Initial build