import stratisd-1.0.3-1.el8

This commit is contained in:
CentOS Sources 2019-05-07 05:26:34 -04:00 committed by Andrew Lukoshko
commit 203f53f5d7
3 changed files with 139 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
SOURCES/stratisd-1.0.3-vendor.tar.xz
SOURCES/stratisd-1.0.3.tar.gz

2
.stratisd.metadata Normal file
View File

@ -0,0 +1,2 @@
7846cdea3917c5a2c82a2b7a71be10e70cd4de8b SOURCES/stratisd-1.0.3-vendor.tar.xz
2690bdd37bf1588428a9f1506749ed0af27c5a88 SOURCES/stratisd-1.0.3.tar.gz

135
SPECS/stratisd.spec Normal file
View File

@ -0,0 +1,135 @@
%bcond_without check
# Not interested in packaging lib
# stratisd is supposed to be daemon used through dbus
%global __cargo_is_lib() false
Name: stratisd
Version: 1.0.3
Release: 1%{?dist}
Summary: Daemon that manages block devices to create filesystems
License: MPLv2.0
URL: https://github.com/stratis-storage/stratisd
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: %{name}-1.0.3-vendor.tar.xz
ExclusiveArch: %{rust_arches}
BuildRequires: rust-toolset
BuildRequires: systemd-devel
BuildRequires: dbus-devel
BuildRequires: %{_bindir}/a2x
Requires: xfsprogs
Requires: device-mapper-persistent-data
Requires: systemd-libs
Requires: dbus-libs
%description
%{summary}.
%prep
%setup -q -n %{name}-%{version}
# Source1 is vendored dependencies
%cargo_prep -V 1
# Not interested in clippy
sed -i -e "/^clippy/d" Cargo.toml
%build
%cargo_build
a2x -f manpage docs/stratisd.txt
%install
%cargo_install
%{__install} -Dpm0644 -t %{buildroot}%{_datadir}/dbus-1/system.d stratisd.conf
# Daemon should be really private
mkdir -p %{buildroot}%{_libexecdir}
mv %{buildroot}%{_bindir}/stratisd %{buildroot}%{_libexecdir}/stratisd
%{__install} -Dpm0644 -t %{buildroot}%{_mandir}/man8 docs/stratisd.8
%{__install} -Dpm0644 -t %{buildroot}%{_unitdir} stratisd.service
%if %{with check}
%check
%cargo_test -- --skip real_ --skip loop_ --skip travis_
%endif
%post
%systemd_post stratisd.service
%preun
%systemd_preun stratisd.service
%postun
%systemd_postun_with_restart stratisd.service
%files
%license LICENSE
%doc README.md
%{_libexecdir}/stratisd
%dir %{_datadir}/dbus-1
%{_datadir}/dbus-1/system.d/stratisd.conf
%{_mandir}/man8/stratisd.8*
%{_unitdir}/stratisd.service
%changelog
* Wed Jan 9 2019 Andy Grover <agrover@redhat.com> - 1.0.3-1
- Update to 1.0.3
* Tue Dec 11 2018 Andy Grover <agrover@redhat.com> - 1.0.2-1
- Update to 1.0.2
* Tue Nov 6 2018 Andy Grover <agrover@redhat.com> - 1.0.1-1
- Update to 1.0.1
* Mon Oct 8 2018 Andy Grover <agrover@redhat.com> - 1.0.0-2
- Fix for non-Dbus activation
* Tue Oct 2 2018 Andy Grover <agrover@redhat.com> - 1.0.0-1
- Update to 1.0.0
* Wed Aug 08 2018 Josh Stone <jistone@redhat.com> - 0.5.5-2
- Rebuild with rust-toolset-1.26
* Thu Aug 2 2018 Andy Grover <agrover@redhat.com> - 0.5.5-1
- Update to 0.5.5
* Fri Jul 13 2018 Andy Grover <agrover@redhat.com> - 0.5.4-1
- Update to 0.5.4
* Thu May 24 2018 Andy Grover <agrover@redhat.com> - 0.5.2-1
- Initial packaging for RHEL 8
- Update to 0.5.2
* Tue Apr 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.1-1
- Update to 0.5.1
* Tue Mar 13 2018 Andy Grover <agrover@redhat.com> - 0.5.0-2
- Add stratisd manpage
* Thu Mar 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.0-1
- Update to 0.5.0
* Thu Feb 15 2018 Andy Grover <agrover@redhat.com> - 0.1.5-2
- Require packages that contain binaries that we exec: xfsprogs and
device-mapper-persistent-data
* Sun Feb 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.5-1
- Update to 0.1.5
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.4-3
- Rebuild for rust-packaging v5
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.4-2
- Move binary under %%{_libexecdir}
- Add dbus service (so it is activatable)
- Fix rand's version bump
* Sun Jan 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.4-1
- Initial package