Sync from SUSE:ALP:Source:Standard:1.0 hwinfo revision c881a5451f1d1a9d32d0e7cc258b65c4

This commit is contained in:
Adrian Schröter 2023-11-24 17:12:44 +01:00
commit 5882fd700a
4 changed files with 4820 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
hwinfo-23.2.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

4661
hwinfo.changes Normal file

File diff suppressed because it is too large Load Diff

133
hwinfo.spec Normal file
View File

@ -0,0 +1,133 @@
#
# spec file for package hwinfo
#
# Copyright (c) 2023 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/
#
Name: hwinfo
Version: 23.2
%define lname libhd%(echo "%version" | perl -pe 's{\\D.*}{}')
Release: 0
Summary: Hardware Library
License: GPL-2.0-or-later
Group: Hardware/Other
# Until migration to github this should be correct url
URL: https://github.com/opensuse/hwinfo
Source: %{name}-%{version}.tar.xz
BuildRequires: doxygen
BuildRequires: flex
BuildRequires: perl-XML-Parser
BuildRequires: pkg-config
BuildRequires: pkgconfig(udev)
BuildRequires: pkgconfig(uuid)
%if 0%{?rhel_version} == 0
BuildRequires: perl-XML-Writer
%endif
%ifarch %ix86 x86_64
BuildRequires: libx86emu-devel
%endif
%description
A program that lists results from the hardware detection
library.
%package -n %lname
Summary: Hardware detection library
Group: System/Libraries
Provides: libhd
Obsoletes: libhd
Conflicts: hwinfo < %{version}-%{release}
%description -n %lname
This library collects information about the hardware installed on a
system.
%package devel
Summary: Headers for the Hardware Detection Library
Group: Development/Libraries/C and C++
Provides: libhddev
Obsoletes: libhddev
Requires: %lname = %version
Requires: perl-XML-Parser
Requires: udev
Requires: wireless-tools
%if 0%{?rhel_version} == 0
Requires: perl-XML-Writer
%endif
%if 0%{?suse_version}
Requires: libexpat-devel
%else
Requires: expat-devel
%endif
%description devel
This library collects information about the hardware installed on a
system.
%prep
%autosetup
%build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
%make_build -j1 static
# make copy of static library for installation
cp src/libhd.a .
%make_build -j1 clean
%make_build -j1 LIBDIR=%{_libdir}
%make_build -j1 doc
%install
%make_install -j1 LIBDIR=%{_libdir}
install -m 644 libhd.a %{buildroot}%{_libdir}
install -d -m 755 %{buildroot}%{_mandir}/man8/
install -d -m 755 %{buildroot}%{_mandir}/man1/
install -m 644 doc/check_hd.1 %{buildroot}%{_mandir}/man1/
install -m 644 doc/convert_hd.1 %{buildroot}%{_mandir}/man1/
install -m 644 doc/getsysinfo.1 %{buildroot}%{_mandir}/man1/
install -m 644 doc/mk_isdnhwdb.1 %{buildroot}%{_mandir}/man1/
install -m 644 doc/hwinfo.8 %{buildroot}%{_mandir}/man8/
mkdir -p %{buildroot}/var/lib/hardware/udi
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files
/usr/sbin/hwinfo
/usr/sbin/mk_isdnhwdb
/usr/sbin/getsysinfo
%doc *.md
%doc %{_mandir}/man1/getsysinfo.1*
%doc %{_mandir}/man1/mk_isdnhwdb.1*
%doc %{_mandir}/man8/hwinfo.8*
%dir /var/lib/hardware
%dir /var/lib/hardware/udi
%dir /usr/share/hwinfo
/usr/share/hwinfo/*
%files -n %lname
%{_libdir}/libhd.so.*
%files devel
/usr/sbin/check_hd
/usr/sbin/convert_hd
%doc %{_mandir}/man1/convert_hd.1*
%doc %{_mandir}/man1/check_hd.1*
%{_libdir}/libhd.so
%{_libdir}/libhd.a
%{_libdir}/pkgconfig/hwinfo.pc
/usr/include/hd.h
%doc doc/libhd/html
%changelog