stratisd/stratisd.spec

164 lines
5.2 KiB
RPMSpec
Raw Normal View History

Name: stratisd
Version: 3.1.1
Release: 1mamba
Summary: Easy to use local storage management for Linux
Group: System/Management
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://stratis-storage.github.io
Source: https://github.com/stratis-storage/stratisd.git/v%{version}/stratisd-%{version}.tar.bz2
License: MPL 2.0
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libblkid-devel
BuildRequires: libcryptsetup-devel
BuildRequires: libdbus-devel
BuildRequires: libgcc
BuildRequires: libudev-devel
## AUTOBUILDREQ-END
%systemd_requires
BuildRequires: rustc
BuildRequires: asciidoc
Requires: thin-provisioning-tools
%description
Easy to use local storage management for Linux.
%debug_package
%prep
%setup -q
#-D -T
#:<< _EOF
# Append '--release' to `cargo build` (line 24):
sed -i 's/cargo build --target/cargo build --release --target/' Makefile
%ifarch x86_64 aarch64
sed -i "s|/usr/libexec/stratisd|%{_libexecdir}/stratisd|" systemd/stratisd.service
%endif
%build
#:<< _EOF
%make build \
%ifarch %{ix86}
TARGET=i686-unknown-linux-gnu
%endif
a2x -f manpage docs/stratisd.txt
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -Dpm0644 -t %{buildroot}%{_datadir}/dbus-1/system.d stratisd.conf
%ifarch %{ix86}
install -D -m0755 target/i686-unknown-linux-gnu/debug/stratisd %{buildroot}%{_libexecdir}/stratisd
install -D -m0755 target/i686-unknown-linux-gnu/debug/stratis-utils %{buildroot}%{_prefix}/lib/udev/stratis-str-cmp
%else
install -D -m0755 target/debug/stratisd %{buildroot}%{_libexecdir}/stratisd
install -D -m0755 target/debug/stratis-utils %{buildroot}%{_prefix}/lib/udev/stratis-str-cmp
%endif
mkdir %{buildroot}%{_bindir}
ln -s %{_prefix}/lib/udev/stratis-str-cmp %{buildroot}%{_bindir}/stratis-predict-usage
ln -s stratis-str-cmp %{buildroot}%{_prefix}/lib/udev/stratis-base32-decode
install -Dpm0644 -t %{buildroot}%{_mandir}/man8 docs/stratisd.8
install -Dpm0644 -t %{buildroot}%{_udevrulesdir} udev/61-stratisd.rules
install -Dpm0644 -t %{buildroot}%{_unitdir} systemd/stratisd.service
#install -Dpm0644 -t %{buildroot}%{_unitdir} systemd/stratisd-min-postinitrd.service
#install -Dpm0644 -t %{buildroot}%{_unitdir} systemd/stratis-fstab-setup\@.service
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
%systemd_post stratisd.service
:
%preun
%systemd_preun stratisd.service
:
%postun
%systemd_postun_with_restart stratisd.service
:
%files
%defattr(-,root,root)
%{_bindir}/stratis-predict-usage
%{_datadir}/dbus-1/system.d/stratisd.conf
%{_libexecdir}/stratisd
%{_unitdir}/stratisd.service
%{_udevrulesdir}/61-stratisd.rules
%{_prefix}/lib/udev/stratis-str-cmp
%{_prefix}/lib/udev/stratis-base32-decode
%{_mandir}/man8/stratisd.8*
%doc LICENSE
%changelog
* Wed Jul 13 2022 Automatic Build System <autodist@mambasoft.it> 3.1.1-1mamba
- automatic version update by autodist
* Fri May 27 2022 Automatic Build System <autodist@mambasoft.it> 3.1.0-1mamba
- automatic version update by autodist
* Mon Feb 14 2022 Automatic Build System <autodist@mambasoft.it> 3.0.4-1mamba
- automatic version update by autodist
* Wed Feb 09 2022 Automatic Build System <autodist@mambasoft.it> 3.0.3-1mamba
- automatic version update by autodist
* Fri Dec 31 2021 Automatic Build System <autodist@mambasoft.it> 3.0.2-1mamba
- automatic version update by autodist
* Mon Sep 13 2021 Automatic Build System <autodist@mambasoft.it> 2.4.2-1mamba
- automatic version update by autodist
* Sat Dec 26 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.3.0-1mamba
- update to 2.3.0
* Mon Oct 05 2020 Automatic Build System <autodist@mambasoft.it> 2.2.0-1mamba
- automatic version update by autodist
* Fri Jun 05 2020 Automatic Build System <autodist@mambasoft.it> 2.1.0-1mamba
- automatic version update by autodist
* Thu Feb 13 2020 Automatic Build System <autodist@mambasoft.it> 2.0.1-1mamba
- automatic version update by autodist
* Sat Nov 23 2019 Automatic Build System <autodist@mambasoft.it> 2.0.0-1mamba
- automatic version update by autodist
* Fri Nov 01 2019 Automatic Build System <autodist@mambasoft.it> 1.0.6-1mamba
- automatic version update by autodist
* Fri Aug 30 2019 Automatic Build System <autodist@mambasoft.it> 1.0.5-1mamba
- automatic version update by autodist
* Fri May 17 2019 Automatic Build System <autodist@mambasoft.it> 1.0.4-1mamba
- automatic version update by autodist
* Tue Jan 29 2019 Automatic Build System <autodist@mambasoft.it> 1.0.3-1mamba
- automatic version update by autodist
* Sun Jan 06 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.2-2mamba
- require thin-provisioning-tools
* Fri Dec 21 2018 Automatic Build System <autodist@mambasoft.it> 1.0.2-1mamba
- automatic version update by autodist
* Sun Nov 25 2018 Automatic Build System <autodist@mambasoft.it> 1.0.1-1mamba
- automatic version update by autodist
* Sun Sep 30 2018 Automatic Build System <autodist@mambasoft.it> 1.0.0-1mamba
- automatic version update by autodist
* Tue Sep 25 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.0-1mamba
- update to 0.9.0
- install stratisd to libexecdir
* Sun Aug 05 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.5-1mamba
- package created using the webbuild interface