Files
libcpuid/libcpuid.spec
Martin Pluskal 4de21ce107 - update to 0.7.0:
* Version 0.7.0 (2024-08-26):
  * Fix handle leaks in rdmsr.c (#199)
  * Fix cpuid_get_hypervisor when NULL data is provided (#199)
  * Prevent intel_fn11 array overruns (#199)
  * Support for AMD Hawk Point
  * Support for more AMD Phoenix (8000 series)
  * Add cpu_clock_by_tsc() function to the library (#124)
  * Check x86 CPUs MSR support (#185)
  * Add support for ARM CPUs (AArch32 + AArch64) (#200)
  * Add cpu_feature_level_t enumerated values for x86 CPUs (#177)
  * Support up to 4 subleaf entries for CPUID leaf 0x80000026
    (#189)
  * Support for Extended CPU topology subleaf in
    cpuid_identify_purpose_amd() (#189)
  * Support CPU purpose for AMD x86 CPUs (#189)
  * Add cpuid Linux and FreeBSD kernel modules for ARM CPUs
  * Improve errors handling in cpuid_get_all_raw_data() and
    cpuid_get_raw_data_core() (#202)
  * Support get_total_cpus() on DragonFly BSD
  * Improve set_cpu_affinity() on NetBSD
  * Fix build on OpenBSD
  * Improve behavior when CPU affinity cannot be set
  * Fix a regression in cpuid_tool about arguments doing nothing
    (like --rdmsr or --cpuid)
  * Fix a segmentation fault when using --quiet in cpuid_tool
  * Improve error handling in cpu_identify_all()
  * Add Python bindings (#197)
  * Support for AMD Granite Ridge
  * Support for AMD Strix Point

OBS-URL: https://build.opensuse.org/package/show/utilities/libcpuid?expand=0&rev=36
2024-09-09 08:04:44 +00:00

96 lines
2.5 KiB
RPMSpec

#
# spec file for package libcpuid
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define so_ver 17
Name: libcpuid
Version: 0.7.0
Release: 0
Summary: Library providing x86 CPU identification
License: BSD-2-Clause
Group: Development/Libraries/C and C++
URL: https://github.com/anrieff/libcpuid
Source0: https://github.com/anrieff/libcpuid/releases/download/v%{version}/libcpuid-%{version}.tar.gz
BuildRequires: help2man
BuildRequires: pkgconfig
BuildRequires: python3-base
%description
Libcpuid provides CPU identification for the x86 (and x86_64) architectures.
%package tools
Summary: Tools based on %{name}
%description tools
This package provides tools based on %{name}.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{so_ver} = %{version}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
For details about the programming API, please see the docs
on the project's site (http://libcpuid.sourceforge.net/)
%package -n %{name}%{so_ver}
Summary: Library providing CPU identification for x86
%description -n %{name}%{so_ver}
Libcpuid provides CPU identification for the x86 (and x86_64)
architectures.
%prep
%setup -q
%build
%configure \
--enable-static=no
%make_build
%install
%make_install
# Drop useless libtool files
find %{buildroot} -type f -name "*.la" -delete -print
# Generate manpages
help2man ./cpuid_tool/cpuid_tool > cpuid_tool.1
install -D -p -m 0644 cpuid_tool.1 \
%{buildroot}%{_mandir}/man1/cpuid_tool.1
%check
%make_build test
%ldconfig_scriptlets -n %{name}%{so_ver}
%files tools
%{_bindir}/cpuid_tool
%{_mandir}/man1/cpuid_tool.1%{?ext_man}
%files -n %{name}%{so_ver}
%license COPYING AUTHORS
%{_libdir}/%{name}.so.%{so_ver}*
%files devel
%{_includedir}/%{name}
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%changelog