From 26dd124bc9db7dcf49f584c49cfbe0cea12a4608 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Fri, 5 Jan 2024 23:46:09 +0100 Subject: [PATCH] update to 20.1 [release 20.1-1mamba;Tue Apr 30 2013] --- README.md | 2 + hwinfo-16.12-tiocgdev_undefined.patch | 16 +++++ hwinfo.spec | 93 +++++++++++++++++++++++++++ 3 files changed, 111 insertions(+) create mode 100644 hwinfo-16.12-tiocgdev_undefined.patch create mode 100644 hwinfo.spec diff --git a/README.md b/README.md index 5398f6e..bf99a7f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # hwinfo +A simple program that lists results from the hardware detection library. + diff --git a/hwinfo-16.12-tiocgdev_undefined.patch b/hwinfo-16.12-tiocgdev_undefined.patch new file mode 100644 index 0000000..6771ff5 --- /dev/null +++ b/hwinfo-16.12-tiocgdev_undefined.patch @@ -0,0 +1,16 @@ +--- src/hd/kbd.c.undefined 2007-08-15 12:26:10.000000000 +0200 ++++ src/hd/kbd.c 2009-04-09 11:41:23.000000000 +0200 +@@ -142,11 +142,13 @@ + } + + if(!dev && (fd = open(DEV_CONSOLE, O_RDWR | O_NONBLOCK | O_NOCTTY)) >= 0) { ++ /* Removing since TIOCGDEV isn't supported in the mainline kernel + if(ioctl(fd, TIOCGDEV, &u) != -1) { + tty_major = (u >> 8) & 0xfff; + tty_minor = (u & 0xff) | ((u >> 12) & 0xfff00); + ADD2LOG(DEV_CONSOLE ": major %u, minor %u\n", tty_major, tty_minor); + } ++ */ + + if (0) + ; diff --git a/hwinfo.spec b/hwinfo.spec new file mode 100644 index 0000000..521189a --- /dev/null +++ b/hwinfo.spec @@ -0,0 +1,93 @@ +Name: hwinfo +Version: 20.1 +Release: 1mamba +Summary: Hardware information tool +Group: System/Kernel and Hardware +Vendor: openmamba +Distribution: openmamba +Packager: Stefano Cotta Ramusino +URL: http://gitorious.org/opensuse/hwinfo +# Package got with: +# git_server=git://gitorious.org/opensuse/hwinfo.git +# stable_version=16.12 +# git clone ${git_server:?no server URL} +# name=$(basename ${git_server##*/} .git) +# [ ! -d "$name" ] && echo "Error retrieving $name." >&2 || cd $name +# git checkout ${stable_version:?no stable version} +# name=$name-$stable_version +# git archive --format=tar --prefix=$name/ HEAD | bzip2 -9 > $(rpm --eval %_sourcedir)/$name.tar.bz2 +Source: git://gitorious.org/opensuse/hwinfo.git/%{version}/hwinfo-%{version}.tar.bz2 +Patch: hwinfo-16.12-tiocgdev_undefined.patch +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libdbus-devel +BuildRequires: libx86emu-devel +BuildRequires: perl-devel +BuildRequires: perl-XML-Parser +BuildRequires: perl-XML-Writer +## AUTOBUILDREQ-END +BuildConflicts: hal-devel +License: GPL +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +A simple program that lists results from the hardware detection library. + +%package devel +Group: Development/Libraries +Summary: Static libraries and headers for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +A simple program that lists results from the hardware detection library. + +This package contains static libraries and header files need for development. + +%prep +%setup -q +[ -e VERSION ] || echo "%{version}" > VERSION +#%patch + +%build +%make -j1 GIT2LOG=/bin/true +make doc + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall GIT2LOG=/bin/true +install -D -m 644 doc/hwinfo.8 %{buildroot}%{_mandir}/man8/hwinfo.8 +install -d %{buildroot}%{_localstatedir}/lib/hardware/udi + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_sbindir}/hwinfo +%{_sbindir}/mk_isdnhwdb +%{_sbindir}/getsysinfo +%{_libdir}/libhd.so.* +%{_datadir}/hwinfo +%{_mandir}/man8/hwinfo.8.gz +%dir %{_localstatedir}/lib/hardware +%dir %{_localstatedir}/lib/hardware/udi +%doc COPYING README + +%files devel +%defattr(-,root,root) +%{_sbindir}/check_hd +%{_sbindir}/convert_hd +%{_includedir}/hd.h +%{_libdir}/libhd.so +%{_libdir}/pkgconfig/hwinfo.pc +%doc doc/libhd/html + +%changelog +* Tue Apr 30 2013 Automatic Build System 20.1-1mamba +- update to 20.1 + +* Tue Dec 11 2012 Automatic Build System 20.0-1mamba +- update to 20.0 + +* Wed Feb 17 2010 Stefano Cotta Ramusino 16.12-1mamba +- package created by autospec