2007-01-16 00:16:53 +01:00
|
|
|
#
|
2011-02-18 12:17:10 +01:00
|
|
|
# spec file for package hwinfo
|
2007-01-16 00:16:53 +01:00
|
|
|
#
|
2021-01-27 11:11:11 +01:00
|
|
|
# Copyright (c) 2021 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:16:53 +01:00
|
|
|
#
|
2008-08-08 11:49:43 +02:00
|
|
|
# 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.
|
|
|
|
|
2020-03-24 17:53:26 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-16 00:16:53 +01:00
|
|
|
#
|
|
|
|
|
2008-03-03 17:47:44 +01:00
|
|
|
|
2007-01-16 00:16:53 +01:00
|
|
|
Name: hwinfo
|
2012-08-06 11:58:58 +02:00
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: perl-XML-Parser
|
2013-01-09 13:52:05 +01:00
|
|
|
BuildRequires: pkg-config
|
2020-01-23 15:07:32 +01:00
|
|
|
BuildRequires: pkgconfig(udev)
|
2019-05-23 13:56:15 +02:00
|
|
|
BuildRequires: pkgconfig(uuid)
|
2010-10-08 14:19:16 +02:00
|
|
|
%if 0%{?rhel_version} == 0
|
|
|
|
BuildRequires: perl-XML-Writer
|
|
|
|
%endif
|
2009-06-09 13:07:18 +02:00
|
|
|
%ifarch %ix86 x86_64
|
|
|
|
BuildRequires: libx86emu-devel
|
|
|
|
%endif
|
2007-01-16 00:16:53 +01:00
|
|
|
Provides: libhd
|
|
|
|
Obsoletes: libhd
|
2010-03-17 15:27:42 +01:00
|
|
|
PreReq: /sbin/ldconfig
|
2007-01-16 00:16:53 +01:00
|
|
|
Summary: Hardware Library
|
2017-05-15 12:25:58 +02:00
|
|
|
# Until migration to github this should be correct url
|
2019-05-23 13:56:15 +02:00
|
|
|
License: GPL-2.0-or-later
|
2012-08-06 11:58:58 +02:00
|
|
|
Group: Hardware/Other
|
2020-03-24 17:53:26 +01:00
|
|
|
Url: http://gitorious.org/opensuse/hwinfo
|
2021-01-27 11:11:11 +01:00
|
|
|
Version: 21.72
|
2012-08-06 11:58:58 +02:00
|
|
|
Release: 0
|
2015-06-15 12:22:05 +02:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
2007-01-16 00:16:53 +01:00
|
|
|
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
|
2013-01-09 13:52:05 +01:00
|
|
|
Requires: %name = %version
|
|
|
|
Requires: perl-XML-Parser
|
|
|
|
Requires: udev
|
|
|
|
Requires: wireless-tools
|
2010-10-08 14:19:16 +02:00
|
|
|
%if 0%{?rhel_version} == 0
|
2013-01-09 13:52:05 +01:00
|
|
|
Requires: perl-XML-Writer
|
2010-10-08 14:19:16 +02:00
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
2010-11-02 16:08:44 +01:00
|
|
|
Requires: libexpat-devel
|
2010-10-08 14:19:16 +02:00
|
|
|
%else
|
2010-11-02 16:08:44 +01:00
|
|
|
Requires: expat-devel
|
2010-10-08 14:19:16 +02:00
|
|
|
%endif
|
2010-11-02 16:08:44 +01:00
|
|
|
|
2007-01-16 00:16:53 +01:00
|
|
|
%description devel
|
|
|
|
This library collects information about the hardware installed on a
|
|
|
|
system.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
|
|
|
|
|
|
|
%build
|
2019-08-08 14:27:08 +02:00
|
|
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
2007-01-16 00:16:53 +01:00
|
|
|
make static
|
2013-01-09 13:52:05 +01:00
|
|
|
# make copy of static library for installation
|
|
|
|
cp src/libhd.a .
|
2007-01-16 00:16:53 +01:00
|
|
|
make clean
|
|
|
|
make LIBDIR=%{_libdir}
|
|
|
|
make doc
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=%{buildroot} LIBDIR=%{_libdir}
|
2013-01-09 13:52:05 +01:00
|
|
|
install -m 644 libhd.a %{buildroot}%{_libdir}
|
|
|
|
install -d -m 755 %{buildroot}%{_mandir}/man8/
|
|
|
|
install -d -m 755 %{buildroot}%{_mandir}/man1/
|
2013-01-09 14:00:58 +01:00
|
|
|
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/
|
2013-01-09 13:52:05 +01:00
|
|
|
install -m 644 doc/hwinfo.8 %{buildroot}%{_mandir}/man8/
|
2007-01-16 00:16:53 +01:00
|
|
|
mkdir -p %{buildroot}/var/lib/hardware/udi
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2007-12-31 22:23:01 +01:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2007-01-16 00:16:53 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/sbin/hwinfo
|
|
|
|
/usr/sbin/mk_isdnhwdb
|
|
|
|
/usr/sbin/getsysinfo
|
|
|
|
%{_libdir}/libhd.so.*
|
2017-05-12 13:55:53 +02:00
|
|
|
%doc *.md
|
2013-01-09 13:52:05 +01:00
|
|
|
%doc %{_mandir}/man1/getsysinfo.1*
|
|
|
|
%doc %{_mandir}/man1/mk_isdnhwdb.1*
|
|
|
|
%doc %{_mandir}/man8/hwinfo.8*
|
2007-01-16 00:16:53 +01:00
|
|
|
%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
|
2013-01-09 13:52:05 +01:00
|
|
|
%doc %{_mandir}/man1/convert_hd.1*
|
|
|
|
%doc %{_mandir}/man1/check_hd.1*
|
2007-01-16 00:16:53 +01:00
|
|
|
%{_libdir}/libhd.so
|
|
|
|
%{_libdir}/libhd.a
|
|
|
|
%{_libdir}/pkgconfig/hwinfo.pc
|
|
|
|
/usr/include/hd.h
|
|
|
|
%doc doc/libhd/html
|
2007-12-31 22:23:01 +01:00
|
|
|
|
2007-02-19 21:37:38 +01:00
|
|
|
%changelog
|