Compare commits
No commits in common. "a1fbce5e2a8a7e7fa31483ca7eca43378c54ea13" and "ce7e45be0a0f0267fd39da0078e270e35ce814aa" have entirely different histories.
a1fbce5e2a
...
ce7e45be0a
Binary file not shown.
@ -1,9 +1,6 @@
|
|||||||
# add --with transport_service_disable option, i.e. enable TPS by default
|
# add --with transport_service_disable option, i.e. enable TPS by default
|
||||||
%bcond_with transport_service_disable
|
%bcond_with transport_service_disable
|
||||||
|
|
||||||
# add --with hw_disable option, i.e. enable HW by default
|
|
||||||
%bcond_with hw_disable
|
|
||||||
|
|
||||||
%if %{defined kernel_version}
|
%if %{defined kernel_version}
|
||||||
%define kernel_build_path /lib/modules/%{kernel_version}/build
|
%define kernel_build_path /lib/modules/%{kernel_version}/build
|
||||||
%else
|
%else
|
||||||
@ -17,7 +14,7 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{undefined rpm_release}
|
%if %{undefined rpm_release}
|
||||||
%define rpm_release B009
|
%define rpm_release B004
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name : umdk-urma
|
Name : umdk-urma
|
||||||
@ -25,14 +22,14 @@ Summary : Unified memory development kit
|
|||||||
Version : %{rpm_version}
|
Version : %{rpm_version}
|
||||||
Release : %{rpm_release}
|
Release : %{rpm_release}
|
||||||
Group : nStack
|
Group : nStack
|
||||||
License : GPL-2.0-only
|
License : Proprietary
|
||||||
Provides : Huawei Technologies Co., Ltd
|
Provides : Huawei Technologies Co., Ltd
|
||||||
Source0 : %{name}-%{version}.tar.gz
|
Source0 : %{name}-%{version}.tar.gz
|
||||||
BuildRoot : %{_buildirootdir}/%{name}-%{version}-build
|
BuildRoot : %{_buildirootdir}/%{name}-%{version}-build
|
||||||
BuildArch : x86_64 aarch64
|
BuildArch : x86_64 aarch64
|
||||||
ExclusiveArch : aarch64
|
ExclusiveArch : aarch64
|
||||||
BuildRequires : rpm-build, make, cmake, gcc, gcc-c++, glibc-devel
|
BuildRequires : rpm-build, make, cmake, gcc, gcc-c++, glibc-devel
|
||||||
BuildRequires : glib2-devel, systemd
|
BuildRequires : glib2-devel
|
||||||
Requires: glibc, glib2
|
Requires: glibc, glib2
|
||||||
%if %{with asan}
|
%if %{with asan}
|
||||||
Requires: libasan
|
Requires: libasan
|
||||||
@ -47,13 +44,11 @@ Summary: Basic URMA libraries of UMDK
|
|||||||
%description lib
|
%description lib
|
||||||
This package contains basic URMA libraries of UMDK, such as liburma.so.
|
This package contains basic URMA libraries of UMDK, such as liburma.so.
|
||||||
|
|
||||||
%if %{without hw_disable}
|
|
||||||
%package compat-hns-lib
|
%package compat-hns-lib
|
||||||
Summary: Libraries of hns
|
Summary: Libraries of hns
|
||||||
|
|
||||||
%description compat-hns-lib
|
%description compat-hns-lib
|
||||||
This pachage contains libraries of hns, such as liburma-hns3.so.
|
This pachage contains libraries of hns, such as liburma-hns3.so.
|
||||||
%endif
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Include Files and Libraries mandatory for URMA
|
Summary: Include Files and Libraries mandatory for URMA
|
||||||
@ -77,7 +72,7 @@ Summary: binary file of urma
|
|||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
Requires: glibc
|
Requires: glibc
|
||||||
%description bin
|
%description bin
|
||||||
binary file of urma, contains tpsa_daemon, uvs_admin
|
binary file of urma, contains tpsa_daemon.
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -88,9 +83,6 @@ binary file of urma, contains tpsa_daemon, uvs_admin
|
|||||||
%if %{with transport_service_disable}
|
%if %{with transport_service_disable}
|
||||||
-DTPS="disable" \
|
-DTPS="disable" \
|
||||||
%endif
|
%endif
|
||||||
%if %{with hw_disable}
|
|
||||||
-DHW="disable" \
|
|
||||||
%endif
|
|
||||||
%if %{defined kernel_version}
|
%if %{defined kernel_version}
|
||||||
-DKERNEL_RELEASE=%{kernel_version} \
|
-DKERNEL_RELEASE=%{kernel_version} \
|
||||||
-DKERNEL_PATH=%{kernel_build_path} \
|
-DKERNEL_PATH=%{kernel_build_path} \
|
||||||
@ -121,12 +113,9 @@ if [ -x %{_bindir}/systemctl ] && [ -x %{_sbindir}/rsyslogd ]; then
|
|||||||
%{_bindir}/systemctl restart rsyslog >/dev/null 2>&1
|
%{_bindir}/systemctl restart rsyslog >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%if %{without hw_disable}
|
|
||||||
%files compat-hns-lib
|
%files compat-hns-lib
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{_libdir}/urma
|
%{_libdir}/liburma-hns3.so
|
||||||
%{_libdir}/urma/liburma-hns3.so
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -137,6 +126,7 @@ fi
|
|||||||
%{_includedir}/umdk/urma_provider.h
|
%{_includedir}/umdk/urma_provider.h
|
||||||
%{_includedir}/umdk/common/ub_*.h
|
%{_includedir}/umdk/common/ub_*.h
|
||||||
%{_includedir}/umdk/common/urma_*.h
|
%{_includedir}/umdk/common/urma_*.h
|
||||||
|
%{_includedir}/umdk/common/compiler.h
|
||||||
|
|
||||||
%files tools
|
%files tools
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -153,46 +143,17 @@ fi
|
|||||||
%files bin
|
%files bin
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_sbindir}/tpsa_daemon
|
%{_sbindir}/tpsa_daemon
|
||||||
%{_sbindir}/uvs_daemon
|
|
||||||
%attr(0700,-,-) %{_bindir}/uvs_admin
|
|
||||||
/etc/rsyslog.d/tpsa.conf
|
/etc/rsyslog.d/tpsa.conf
|
||||||
/etc/rsyslog.d/uvs_admin.conf
|
|
||||||
/etc/logrotate.d/tpsa
|
/etc/logrotate.d/tpsa
|
||||||
%dir /etc/tpsa
|
%dir /etc/tpsa
|
||||||
%{_libdir}/libtpsa.so
|
|
||||||
%{_libdir}/libtpsa.so.0
|
|
||||||
%{_libdir}/libtpsa.so.0.0.1
|
|
||||||
%attr(0644,-,-) %{_unitdir}/uvsd.service
|
|
||||||
%config(noreplace) /etc/tpsa/tpsa.ini
|
%config(noreplace) /etc/tpsa/tpsa.ini
|
||||||
%post bin
|
%post bin
|
||||||
if [ -x %{_bindir}/systemctl ]; then
|
|
||||||
%{_bindir}/systemctl daemon-reload >/dev/null 2>&1
|
|
||||||
fi
|
|
||||||
if [ -x %{_bindir}/systemctl ] && [ -x %{_sbindir}/rsyslogd ]; then
|
if [ -x %{_bindir}/systemctl ] && [ -x %{_sbindir}/rsyslogd ]; then
|
||||||
%{_bindir}/systemctl restart rsyslog >/dev/null 2>&1
|
%{_bindir}/systemctl restart rsyslog >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Dec 12 2024 chenyutao <chenyutao2@huawei.com> - 1.3.0-B009
|
|
||||||
- Type:feature
|
|
||||||
- DESC:change license to gpl-xx-only
|
|
||||||
|
|
||||||
* Fri Mar 22 2024 panchenbo <panchenbo@kylinsec.com.cn> - 1.3.0-B008
|
|
||||||
- add BuildRequires:systemd for %{_unitdir} Macros
|
|
||||||
|
|
||||||
* Wed Nov 29 2023 Yizhen Fan <fanyizhen@huawei.com> - 1.3.0-B007
|
|
||||||
- Type:bugfix
|
|
||||||
- DESC:modify SO_REUSEADDR to SO_REUSEPORT
|
|
||||||
|
|
||||||
* Tue Nov 28 2023 Yizhen Fan <fanyizhen@huawei.com> - 1.3.0-B006
|
|
||||||
- Type:bugfix
|
|
||||||
- DESC:fix bugs detected in urma
|
|
||||||
|
|
||||||
* Thu Nov 23 2023 Yizhen Fan <fanyizhen@huawei.com> - 1.3.0-B005
|
|
||||||
- Type:feature
|
|
||||||
- DESC:add new feature for urma.
|
|
||||||
|
|
||||||
* Fri Oct 13 2023 Yizhen Fan <fanyizhen@huawei.com> - 1.3.0-B004
|
* Fri Oct 13 2023 Yizhen Fan <fanyizhen@huawei.com> - 1.3.0-B004
|
||||||
- Type:feature
|
- Type:feature
|
||||||
- DESC:update source code, add hw hns3 lib
|
- DESC:update source code, add hw hns3 lib
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user