Name: hwinfo Summary: Hardware Library Version: 16.10 Release: 1.n0i.1%{?dist} License: GPLv2+ Group: Applications/System URL: http://download.opensuse.org/factory/repo/src-oss/suse/src/ Source0: hwinfo-16.10.tar.bz2 Source1: http://ftp.de.debian.org/debian/pool/main/h/hwinfo/hwinfo_16.0-2.diff.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: dbus >= 0.34 Requires: hal >= 0.5.2 BuildRequires: doxygen flex hal-devel perl-XML-Parser perl-XML-Writer udev %ifarch %ix86 x86_64 BuildRequires: libx86emu-devel %endif %description A simple program that lists results from the hardware detection library. %package -n libhd Summary: Hardware Library Group: System Environment/Libraries %description -n libhd This library collects information about the hardware installed on a system. %package -n libhd-devel Summary: Development files for libhd Group: Development/Libraries Requires: libhd = %{version} %description -n libhd-devel Development package for libhd. %prep %setup -q %{__gzip} -cd %{SOURCE1} | %{__patch} -p1 %{__patch} -p1 < debian/patches/new_archs %{__patch} -p1 < debian/patches/sparc_kioc %{__patch} -p1 < debian/patches/serial_struct %{__patch} -p1 < debian/patches/kbd.c-tiocgdev_undefined %{__patch} -p1 < debian/patches/cpu.c-alpha_bogo %{__patch} -p1 < debian/patches/sh_support.patch %build # This package failed when testing with -Wl,-as-needed being default. # So we disable it here, if you want to retest, just delete this comment and the line below. export SUSE_ASNEEDED=0 %{__make} LIBDIR=%{_libdir} %{__make} doc %install %{__rm} -rf %{buildroot} %{__make} install DESTDIR=%{buildroot} LIBDIR=%{_libdir} %{__install} -d -m 755 %{buildroot}%{_mandir}/man8 %{__install} -m 644 doc/hwinfo.8 %{buildroot}%{_mandir}/man8 %{__mkdir_p} %{buildroot}/var/lib/hardware/udi %clean %{__rm} -rf %{buildroot} %post -n libhd -p /sbin/ldconfig %postun -n libhd -p /sbin/ldconfig %files %defattr(-,root,root) %doc README COPYING Changelog %{_sbindir}/hwinfo %{_sbindir}/mk_isdnhwdb %{_sbindir}/getsysinfo %doc %{_mandir}/man8/hwinfo.* /var/lib/hardware %{_datadir}/hwinfo %files -n libhd %defattr(-,root,root) %{_libdir}/*.so.* %files -n libhd-devel %defattr(-,root,root) %doc doc/libhd/html %{_sbindir}/check_hd %{_sbindir}/convert_hd %{_libdir}/*.so %{_libdir}/pkgconfig/hwinfo.pc %{_includedir}/* %changelog * Fri Jan 29 2010 Marius FERARU - 16.10-1.n0i.1 - initial Fedorization of this SUSE package ;-)