%global git0 https://github.com/projectatomic/%{name}
%global csslibdir %{_datadir}/%{name}
%global commit0 1d27ecf705a964b4d96ec815120359eeec1fea50
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
Name: container-storage-setup
Version: 0.8.0
Release: 3.git%{shortcommit0}%{?dist}
Summary: A simple service to setup container storage devices
License: ASL 2.0
URL: http://github.com/projectatomic/%{name}/
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
* Tue Oct 31 2017 Frantisek Kluknavsky <fkluknav@redhat.com> - 0.8.0-3.git1d27ecf
- rebased to 1d27ecf705a964b4d96ec815120359eeec1fea50
* Thu Oct 26 2017 Frantisek Kluknavsky <fkluknav@redhat.com> - 0.7.0-2.git4ca59c5
- Requires: parted
- Resolves: #1416928
* Wed Sep 20 2017 Lokesh Mandvekar <lsm5@redhat.com> - 0.7.0-1.git4ca59c5
- bump to v0.7.0
- built commit 4ca59c5
* Tue Aug 08 2017 Lokesh Mandvekar <lsm5@redhat.com> - 0.6.0-1.gite67c964
- rebase to v0.6.0
* Fri Jun 30 2017 Frantisek Kluknavsky <fkluknav@redhat.com> - 0.3.0-3.git927974f
- rebase, #1466508
* 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