From 203f53f5d7375af1f90010c0f1145d35760e5b0a Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 7 May 2019 05:26:34 -0400 Subject: [PATCH] import stratisd-1.0.3-1.el8 --- .gitignore | 2 + .stratisd.metadata | 2 + SPECS/stratisd.spec | 135 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 139 insertions(+) create mode 100644 .gitignore create mode 100644 .stratisd.metadata create mode 100644 SPECS/stratisd.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6659bfa --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/stratisd-1.0.3-vendor.tar.xz +SOURCES/stratisd-1.0.3.tar.gz diff --git a/.stratisd.metadata b/.stratisd.metadata new file mode 100644 index 0000000..700c643 --- /dev/null +++ b/.stratisd.metadata @@ -0,0 +1,2 @@ +7846cdea3917c5a2c82a2b7a71be10e70cd4de8b SOURCES/stratisd-1.0.3-vendor.tar.xz +2690bdd37bf1588428a9f1506749ed0af27c5a88 SOURCES/stratisd-1.0.3.tar.gz diff --git a/SPECS/stratisd.spec b/SPECS/stratisd.spec new file mode 100644 index 0000000..e663fce --- /dev/null +++ b/SPECS/stratisd.spec @@ -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 - 1.0.3-1 +- Update to 1.0.3 + +* Tue Dec 11 2018 Andy Grover - 1.0.2-1 +- Update to 1.0.2 + +* Tue Nov 6 2018 Andy Grover - 1.0.1-1 +- Update to 1.0.1 + +* Mon Oct 8 2018 Andy Grover - 1.0.0-2 +- Fix for non-Dbus activation + +* Tue Oct 2 2018 Andy Grover - 1.0.0-1 +- Update to 1.0.0 + +* Wed Aug 08 2018 Josh Stone - 0.5.5-2 +- Rebuild with rust-toolset-1.26 + +* Thu Aug 2 2018 Andy Grover - 0.5.5-1 +- Update to 0.5.5 + +* Fri Jul 13 2018 Andy Grover - 0.5.4-1 +- Update to 0.5.4 + +* Thu May 24 2018 Andy Grover - 0.5.2-1 +- Initial packaging for RHEL 8 +- Update to 0.5.2 + +* Tue Apr 03 2018 Igor Gnatenko - 0.5.1-1 +- Update to 0.5.1 + +* Tue Mar 13 2018 Andy Grover - 0.5.0-2 +- Add stratisd manpage + +* Thu Mar 08 2018 Igor Gnatenko - 0.5.0-1 +- Update to 0.5.0 + +* Thu Feb 15 2018 Andy Grover - 0.1.5-2 +- Require packages that contain binaries that we exec: xfsprogs and + device-mapper-persistent-data + +* Sun Feb 11 2018 Igor Gnatenko - 0.1.5-1 +- Update to 0.1.5 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.1.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Jan 08 2018 Igor Gnatenko - 0.1.4-3 +- Rebuild for rust-packaging v5 + +* Mon Jan 08 2018 Igor Gnatenko - 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 - 0.1.4-1 +- Initial package