update to 0.9.0
install stratisd to libexecdir [release 0.9.0-1mamba;Tue Sep 25 2018]
This commit is contained in:
parent
4cb7113904
commit
0d43aa993a
@ -1,5 +1,5 @@
|
||||
Name: stratisd
|
||||
Version: 0.5.5
|
||||
Version: 0.9.0
|
||||
Release: 1mamba
|
||||
Summary: Easy to use local storage management for Linux
|
||||
Group: System/Management
|
||||
@ -26,14 +26,19 @@ Easy to use local storage management for Linux.
|
||||
%debug_package
|
||||
|
||||
%prep
|
||||
%setup -q -D -T
|
||||
:<< _EOF
|
||||
%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
|
||||
#:<< _EOF
|
||||
%make build \
|
||||
%ifarch %{ix86}
|
||||
TARGET=i686-unknown-linux-gnu
|
||||
@ -44,16 +49,16 @@ make stratisd.8
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
install -d -m 755 %{buildroot}%{_sysconfdir}/dbus-1/system.d
|
||||
install -d -m 755 %{buildroot}%{_bindir}
|
||||
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/release/stratisd %{buildroot}%{_bindir}/stratisd
|
||||
install -m 755 target/i686-unknown-linux-gnu/release/stratisd %{buildroot}%{_libexecdir}/stratisd
|
||||
%else
|
||||
install -m 755 target/%{_target_cpu}-unknown-linux-gnu/release/stratisd %{buildroot}%{_bindir}/stratisd
|
||||
install -m 755 target/%{_target_cpu}-unknown-linux-gnu/release/stratisd %{buildroot}%{_libexecdir}/stratisd
|
||||
%endif
|
||||
install -m 644 stratisd.service %{buildroot}%{_unitdir}
|
||||
install -m 644 org.storage.stratis1.service %{buildroot}%{_datadir}/system-services
|
||||
@ -79,11 +84,15 @@ install -m 644 docs/stratisd.8 %{buildroot}%{_mandir}/man8
|
||||
%defattr(-,root,root)
|
||||
%{_sysconfdir}/dbus-1/system.d/stratisd.conf
|
||||
%{_unitdir}/stratisd.service
|
||||
%{_bindir}/stratisd
|
||||
%{_libexecdir}/stratisd
|
||||
%{_mandir}/man8/stratisd.8*
|
||||
%{_datadir}/system-services
|
||||
%doc LICENSE
|
||||
|
||||
%changelog
|
||||
* 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
|
||||
|
Loading…
Reference in New Issue
Block a user