2018-01-07 21:54:23 +00:00
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
# Not interested in packaging lib
|
|
|
|
# stratisd is supposed to be daemon used through dbus
|
|
|
|
%global __cargo_is_lib() false
|
|
|
|
|
|
|
|
Name: stratisd
|
2018-09-01 09:32:46 +00:00
|
|
|
Version: 0.9.0
|
|
|
|
Release: 1%{?dist}
|
2018-01-07 21:54:23 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
# [dependencies]
|
|
|
|
BuildRequires: (crate(byteorder) >= 1.0.0 with crate(byteorder) < 2.0.0)
|
|
|
|
BuildRequires: (crate(chrono) >= 0.4.0 with crate(chrono) < 0.5.0)
|
|
|
|
BuildRequires: (crate(clap) >= 2.0.0 with crate(clap) < 3.0.0)
|
|
|
|
BuildRequires: (crate(crc) >= 1.0.0 with crate(crc) < 2.0.0)
|
|
|
|
BuildRequires: (crate(dbus) >= 0.6.1 with crate(dbus) < 0.7.0)
|
2018-09-01 09:32:46 +00:00
|
|
|
BuildRequires: (crate(devicemapper) >= 0.24.0 with crate(devicemapper) < 0.25.0)
|
2018-07-11 12:37:23 +00:00
|
|
|
BuildRequires: (crate(env_logger) >= 0.5.0 with crate(env_logger) < 0.6.0)
|
2018-07-19 02:27:19 +00:00
|
|
|
BuildRequires: (crate(error-chain) >= 0.12.0 with crate(error-chain) < 0.13.0)
|
2018-07-11 12:37:23 +00:00
|
|
|
BuildRequires: (crate(lazy_static) >= 1.0.0 with crate(lazy_static) < 2.0.0)
|
2018-03-08 20:24:57 +00:00
|
|
|
BuildRequires: (crate(libc) >= 0.2.36 with crate(libc) < 0.3.0)
|
2018-07-11 12:37:23 +00:00
|
|
|
BuildRequires: (crate(libmount) >= 0.1.10 with crate(libmount) < 0.2.0)
|
2018-01-07 21:54:23 +00:00
|
|
|
BuildRequires: (crate(libudev) >= 0.2.0 with crate(libudev) < 0.3.0)
|
2018-07-11 12:37:23 +00:00
|
|
|
BuildRequires: (crate(log) >= 0.4.0 with crate(log) < 0.5.0)
|
2018-01-07 21:54:23 +00:00
|
|
|
BuildRequires: (crate(macro-attr) >= 0.2.0 with crate(macro-attr) < 0.3.0)
|
2018-07-19 02:27:19 +00:00
|
|
|
BuildRequires: (crate(nix) >= 0.11.0 with crate(nix) < 0.12.0)
|
2018-01-07 21:54:23 +00:00
|
|
|
BuildRequires: (crate(rand) >= 0.4.0 with crate(rand) < 0.5.0)
|
|
|
|
BuildRequires: (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0)
|
|
|
|
BuildRequires: (crate(serde_derive) >= 1.0.0 with crate(serde_derive) < 2.0.0)
|
|
|
|
BuildRequires: (crate(serde_json) >= 1.0.0 with crate(serde_json) < 2.0.0)
|
2018-07-11 12:37:23 +00:00
|
|
|
BuildRequires: (crate(tempfile) >= 3.0.1 with crate(tempfile) < 4.0.0)
|
2018-09-01 09:32:46 +00:00
|
|
|
BuildRequires: (crate(timerfd) >= 1.0.0 with crate(timerfd) < 2.0.0)
|
2018-05-02 10:42:10 +00:00
|
|
|
BuildRequires: ((crate(uuid) >= 0.6.0 with crate(uuid) < 0.7.0) with crate(uuid/serde) with crate(uuid/v4))
|
2018-01-07 21:54:23 +00:00
|
|
|
%if %{with check}
|
|
|
|
# [dev-dependencies]
|
2018-07-11 12:37:23 +00:00
|
|
|
BuildRequires: (crate(either) >= 1.1.0 with crate(either) < 2.0.0)
|
2018-01-07 21:54:23 +00:00
|
|
|
BuildRequires: (crate(loopdev) >= 0.2.0 with crate(loopdev) < 0.3.0)
|
|
|
|
BuildRequires: (crate(quickcheck) >= 0.6.0 with crate(quickcheck) < 0.7.0)
|
|
|
|
%endif
|
2018-04-03 11:17:50 +00:00
|
|
|
BuildRequires: %{_bindir}/a2x
|
2018-01-07 21:54:23 +00:00
|
|
|
|
2018-03-08 20:24:57 +00:00
|
|
|
Requires: xfsprogs
|
|
|
|
Requires: device-mapper-persistent-data
|
2018-02-15 23:51:14 +00:00
|
|
|
|
2018-01-07 21:54:23 +00:00
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cargo_build
|
2018-06-22 19:54:14 +00:00
|
|
|
%cargo_build -n
|
2018-04-03 11:17:50 +00:00
|
|
|
a2x -f manpage docs/stratisd.txt
|
2018-01-07 21:54:23 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cargo_install
|
2018-01-08 15:39:41 +00:00
|
|
|
# Daemon should be really private
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}
|
|
|
|
mv %{buildroot}%{_bindir}/stratisd %{buildroot}%{_libexecdir}/stratisd
|
2018-06-22 19:54:14 +00:00
|
|
|
|
|
|
|
%cargo_install -n
|
|
|
|
# Init version should be in sbin
|
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
|
|
|
mv %{buildroot}%{_bindir}/stratisd %{buildroot}%{_sbindir}/stratisd-init
|
|
|
|
|
|
|
|
%{__install} -Dpm0644 -t %{buildroot}%{_datadir}/dbus-1/system.d stratisd.conf
|
|
|
|
%{__install} -Dpm0644 -t %{buildroot}%{_datadir}/dbus-1/system-services org.storage.stratis1.service
|
2018-04-03 11:17:50 +00:00
|
|
|
%{__install} -Dpm0644 -t %{buildroot}%{_mandir}/man8 docs/stratisd.8
|
2018-01-07 21:54:23 +00:00
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
2018-08-03 17:58:06 +00:00
|
|
|
%cargo_test -- -- --skip real_ --skip loop_ --skip travis_ --skip test_buffering
|
2018-01-07 21:54:23 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
2018-01-08 15:39:41 +00:00
|
|
|
%{_libexecdir}/stratisd
|
2018-06-22 19:54:14 +00:00
|
|
|
%{_sbindir}/stratisd-init
|
|
|
|
%dir %{_datadir}/dbus-1
|
2018-01-08 15:39:41 +00:00
|
|
|
%{_datadir}/dbus-1/system.d/stratisd.conf
|
|
|
|
%{_datadir}/dbus-1/system-services/org.storage.stratis1.service
|
2018-04-03 11:17:50 +00:00
|
|
|
%{_mandir}/man8/stratisd.8*
|
2018-01-07 21:54:23 +00:00
|
|
|
|
|
|
|
%changelog
|
2018-09-01 09:32:46 +00:00
|
|
|
* Sat Sep 01 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.9.0-1
|
|
|
|
- Update to 0.9.0
|
|
|
|
|
2018-08-03 17:58:06 +00:00
|
|
|
* Fri Aug 3 2018 Andy Grover <agrover@redhat.com> - 0.5.5-2
|
|
|
|
- Disable a failing but noncritical test
|
|
|
|
|
2018-08-03 09:39:18 +00:00
|
|
|
* Fri Aug 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.5-1
|
|
|
|
- Update to 0.5.5
|
|
|
|
|
2018-07-19 02:28:31 +00:00
|
|
|
* Thu Jul 19 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.4-3
|
2018-07-19 02:27:19 +00:00
|
|
|
- Upgrade dependencies
|
|
|
|
|
2018-07-14 06:48:41 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-07-11 12:37:23 +00:00
|
|
|
* Wed Jul 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.4-1
|
|
|
|
- Update to 0.5.4
|
|
|
|
|
2018-06-22 19:54:14 +00:00
|
|
|
* Fri Jun 22 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.3-2
|
|
|
|
- Add -init version of daemon
|
|
|
|
- Own dbus-1 directory
|
|
|
|
|
2018-06-05 04:04:19 +00:00
|
|
|
* Mon Jun 4 2018 Andy Grover <agrover@redhat.com> - 0.5.3-1
|
|
|
|
- Update to 0.5.3
|
|
|
|
|
2018-05-04 19:34:37 +00:00
|
|
|
* Fri May 4 2018 Andy Grover <agrover@redhat.com> - 0.5.2-2
|
|
|
|
- Add 0002-Prefix-commands-with-entire-path.patch
|
|
|
|
|
2018-05-01 22:48:50 +00:00
|
|
|
* Tue May 1 2018 Andy Grover <agrover@redhat.com> - 0.5.2-1
|
|
|
|
- Update to 0.5.2
|
|
|
|
|
2018-04-03 11:17:50 +00:00
|
|
|
* Tue Apr 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.1-1
|
|
|
|
- Update to 0.5.1
|
|
|
|
|
2018-03-09 20:26:13 +00:00
|
|
|
* Tue Mar 13 2018 Andy Grover <agrover@redhat.com> - 0.5.0-2
|
|
|
|
- Add stratisd manpage
|
|
|
|
|
2018-03-08 20:24:57 +00:00
|
|
|
* Thu Mar 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.0-1
|
|
|
|
- Update to 0.5.0
|
|
|
|
|
2018-02-15 23:51:14 +00:00
|
|
|
* 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
|
|
|
|
|
2018-02-11 13:34:36 +00:00
|
|
|
* Sun Feb 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.5-1
|
|
|
|
- Update to 0.1.5
|
|
|
|
|
2018-02-09 17:48:02 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.4-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-01-08 20:19:18 +00:00
|
|
|
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.4-3
|
|
|
|
- Rebuild for rust-packaging v5
|
|
|
|
|
2018-01-08 15:48:37 +00:00
|
|
|
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.4-2
|
2018-01-08 15:39:41 +00:00
|
|
|
- Move binary under %%{_libexecdir}
|
|
|
|
- Add dbus service (so it is activatable)
|
2018-01-08 15:48:18 +00:00
|
|
|
- Fix rand's version bump
|
2018-01-08 15:39:41 +00:00
|
|
|
|
2018-01-07 21:54:23 +00:00
|
|
|
* Sun Jan 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.4-1
|
|
|
|
- Initial package
|