122 lines
3.5 KiB
RPMSpec
122 lines
3.5 KiB
RPMSpec
Name: stratisd
|
|
Version: 1.0.5
|
|
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
|
|
## GITSOURCE https://github.com/stratis-storage/stratisd.git v0.5.5
|
|
Source: https://github.com/stratis-storage/stratisd.git/v%{version}/stratisd-%{version}.tar.bz2
|
|
License: MPL 2.0
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libdbus-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libudev-devel
|
|
## AUTOBUILDREQ-END
|
|
%systemd_requires
|
|
BuildRequires: rust-bin
|
|
Requires: thin-provisioning-tools
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%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
|
|
sed -i "s|/usr/libexec/stratisd|%{_libexecdir}/stratisd|" stratisd.service
|
|
%endif
|
|
|
|
%build
|
|
#:<< _EOF
|
|
%make build \
|
|
%ifarch %{ix86}
|
|
TARGET=i686-unknown-linux-gnu
|
|
%endif
|
|
|
|
make stratisd.8
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/dbus-1/system.d
|
|
install -d -m 755 %{buildroot}%{_libexecdir}
|
|
install -d -m 755 %{buildroot}%{_unitdir}
|
|
install -d -m 755 %{buildroot}%{_datadir}/dbus-1/system-services
|
|
install -d -m 755 %{buildroot}%{_docdir}
|
|
install -d -m 755 %{buildroot}%{_mandir}/man8
|
|
|
|
%ifarch %{ix86}
|
|
install -m 755 target/i686-unknown-linux-gnu/debug/stratisd %{buildroot}%{_libexecdir}/stratisd
|
|
%else
|
|
install -m 755 target/debug/stratisd %{buildroot}%{_libexecdir}/stratisd
|
|
%endif
|
|
|
|
install -m 644 stratisd.service %{buildroot}%{_unitdir}
|
|
install -m 644 org.storage.stratis1.service %{buildroot}%{_datadir}/system-services
|
|
install -m 644 stratisd.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d
|
|
install -m 644 docs/stratisd.8 %{buildroot}%{_mandir}/man8
|
|
|
|
%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)
|
|
%{_sysconfdir}/dbus-1/system.d/stratisd.conf
|
|
%{_unitdir}/stratisd.service
|
|
%{_libexecdir}/stratisd
|
|
%{_mandir}/man8/stratisd.8*
|
|
%{_datadir}/system-services
|
|
%doc LICENSE
|
|
|
|
%changelog
|
|
* 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
|