%global tag 1.7pre0 Name: iotools Version: 1.7~pre0 Release: %autorelease Summary: Set of command line tools to access hardware device registers License: GPLv2 # Original upstream at https://github.com/adurbin/iotools is no longer # developed, so use a maintained fork instead URL: https://github.com/aaron-sierra/iotools Source0: %{url}/archive/v%{tag}/%{name}-%{tag}.tar.gz BuildRequires: gcc BuildRequires: make %description The iotools package provides a set of simple command line tools which allow access to hardware device registers. Supported register interfaces include PCI, IO, memory mapped IO, SMBus, CPUID, and MSR. Also included are some utilities which allow for simple arithmetic, logical, and other operations. %prep %autosetup -n %{name}-%{tag} %build %set_build_flags %make_build STATIC=0 DEBUG=0 CC="$CC" EXTRA_CFLAGS="$CFLAGS" %install # Not using make install as it will install a lot of conflicting symlinks install -Dpm0755 -t %{buildroot}%{_sbindir} iotools %files %license COPYING %doc README TODO.txt %{_sbindir}/iotools %changelog %autochangelog