136 lines
3.6 KiB
RPMSpec
136 lines
3.6 KiB
RPMSpec
%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 <dkeefe@redhat.com> - 1.0.4-2
|
|
- update to 1.0.4
|
|
|
|
* 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
|