LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File hwinfo.spec of Package hwinfo (Project system:install:head)

# spec file for package hwinfo
# Copyright (c) 2012 SUSE LINUX Products 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
%ifarch %ix86 x86_64
BuildRequires:  libx86emu-devel
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:        20.0
Release:        0
Source0:        hwinfo-20.0.tar.bz2
Source1:        check_hd.1
Source2:        convert_hd.1
Source3:        getsysinfo.1
Source4:        mk_isdnhwdb.1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

A simple program that lists results from the hardware detection

%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
%if 0%{?suse_version}
Requires:       libexpat-devel
Requires:       expat-devel

%description devel
This library collects information about the hardware installed on a


  make static
  # make copy of static library for installation
  cp src/libhd.a .
  make clean
  make LIBDIR=%{_libdir}
  make doc

  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 %{SOURCE1} %{buildroot}%{_mandir}/man1/check_hd.1
  install -m 644 %{SOURCE2} %{buildroot}%{_mandir}/man1/convert_hd.1
  install -m 644 %{SOURCE3} %{buildroot}%{_mandir}/man1/getsysinfo.1
  install -m 644 %{SOURCE4} %{buildroot}%{_mandir}/man1/mk_isdnhwdb.1
  install -m 644 doc/hwinfo.8 %{buildroot}%{_mandir}/man8/
  mkdir -p %{buildroot}/var/lib/hardware/udi

rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%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

%files devel
%doc %{_mandir}/man1/convert_hd.1*
%doc %{_mandir}/man1/check_hd.1*
%doc doc/libhd/html