update version to 0.2
This update including: 1) bash completions 2) add support for nginx Signed-off-by: anatasluo <luolongjuna@gmail.com>
This commit is contained in:
parent
72b5fb2e60
commit
5ea4e5f352
BIN
nvwa-v0.1.tar.gz
BIN
nvwa-v0.1.tar.gz
Binary file not shown.
BIN
nvwa-v0.2.tar.gz
Normal file
BIN
nvwa-v0.2.tar.gz
Normal file
Binary file not shown.
19
nvwa.spec
19
nvwa.spec
@ -1,6 +1,6 @@
|
||||
Name: nvwa
|
||||
Version: 0.1
|
||||
Release: 3
|
||||
Version: 0.2
|
||||
Release: 1
|
||||
Summary: a tool used for openEuler kernel update
|
||||
|
||||
License: MulanPSL-2.0 and Apache-2.0 and MIT and MPL-2.0
|
||||
@ -27,7 +27,7 @@ cd src
|
||||
go build -mod=vendor -buildmode=pie
|
||||
cd -
|
||||
|
||||
cd tools
|
||||
cd tools/pin
|
||||
gcc %{name}-pin.c -o %{name}-pin -fstack-protector-all -fPIE -pie -Wl,-z,noexecstack,-z,relo,-z,now
|
||||
cd -
|
||||
|
||||
@ -41,17 +41,21 @@ mkdir -p %{buildroot}/var/%{name}
|
||||
mkdir -p %{buildroot}/var/%{name}/running
|
||||
|
||||
install -m 0750 %{_builddir}/%{name}-v%{version}/src/%{name} %{buildroot}/%{_bindir}/
|
||||
install -m 0750 %{_builddir}/%{name}-v%{version}/tools/%{name}-pin %{buildroot}/%{_bindir}/
|
||||
install -m 0640 %{_builddir}/%{name}-v%{version}/config/%{name}-restore.yaml %{buildroot}/etc/%{name}/
|
||||
install -m 0640 %{_builddir}/%{name}-v%{version}/config/%{name}-server.yaml %{buildroot}/etc/%{name}/
|
||||
install -m 0750 %{_builddir}/%{name}-v%{version}/tools/pin/%{name}-pin %{buildroot}/%{_bindir}/
|
||||
install -m 0640 %{_builddir}/%{name}-v%{version}/src/config/%{name}-restore.yaml %{buildroot}/etc/%{name}/
|
||||
install -m 0640 %{_builddir}/%{name}-v%{version}/src/config/%{name}-server.yaml %{buildroot}/etc/%{name}/
|
||||
|
||||
install -m 0750 %{_builddir}/%{name}-v%{version}/misc/%{name}-pre.sh %{buildroot}/%{_bindir}/
|
||||
install -m 0644 %{_builddir}/%{name}-v%{version}/misc/%{name}.service %{buildroot}/usr/lib/systemd/system
|
||||
install -m 0644 %{_builddir}/%{name}-v%{version}/misc/%{name}-pre.service %{buildroot}/usr/lib/systemd/system
|
||||
|
||||
install -d $RPM_BUILD_ROOT/usr/share/bash-completion/completions
|
||||
install -p -m 0644 %{_builddir}/%{name}-v%{version}/completion/nvwa %{buildroot}/usr/share/bash-completion/completions/nvwa
|
||||
|
||||
%post
|
||||
%systemd_post %{name}.service
|
||||
%systemd_post %{name}-pre.service
|
||||
source /usr/share/bash-completion/completions/nvwa
|
||||
|
||||
%preun
|
||||
%systemd_preun %{name}.service
|
||||
@ -69,11 +73,14 @@ install -m 0644 %{_builddir}/%{name}-v%{version}/misc/%{name}-pre.service %{buil
|
||||
/etc/%{name}/%{name}-server.yaml
|
||||
/usr/lib/systemd/system/%{name}.service
|
||||
/usr/lib/systemd/system/%{name}-pre.service
|
||||
/usr/share/bash-completion/completions/nvwa
|
||||
%{_bindir}/%{name}
|
||||
%{_bindir}/%{name}-pin
|
||||
%{_bindir}/%{name}-pre.sh
|
||||
|
||||
%changelog
|
||||
* Fri 30 Jul 2021 anatasluo <luolongjun@huawei.com>
|
||||
- Update to 0.2
|
||||
* Fri 19 Mar 2021 snoweay <snoweay@163.com> - 0.1-3
|
||||
- Add secure compile args
|
||||
* Thu 18 Mar 2021 anatasluo <luolongjun@huawei.com>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user