3 %bcond_with hal # HAL support
5 Summary: hwinfo - the hardware detection tool used in SuSE Linux
6 Summary(pl.UTF-8): hwinfo - narzędzie do wykrywania sprzętu używane w SuSE Linuksie
11 Group: Applications/System
12 Source0: http://ftp.debian.org/debian/pool/main/h/hwinfo/%{name}_%{version}.orig.tar.gz
13 # Source0-md5: 3a97acf3e32e43dfea13b90da1a8403a
14 Patch0: %{name}-kbd.patch
15 Patch1: %{name}-headers.patch
16 Patch2: %{name}-x86_64.patch
17 URL: http://packages.qa.debian.org/h/hwinfo.html
18 BuildRequires: dbus-devel >= 0.35
20 %{?with_hal:BuildRequires: hal-devel}
21 %ifarch %{ix86} %{x8664}
22 BuildRequires: libx86emu-devel >= 1
24 BuildRequires: linux-libc-headers >= 7:2.6.20
25 BuildRequires: pkgconfig
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 hwinfo is the hardware detection tool used in SuSE Linux.
31 %description -l pl.UTF-8
32 hwinfo to narzędzie do wykrywania sprzętu używane w SuSE Linuksie.
35 Summary: Header files for hwinfo library
36 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki hwinfo
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
41 Header files for hwinfo library.
43 %description devel -l pl.UTF-8
44 Pliki nagłówkowe biblioteki hwinfo.
50 %if "%{_lib}" == "lib64"
54 # these should be in tarball, but aren't (21.6)
55 test -e VERSION || echo %{version} > VERSION
56 test -e changelog || touch changelog
61 ARCH=%{_target_base_arch} \
63 RPM_OPT_FLAGS="%{rpmcflags} %{?with_hal:-DWITH_HAL}"
66 rm -rf $RPM_BUILD_ROOT
69 DESTDIR=$RPM_BUILD_ROOT
72 rm -rf $RPM_BUILD_ROOT
74 %post -p /sbin/ldconfig
75 %postun -p /sbin/ldconfig
78 %defattr(644,root,root,755)
79 %doc MAINTAINER README changelog
80 %attr(755,root,root) %{_sbindir}/check_hd
81 %attr(755,root,root) %{_sbindir}/convert_hd
82 %attr(755,root,root) %{_sbindir}/getsysinfo
83 %attr(755,root,root) %{_sbindir}/hwinfo
84 %attr(755,root,root) %{_sbindir}/mk_isdnhwdb
85 %attr(755,root,root) %{_libdir}/libhd.so.*.*
86 %attr(755,root,root) %ghost %{_libdir}/libhd.so.21
90 %defattr(644,root,root,755)
91 %attr(755,root,root) %{_libdir}/libhd.so
93 %{_pkgconfigdir}/hwinfo.pc