From bbeec94fb183d05a7ef9d809f7f092f08049f4f0 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 21 Jan 2020 13:29:47 -0500 Subject: [PATCH] import stratisd-2.0.0-4.el8 --- .gitignore | 2 + .stratisd.metadata | 2 + SPECS/stratisd.spec | 118 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 122 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..3b45073 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/stratisd-2.0.0-vendor.tar.xz +SOURCES/stratisd-2.0.0.tar.gz diff --git a/.stratisd.metadata b/.stratisd.metadata new file mode 100644 index 0000000..a895021 --- /dev/null +++ b/.stratisd.metadata @@ -0,0 +1,2 @@ +a66959b2c743290b61e485a779fedb7fbd7fa24b SOURCES/stratisd-2.0.0-vendor.tar.xz +f8cc6c8e1ddf1aa0665bb8801f6ef2c4117fba08 SOURCES/stratisd-2.0.0.tar.gz diff --git a/SPECS/stratisd.spec b/SPECS/stratisd.spec new file mode 100644 index 0000000..11c693f --- /dev/null +++ b/SPECS/stratisd.spec @@ -0,0 +1,118 @@ +%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: 2.0.0 +Release: 4%{?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}-%{version}-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 + +%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 +* Tue Nov 12 2019 Dennis Keefe - 2.0.0-4 +- Update to 2.0.0 +- Resolves: rhbz#1760906 +- Fix a bug where last update time for variable length metadata was not set + properly on startup: +- Resolves: rhbz#1720399 +- Specify path of PID file as "/run/stratisd.pid" instead of + "/var/run/stratisd.pid". +- Resolves: rhbz#1754649 +- For a particular log entry, reduce log level from INFO to DEBUG and make the + log message more detailed: +- Resolves: rhbz#1680052 + +* Mon Jun 3 2019 Dennis Keefe - 1.0.4-2 +- update to 1.0.4 + +* 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