Add the setup.sh script during installation
(cherry picked from commit 75d0cf46db230883b0eefbfb5ed9c488fd33acb9)
This commit is contained in:
parent
4611bb3250
commit
b715b509a4
17
spdk.spec
17
spdk.spec
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: spdk
|
Name: spdk
|
||||||
Version: 21.01.1
|
Version: 21.01.1
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: Set of libraries and utilities for high performance user-mode storage
|
Summary: Set of libraries and utilities for high performance user-mode storage
|
||||||
License: BSD and MIT
|
License: BSD and MIT
|
||||||
URL: http://spdk.io
|
URL: http://spdk.io
|
||||||
@ -123,6 +123,11 @@ make -C doc
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install -j`nproc` prefix=%{_usr} libdir=%{_libdir} datadir=%{_datadir}
|
%make_install -j`nproc` prefix=%{_usr} libdir=%{_libdir} datadir=%{_datadir}
|
||||||
|
install -d $RPM_BUILD_ROOT/opt/spdk/scripts
|
||||||
|
install -d $RPM_BUILD_ROOT/opt/spdk/include/spdk
|
||||||
|
install -m 0744 ./scripts/setup.sh $RPM_BUILD_ROOT/opt/spdk/scripts/setup.sh
|
||||||
|
install -m 0744 ./scripts/common.sh $RPM_BUILD_ROOT/opt/spdk/scripts/common.sh
|
||||||
|
install -m 0644 ./include/spdk/pci_ids.h $RPM_BUILD_ROOT/opt/spdk/include/spdk/pci_ids.h
|
||||||
|
|
||||||
# Install tools
|
# Install tools
|
||||||
mkdir -p %{install_datadir}
|
mkdir -p %{install_datadir}
|
||||||
@ -157,6 +162,13 @@ mv doc/output/html/ %{install_docdir}
|
|||||||
%files
|
%files
|
||||||
%{_bindir}/spdk_*
|
%{_bindir}/spdk_*
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
|
%dir /opt/spdk
|
||||||
|
%dir /opt/spdk/scripts
|
||||||
|
%dir /opt/spdk/include
|
||||||
|
%dir /opt/spdk/include/spdk
|
||||||
|
/opt/spdk/scripts/setup.sh
|
||||||
|
/opt/spdk/scripts/common.sh
|
||||||
|
/opt/spdk/include/spdk/pci_ids.h
|
||||||
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
@ -177,6 +189,9 @@ mv doc/output/html/ %{install_docdir}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 24 2022 Hongtao Zhang <zhanghongtao22@huawei.com> - 21.01.1-5
|
||||||
|
- Add the setup.sh script during installation
|
||||||
|
|
||||||
* Tue Mar 15 2022 Weifeng Su <suweifeng1@huawei.com> - 21.01.1-4
|
* Tue Mar 15 2022 Weifeng Su <suweifeng1@huawei.com> - 21.01.1-4
|
||||||
- Remove rpath link option, Due to it's easy for attacher to
|
- Remove rpath link option, Due to it's easy for attacher to
|
||||||
construct 'rpath' attacks
|
construct 'rpath' attacks
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user