[packages/libcpuid] - remaining pl, versioned dependencies, package customized BSD license text, no attr for symlinks/sh
qboosh
qboosh at pld-linux.org
Sun Mar 15 09:30:04 CET 2026
commit 9c94c4c060d2139f405e3fd6e80889467198fdd3
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Mar 15 09:30:13 2026 +0100
- remaining pl, versioned dependencies, package customized BSD license text, no attr for symlinks/shared lib
libcpuid.spec | 40 +++++++++++++++++++++++++---------------
1 file changed, 25 insertions(+), 15 deletions(-)
---
diff --git a/libcpuid.spec b/libcpuid.spec
index ff642fc..2cf6fc3 100644
--- a/libcpuid.spec
+++ b/libcpuid.spec
@@ -1,28 +1,32 @@
#
# Conditional build:
-%bcond_without static_libs # don't build static libraries
+%bcond_without static_libs # static library
#
Summary: A small C library for x86 CPU detection and feature extraction
-#Summary(pl.UTF-8):
+Summary(pl.UTF-8): Mała biblioteka C do wykrywania CPU i jego możliwości dla procesorów x86
Name: libcpuid
Version: 0.8.1
Release: 1
License: BSD
Group: Libraries
+#Source0Download: https://github.com/anrieff/libcpuid/releases
+# TODO: prefer release tarballs
+#Source0: https://github.com/anrieff/libcpuid/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source0: https://github.com/anrieff/libcpuid/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 07547455373dcbcd707b6cf2738fb930
-URL: http://libcpuid.sourceforge.net/
-BuildRequires: autoconf
+URL: https://libcpuid.sourceforge.net/
+BuildRequires: autoconf >= 2.50
BuildRequires: automake
BuildRequires: doxygen
-BuildRequires: intltool
-BuildRequires: libtool
+BuildRequires: libtool >= 2:2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
A small C library for x86 CPU detection and feature extraction.
-#%description -l pl.UTF-8
+%description -l pl.UTF-8
+Mała biblioteka C do wykrywania CPU i jego możliwości dla procesorów
+x86.
%package devel
Summary: Header files for %{name} library
@@ -50,25 +54,27 @@ Statyczna biblioteka %{name}.
%package tool
Summary: Command line interface to libcpuid
-#Summary(pl.UTF-8):
+Summary(pl.UTF-8): Interfejs linii poleceń do libcpuid
Group: Libraries
Requires: %{name} = %{version}-%{release}
%description tool
Command line interface to libcpuid.
-#%description tool -l pl.UTF-8
+%description tool -l pl.UTF-8
+Interfejs linii poleceń do libcpuid.
%prep
%setup -q
%build
%{__libtoolize}
-%{__aclocal}
+%{__aclocal} -I m4
%{__autoconf}
%{__autoheader}
%{__automake}
%configure \
+ --disable-silent-rules \
%{!?with_static_libs:--disable-static}
%{__make}
@@ -93,16 +99,20 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog Readme.md
-%attr(755,root,root) %{_libdir}/libcpuid.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libcpuid.so.17
+%doc AUTHORS COPYING ChangeLog Readme.md
+%{_libdir}/libcpuid.so.*.*.*
+%ghost %{_libdir}/libcpuid.so.17
%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libcpuid.so
+%{_libdir}/libcpuid.so
%{_includedir}/libcpuid
%{_pkgconfigdir}/libcpuid.pc
-%{_mandir}/man3/*
+%{_mandir}/man3/cpu_id_t.3*
+%{_mandir}/man3/cpu_list_t.3*
+%{_mandir}/man3/cpu_mark_t.3*
+%{_mandir}/man3/cpu_raw_data_t.3*
+%{_mandir}/man3/libcpuid.3*
%if %{with static_libs}
%files static
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libcpuid.git/commitdiff/9c94c4c060d2139f405e3fd6e80889467198fdd3
More information about the pld-cvs-commit
mailing list