2018-06-22 17:30:32 +02:00
|
|
|
#
|
|
|
|
# spec file for package ipmctl
|
|
|
|
#
|
2022-11-08 12:13:21 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-06-22 17:30:32 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-02-10 14:14:31 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-06-22 17:30:32 +02:00
|
|
|
#
|
|
|
|
|
2018-10-10 16:31:59 +02:00
|
|
|
|
2021-12-17 15:53:00 +01:00
|
|
|
%define abi 5
|
2019-01-29 15:42:08 +01:00
|
|
|
#define vgit .1547861714.b7a59da
|
2019-01-29 18:53:55 +01:00
|
|
|
%define vgit %{nil}
|
2019-01-18 12:50:09 +01:00
|
|
|
|
2018-06-22 17:30:32 +02:00
|
|
|
Name: ipmctl
|
2022-11-08 12:13:21 +01:00
|
|
|
Version: 03.00.00.0468
|
2018-08-10 17:32:32 +02:00
|
|
|
Release: 0
|
2020-03-10 17:55:24 +01:00
|
|
|
Summary: Utility for managing Intel Optane persistent memory modules
|
2018-06-22 17:30:32 +02:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: System/Management
|
2020-02-10 14:14:31 +01:00
|
|
|
URL: https://github.com/intel/ipmctl
|
2019-01-29 18:53:55 +01:00
|
|
|
%if "%{vgit}" == ""
|
2019-01-29 15:42:08 +01:00
|
|
|
Source: https://github.com/intel/ipmctl/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
%else
|
2019-01-21 13:21:38 +01:00
|
|
|
Source: %{name}-%{version}%{vgit}.tar.gz
|
2019-01-29 15:42:08 +01:00
|
|
|
%endif
|
2019-01-22 19:02:10 +01:00
|
|
|
Source1: ChangeLog.xz
|
|
|
|
Source2: %{name}-rpmlintrc
|
2021-12-17 15:53:00 +01:00
|
|
|
Patch1: ipmctl-static-EDK2.patch.xz
|
2018-06-22 17:30:32 +02:00
|
|
|
|
2019-01-18 12:50:09 +01:00
|
|
|
Recommends: logrotate
|
2018-10-17 12:27:20 +02:00
|
|
|
%if %{defined pythons}
|
2018-10-10 16:31:59 +02:00
|
|
|
BuildRequires: %{pythons}
|
2018-10-17 12:27:20 +02:00
|
|
|
%else
|
2019-01-18 12:50:09 +01:00
|
|
|
BuildRequires: python
|
2018-10-17 12:27:20 +02:00
|
|
|
%endif
|
2018-06-22 17:30:32 +02:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
2018-08-10 17:32:32 +02:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: systemd-rpm-macros
|
2019-01-18 12:50:09 +01:00
|
|
|
BuildRequires: pkgconfig(libndctl) >= 58.2
|
2020-02-10 14:14:31 +01:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2020-03-10 17:55:24 +01:00
|
|
|
# required for documentation
|
2020-02-27 11:57:33 +01:00
|
|
|
BuildRequires: rubygem(asciidoctor)
|
2019-01-18 12:50:09 +01:00
|
|
|
|
2019-01-29 15:42:08 +01:00
|
|
|
# no 'Conflicts' for 'zypper patch'
|
|
|
|
Obsoletes: lib%{name}2
|
|
|
|
# for impctl
|
2018-06-22 17:30:32 +02:00
|
|
|
Obsoletes: ixpdimm-cli < 01.00.00.3000
|
2019-01-29 15:42:08 +01:00
|
|
|
# for (obsoleted) libipmctl2 et.al.
|
2019-02-06 14:44:01 +01:00
|
|
|
Obsoletes: ipmctl-data < %{version}
|
2019-01-18 12:50:09 +01:00
|
|
|
Obsoletes: ixpdimm-data < 01.00.00.3000
|
|
|
|
Obsoletes: ixpdimm_sw < 01.00.00.3000
|
|
|
|
Obsoletes: libixpdimm < 01.00.00.3000
|
|
|
|
Obsoletes: libixpdimm-cim < 01.00.00.3000
|
|
|
|
Obsoletes: libixpdimm-cli < 01.00.00.3000
|
|
|
|
Obsoletes: libixpdimm-common < 01.00.00.3000
|
|
|
|
Obsoletes: libixpdimm-core < 01.00.00.3000
|
|
|
|
|
2018-08-10 17:32:32 +02:00
|
|
|
ExclusiveArch: x86_64
|
2018-06-21 16:22:38 +02:00
|
|
|
|
|
|
|
%description
|
2020-03-10 17:55:24 +01:00
|
|
|
Utility for managing Intel Optane persistent memory modules (PMem module)
|
2018-06-21 16:22:38 +02:00
|
|
|
Supports functionality to:
|
2020-03-10 17:55:24 +01:00
|
|
|
- Discover PMem modules on the platform.
|
|
|
|
- Provision the platform memory configuration.
|
|
|
|
- View and update the firmware on PMem modules.
|
|
|
|
- Configure data-at-rest security on PMem modules.
|
|
|
|
- Monitor PMem module health.
|
|
|
|
- Track performance of PMem modules.
|
|
|
|
- Debug and troubleshoot PMem modules.
|
2018-06-21 16:22:38 +02:00
|
|
|
|
2019-01-18 12:50:09 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Development packages for %{name}
|
2018-06-22 17:30:32 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-01-18 12:50:09 +01:00
|
|
|
Requires: %{name} = %{version}
|
2018-06-22 17:30:32 +02:00
|
|
|
Obsoletes: ixpdimm-devel < 01.00.00.3000
|
|
|
|
Obsoletes: ixpdimm_sw-devel < 01.00.00.3000
|
2018-06-21 16:22:38 +02:00
|
|
|
|
2019-01-18 12:50:09 +01:00
|
|
|
%description devel
|
2020-03-10 17:55:24 +01:00
|
|
|
API for development of Intel Optane persistent memory management utilities.
|
2018-06-21 16:22:38 +02:00
|
|
|
|
2018-10-10 16:31:59 +02:00
|
|
|
%prep
|
2024-02-22 16:10:44 +01:00
|
|
|
%autosetup -p1 -n %{name}-%{version}%{vgit}
|
2018-10-10 16:31:59 +02:00
|
|
|
|
2020-02-27 11:57:33 +01:00
|
|
|
perl -pi.00 -e '
|
|
|
|
s[(CMAKE_INSTALL_)DATAROOT(DIR\})/ipmctl][${1}SYSCONF${2}];
|
2020-03-10 17:55:24 +01:00
|
|
|
s[(INI_INSTALL_FILEPATH "\$\{CMAKE_INSTALL_)DATAROOT(DIR\}")][${1}SYSCONF${2}];
|
|
|
|
s[(-DINI_INSTALL_FILEPATH="\$\{INI_INSTALL_FILEPATH\})/ipmctl][${1}];
|
2020-02-27 11:57:33 +01:00
|
|
|
' CMakeLists.txt
|
2020-03-10 17:55:24 +01:00
|
|
|
diff -u CMakeLists.txt{.00,} || sleep 4
|
2020-02-27 11:57:33 +01:00
|
|
|
|
2019-01-29 15:42:08 +01:00
|
|
|
! grep -lri 'INTEL CONFIDENTIAL' || exit 1
|
2019-01-18 15:17:50 +01:00
|
|
|
|
2018-06-21 16:22:38 +02:00
|
|
|
%build
|
|
|
|
%cmake -DBUILDNUM=%{version} -DCMAKE_INSTALL_PREFIX=/ \
|
|
|
|
-DLINUX_PRODUCT_NAME=%{name} \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
|
|
|
|
-DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \
|
|
|
|
-DCMAKE_INSTALL_BINDIR=%{_bindir} \
|
|
|
|
-DCMAKE_INSTALL_DATAROOTDIR=%{_datadir} \
|
|
|
|
-DCMAKE_INSTALL_MANDIR=%{_mandir} \
|
|
|
|
-DCMAKE_INSTALL_LOCALSTATEDIR=%{_localstatedir} \
|
|
|
|
-DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} \
|
|
|
|
-DINSTALL_UNITDIR=%{_unitdir} \
|
|
|
|
-DRELEASE=ON \
|
|
|
|
-DRPM_BUILD=ON
|
2021-12-17 15:53:00 +01:00
|
|
|
%cmake_build
|
2018-06-21 16:22:38 +02:00
|
|
|
|
|
|
|
%install
|
2018-08-10 17:32:32 +02:00
|
|
|
%cmake_install
|
2018-06-22 17:00:46 +02:00
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
2019-01-18 12:50:09 +01:00
|
|
|
rm -f %{buildroot}%{_datadir}/doc/ipmctl/ipmctl_default.conf
|
2021-02-09 15:26:30 +01:00
|
|
|
rm -f %{buildroot}%{_datadir}/doc/ipmctl/LICENSE
|
2021-12-17 15:53:00 +01:00
|
|
|
rm -f %{buildroot}%{_datadir}/doc/ipmctl/thirdpartynotice.txt
|
|
|
|
rm -f %{buildroot}%{_datadir}/doc/ipmctl/edk2_License.txt
|
2019-01-22 19:02:10 +01:00
|
|
|
install -m 444 -p "%{SOURCE1}" .
|
2018-06-21 16:22:38 +02:00
|
|
|
|
2019-01-18 12:50:09 +01:00
|
|
|
%post -p /sbin/ldconfig
|
2018-06-21 16:22:38 +02:00
|
|
|
|
2019-01-18 12:50:09 +01:00
|
|
|
%postun -p /sbin/ldconfig
|
2018-06-21 16:22:38 +02:00
|
|
|
|
2018-08-10 17:32:32 +02:00
|
|
|
%files
|
2018-06-21 16:22:38 +02:00
|
|
|
%defattr(-,root,root)
|
2021-02-09 15:26:30 +01:00
|
|
|
%{!?_licensedir:%global license %%doc}
|
2020-03-10 17:55:24 +01:00
|
|
|
%license LICENSE
|
2021-12-17 15:53:00 +01:00
|
|
|
%doc README.md
|
|
|
|
%doc opensource
|
|
|
|
%doc Documentation/ipmctl/*
|
2019-01-22 19:02:10 +01:00
|
|
|
%doc ChangeLog.xz
|
2019-01-18 12:50:09 +01:00
|
|
|
%{_bindir}/%{name}
|
2020-02-27 11:57:33 +01:00
|
|
|
%{_mandir}/man1/*
|
2019-01-18 12:50:09 +01:00
|
|
|
|
|
|
|
#files data
|
|
|
|
%doc output/release/%{name}_default.conf
|
|
|
|
%config %{_sysconfdir}/%{name}.conf
|
|
|
|
%config %{_sysconfdir}/logrotate.d/%{name}
|
|
|
|
%dir %{_localstatedir}/log/%{name}
|
2021-02-09 15:26:30 +01:00
|
|
|
|
2019-01-18 12:50:09 +01:00
|
|
|
#files -n lib%%{name}%%{abi}
|
2021-02-09 15:26:30 +01:00
|
|
|
%{_libdir}/lib%{name}.so.%{abi}*
|
2019-01-18 12:50:09 +01:00
|
|
|
|
|
|
|
%files devel
|
2018-06-21 16:22:38 +02:00
|
|
|
%defattr(-,root,root)
|
2019-01-18 12:50:09 +01:00
|
|
|
%{_libdir}/lib%{name}.so
|
|
|
|
%{_libdir}/pkgconfig/lib%{name}.pc
|
|
|
|
%{_includedir}/nvm_types.h
|
|
|
|
%{_includedir}/nvm_management.h
|
|
|
|
%{_includedir}/export_api.h
|
|
|
|
%{_includedir}/NvmSharedDefs.h
|
2018-06-21 16:22:38 +02:00
|
|
|
|
|
|
|
%changelog
|