SHA256
1
0
forked from pool/hwinfo
hwinfo/hwinfo.spec

132 lines
3.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package hwinfo
#
- sanitize changelog - create floppy entry only if there really is a floppy device (bnc#883465) - don't dump netcard eeprom by default (bnc#875021) - xen vm: use memory settings from /proc/xen/balloon (bnc#867915) - avoid strcpy() (bnc#870383) - s390: add some virtio device IDs (bnc#807532) - adding fingerprint reader (bnc#793928) - use 'cp -x' in getsysinfo (bnc#760240) - s390: recognize model 2 OSA Express interfaces (bnc#720082) - add id to Validity fingerprint sensor (bnc#719202) - add unisys hypervisor bus info (bnc#678966) - report InfiniBand controller as network controller (bnc#645877, bnc#644299) - recognize InfiniBand controller (bnc#645877, bnc#644299, bnc#639807) - VMWare -> VMware (bnc#536888) - update pci id list (bnc#813172) - increase major version to 20 to avoid ABI change problems (maybe bnc#739349) - change multi-interface detection to work with old sysfs layout (bnc#739368, bnc#693090) - detect fcoe disks (bnc#725134) - fix network detection if several interfaces are attached to a single pci function (bnc#693090) - check for battery, too, to decide on notebook (bnc#678456) - avoid potential NULL pointer reference (bnc#677686) - support Draytech miniVigor 128 ISDN (bnc#663288) - support Validity fingerprint sensor (bnc#644149) - add vmbus storage controllers (bnc#654959) - added fingerprint sensor (bnc#528596) - assume notebook if there's a track point or touch pad (bnc#591703) - fix NULL pointer bug (bnc#610454) - detect formfactor without hal (bnc#591703) - fix memory size detection (bnc#588028) - fix device renaming detection (bnc#574442) OBS-URL: https://build.opensuse.org/package/show/system:install:head/hwinfo?expand=0&rev=141
2017-04-07 10:31:12 +02:00
# Copyright (c) 2017 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/
#
Name: hwinfo
BuildRequires: doxygen
BuildRequires: flex
BuildRequires: perl-XML-Parser
BuildRequires: pkg-config
BuildRequires: udev
%if 0%{?rhel_version} == 0
BuildRequires: perl-XML-Writer
%endif
%ifarch %ix86 x86_64
BuildRequires: libx86emu-devel
%endif
Provides: libhd
Obsoletes: libhd
PreReq: /sbin/ldconfig
Summary: Hardware Library
License: GPL-2.0+
Group: Hardware/Other
# Until migration to github this should be correct url
Url: http://gitorious.org/opensuse/hwinfo
Version: 21.46
Release: 0
Source: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A simple program that lists results from the hardware detection
library.
%package devel
Summary: Hardware Detection Library
Group: Development/Libraries/C and C++
Provides: libhddev
Obsoletes: libhddev
Requires: %name = %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
%setup
%build
make static
# make copy of static library for installation
cp src/libhd.a .
make clean
make LIBDIR=%{_libdir}
make doc
%install
make install DESTDIR=%{buildroot} 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
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
/usr/sbin/hwinfo
/usr/sbin/mk_isdnhwdb
/usr/sbin/getsysinfo
%{_libdir}/libhd.so.*
%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 devel
%defattr(-,root,root)
/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