From ff074bcba910499e9b807c69dd1652c2118ea89e Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Aug 29 2017 15:03:07 +0000 Subject: Import hwinfo-21.47-2.fc28.src.rpm --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a83a7b6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/hwinfo-21.47.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 30146bd..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# hwinfo - -The hwinfo package \ No newline at end of file diff --git a/hwinfo.spec b/hwinfo.spec new file mode 100644 index 0000000..65d4990 --- /dev/null +++ b/hwinfo.spec @@ -0,0 +1,74 @@ +%global make_flags \\\ + LIBDIR=%{_libdir} \\\ + HWINFO_VERSION=%{version} + +Name: hwinfo +Version: 21.47 +Release: 2%{?dist} +Summary: Hardware information tool + +License: GPL+ +URL: https://github.com/openSUSE/hwinfo +Source0: https://github.com/openSUSE/hwinfo/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: libx86emu-devel +BuildRequires: gcc +BuildRequires: flex +BuildRequires: perl + +%description +hwinfo is to probe for the hardware present in the system. It can be used to +generate a system overview log which can be later used for support. + + +%package devel +Summary: Development files for hwinfo +Requires: %{name}%{?_isa} = %{version}-%{release} + + +%description devel +Header files and libraries for developing with libhd library from hwinfo, a +hardware information tool. + + +%prep +%setup -q + + +%build +# Parallel make disabled due to missing libhd.a dependency +make %{make_flags} + + +%install +%make_install %{make_flags} + + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + + +%files +%{_libdir}/libhd.so.* +%{_sbindir}/check_hd +%{_sbindir}/convert_hd +%{_sbindir}/getsysinfo +%{_sbindir}/hwinfo +%{_sbindir}/mk_isdnhwdb +%{_datadir}/hwinfo +%doc *.md MAINTAINER +%license COPYING + + +%files devel +%{_includedir}/hd.h +%{_libdir}/pkgconfig/hwinfo.pc +%{_libdir}/libhd.so + + +%changelog +* Fri Aug 25 2017 Lubomir Rintel - 21.47-2 +- Better align with packaging guidelines + +* Tue Aug 01 2017 Lubomir Rintel - 21.47-1 +- Initial packaging diff --git a/sources b/sources new file mode 100644 index 0000000..cebe889 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (hwinfo-21.47.tar.gz) = 99ce79696d30cd2e276a57b198d07d00aeee6b98543acb22e6092f3ae198f5d5eb1676684345aabe2df8bee10157ab3e2181706f66e785d2f4df2c6be85215c5