]> git.pld-linux.org Git - packages/hwinfo.git/blob - hwinfo.spec
- updated to 21.12
[packages/hwinfo.git] / hwinfo.spec
1 #
2 # Conditional build:
3 %bcond_with     hal     # HAL support
4
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
7 Name:           hwinfo
8 Version:        21.12
9 Release:        1
10 License:        GPL v2
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
19 BuildRequires:  flex
20 %{?with_hal:BuildRequires:      hal-devel}
21 %ifarch %{ix86} %{x8664}
22 BuildRequires:  libx86emu-devel >= 1
23 %endif
24 BuildRequires:  linux-libc-headers >= 7:2.6.20
25 BuildRequires:  pkgconfig
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 hwinfo is the hardware detection tool used in SuSE Linux.
30
31 %description -l pl.UTF-8
32 hwinfo to narzędzie do wykrywania sprzętu używane w SuSE Linuksie.
33
34 %package devel
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}
39
40 %description devel
41 Header files for hwinfo library.
42
43 %description devel -l pl.UTF-8
44 Pliki nagłówkowe biblioteki hwinfo.
45
46 %prep
47 %setup -q
48 %patch0 -p0
49 %patch1 -p1
50 %if "%{_lib}" == "lib64"
51 %patch2 -p1
52 %endif
53
54 # these should be in tarball, but aren't (21.6)
55 test -e VERSION || echo %{version} > VERSION
56 test -e changelog || touch changelog
57
58 %build
59 %{__make} -j1 \
60         VERSION=%{version} \
61         ARCH=%{_target_base_arch} \
62         CC="%{__cc}" \
63         RPM_OPT_FLAGS="%{rpmcflags} %{?with_hal:-DWITH_HAL}"
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67
68 %{__make} install \
69         DESTDIR=$RPM_BUILD_ROOT
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %post   -p /sbin/ldconfig
75 %postun -p /sbin/ldconfig
76
77 %files
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
87 %{_datadir}/%{name}
88
89 %files devel
90 %defattr(644,root,root,755)
91 %attr(755,root,root) %{_libdir}/libhd.so
92 %{_includedir}/hd.h
93 %{_pkgconfigdir}/hwinfo.pc
This page took 0.214953 seconds and 3 git commands to generate.