commit 795239ca9a658b74248c15a0569e2d2340242062 Author: CentOS Sources Date: Fri Aug 2 03:53:03 2019 -0400 import stratisd-1.0.4-2.el8 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..596cf13 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/stratisd-1.0.4-vendor.tar.xz +SOURCES/stratisd-1.0.4.tar.gz diff --git a/.stratisd.metadata b/.stratisd.metadata new file mode 100644 index 0000000..9555a77 --- /dev/null +++ b/.stratisd.metadata @@ -0,0 +1,2 @@ +78dd453c7533d9821ba59ef9dde077bdcf34f711 SOURCES/stratisd-1.0.4-vendor.tar.xz +c5eda0b65d758d3468b204cbc4c8dd14e7a91490 SOURCES/stratisd-1.0.4.tar.gz diff --git a/SPECS/stratisd.spec b/SPECS/stratisd.spec new file mode 100644 index 0000000..08a507e --- /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.4 +Release: 2%{?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 +* 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 + +* 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