2018-06-22 17:30:32 +02:00
|
|
|
#
|
|
|
|
# spec file for package ipmctl
|
|
|
|
#
|
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2018-10-10 16:31:59 +02:00
|
|
|
|
2018-06-22 17:30:32 +02:00
|
|
|
Name: ipmctl
|
2018-08-10 17:32:32 +02:00
|
|
|
Version: 01.00.00.3102
|
|
|
|
Release: 0
|
2018-06-22 17:30:32 +02:00
|
|
|
Summary: Utility for managing Intel Optane DC persistent memory modules
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: System/Management
|
2018-10-10 16:31:59 +02:00
|
|
|
Url: https://github.com/intel/ipmctl
|
2018-08-10 18:12:54 +02:00
|
|
|
Source: https://github.com/intel/ipmctl/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2018-08-10 17:32:32 +02:00
|
|
|
Source1: %{name}-rpmlintrc
|
2018-06-22 17:54:39 +02:00
|
|
|
Patch1: ipmctl-fix-SLE12-build.patch
|
2018-06-22 17:30:32 +02:00
|
|
|
|
|
|
|
Requires: libipmctl2%{?_isa} = %{version}-%{release}
|
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
|
|
|
|
BuildRequires: python2
|
|
|
|
%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
|
|
|
|
BuildRequires: systemd-rpm-macros
|
2018-10-10 16:31:59 +02:00
|
|
|
BuildRequires: pkgconfig(libndctl)
|
2018-06-22 17:30:32 +02:00
|
|
|
Obsoletes: ixpdimm-cli < 01.00.00.3000
|
2018-08-10 17:32:32 +02:00
|
|
|
ExclusiveArch: x86_64
|
2018-06-21 16:22:38 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Utility for managing Intel Optane DC persistent memory modules
|
|
|
|
Supports functionality to:
|
2018-08-08 08:39:01 +02:00
|
|
|
* Discover PMMs on the platform.
|
|
|
|
* Provision the platform memory configuration.
|
|
|
|
* View and update the firmware on PMMs.
|
|
|
|
* Configure data-at-rest security on PMMs.
|
|
|
|
* Monitor PMM health.
|
|
|
|
* Track performance of PMMs.
|
|
|
|
* Debug and troubleshoot PMMs.
|
2018-06-21 16:22:38 +02:00
|
|
|
|
|
|
|
%package -n ipmctl-monitor
|
2018-06-22 17:30:32 +02:00
|
|
|
Summary: Daemon for monitoring the status of Intel PMM
|
|
|
|
Group: System/Monitoring
|
2018-08-10 17:32:32 +02:00
|
|
|
Conflicts: libipmctl2%{?_isa} < %{version}-%{release}
|
2018-06-21 16:22:38 +02:00
|
|
|
%{?systemd_requires}
|
2018-06-22 17:30:32 +02:00
|
|
|
Obsoletes: ixpdimm-monitor < 01.00.00.3000
|
2018-06-21 16:22:38 +02:00
|
|
|
|
|
|
|
%description -n ipmctl-monitor
|
|
|
|
A monitor daemon for monitoring the health and status of Intel Optane DC persistent memory modules
|
|
|
|
|
|
|
|
%package -n libipmctl2
|
2018-06-22 17:30:32 +02:00
|
|
|
Summary: Library for Intel PMM management
|
|
|
|
Group: System/Libraries
|
2018-08-10 17:32:32 +02:00
|
|
|
Requires: %{name}-data
|
2018-06-22 17:30:32 +02: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-06-21 16:22:38 +02:00
|
|
|
|
|
|
|
%description -n libipmctl2
|
|
|
|
An Application Programming Interface (API) library for managing Intel Optane DC persistent memory modules.
|
|
|
|
|
2018-08-10 17:32:32 +02:00
|
|
|
%package -n %{name}-data
|
|
|
|
Summary: Data files for %{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n ipmctl-data
|
|
|
|
Non-versioned files for libipmctl2.
|
|
|
|
|
|
|
|
%package -n ipmctl-devel
|
2018-06-22 17:30:32 +02:00
|
|
|
Summary: Development packages for libipmctl
|
|
|
|
Group: Development/Libraries/C and C++
|
2018-08-10 17:32:32 +02:00
|
|
|
Requires: libipmctl2 = %{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
|
|
|
|
2018-08-10 17:32:32 +02:00
|
|
|
%description -n ipmctl-devel
|
2018-06-21 16:22:38 +02:00
|
|
|
API for development of Intel Optane DC persistent memory management utilities.
|
|
|
|
|
2018-10-10 16:31:59 +02:00
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
%patch1 -p1
|
|
|
|
|
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
|
2018-08-10 17:32:32 +02:00
|
|
|
%make_jobs
|
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}
|
|
|
|
ln -sf service %{buildroot}%{_sbindir}/rcipmctl-monitor
|
2018-06-21 16:22:38 +02:00
|
|
|
|
|
|
|
%post -n libipmctl2 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libipmctl2 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%pre -n ipmctl-monitor
|
|
|
|
%service_add_pre ipmctl-monitor.service
|
|
|
|
|
|
|
|
%post -n ipmctl-monitor
|
|
|
|
%service_add_post ipmctl-monitor.service
|
|
|
|
|
|
|
|
%preun -n ipmctl-monitor
|
|
|
|
%service_del_preun ipmctl-monitor.service
|
|
|
|
|
|
|
|
%postun -n ipmctl-monitor
|
|
|
|
%service_del_postun ipmctl-monitor.service
|
|
|
|
|
2018-08-10 17:32:32 +02:00
|
|
|
%files
|
2018-06-21 16:22:38 +02:00
|
|
|
%defattr(-,root,root)
|
2018-06-22 17:00:46 +02:00
|
|
|
%license LICENSE
|
2018-06-21 16:22:38 +02:00
|
|
|
%{_bindir}/ipmctl
|
|
|
|
|
|
|
|
%files -n ipmctl-monitor
|
|
|
|
%defattr(-,root,root)
|
2018-06-22 17:00:46 +02:00
|
|
|
%license LICENSE
|
2018-06-21 16:22:38 +02:00
|
|
|
%{_bindir}/ipmctl-monitor
|
2018-06-22 17:00:46 +02:00
|
|
|
%{_sbindir}/rcipmctl-monitor
|
2018-06-21 16:22:38 +02:00
|
|
|
%{_unitdir}/ipmctl-monitor.service
|
|
|
|
|
|
|
|
%files -n libipmctl2
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libipmctl.so.*
|
2018-08-10 17:32:32 +02:00
|
|
|
|
|
|
|
%files -n %{name}-data
|
|
|
|
%defattr(-,root,root)
|
2018-06-21 16:22:38 +02:00
|
|
|
%dir %{_datadir}/doc/ipmctl
|
|
|
|
%doc %{_datadir}/doc/ipmctl/ipmctl_default.conf
|
|
|
|
%config %{_sysconfdir}/ipmctl.conf
|
|
|
|
%dir %attr(644,root,root) %{_localstatedir}/log/ipmctl
|
|
|
|
|
2018-08-10 17:32:32 +02:00
|
|
|
%files -n ipmctl-devel
|
2018-06-21 16:22:38 +02:00
|
|
|
%defattr(-,root,root)
|
2018-06-22 17:00:46 +02:00
|
|
|
%doc README.md
|
2018-06-21 16:22:38 +02:00
|
|
|
%{_libdir}/libipmctl.so
|
|
|
|
%attr(644,root,root) %{_includedir}/nvm_types.h
|
|
|
|
%attr(644,root,root) %{_includedir}/nvm_management.h
|
|
|
|
%attr(644,root,root) %{_includedir}/export_api.h
|
|
|
|
%attr(644,root,root) %{_includedir}/NvmStatusValues.h
|
|
|
|
|
|
|
|
%changelog
|