Initial import from ioport-1.2.
[ioport.git] / ioport.spec.in
1 # @configure_input@
2
3 Summary:     Access I/O ports
4 Name:        ioport
5 Version:     @VERSION@
6 Release:     1%{?dist}
7 License:     GPLv2+
8 Group:       Development/Tools
9 URL:         http://et.redhat.com/~rjones/ioport/
10 Source0:     http://et.redhat.com/~rjones/ioport/files/%{name}-%{version}.tar.gz
11 BuildRoot:   %{_tmppath}/%{name}-%{version}-%{release}-root
12 ExclusiveArch: %{ix86} x86_64
13
14
15 %description
16 These commands enable command line and script access directly to I/O
17 ports on PC hardware.
18
19 The inb, inw and inl commands perform an input (read) operation on the
20 given I/O port, and print the result.
21
22 The outb, outw and outl commands perform an output (write) operation
23 to the given I/O port, sending the given data.  Note that the order of
24 the parameters is ADDRESS DATA.
25
26 The size of the operation is selected according to the suffix, with
27 'b' meaning byte, 'w' meaning word (16 bits) and 'l' meaning long
28 (32 bits).
29
30
31 %prep
32 %setup -q
33
34
35 %build
36 %configure
37 make
38
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 make DESTDIR=$RPM_BUILD_ROOT install
43
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48
49 %files
50 %defattr(-,root,root,-)
51 %doc COPYING README
52 %{_bindir}/inb
53 %{_bindir}/inw
54 %{_bindir}/inl
55 %{_bindir}/outb
56 %{_bindir}/outw
57 %{_bindir}/outl
58 %{_mandir}/man1/inb.1*
59 %{_mandir}/man1/inw.1*
60 %{_mandir}/man1/inl.1*
61 %{_mandir}/man1/outb.1*
62 %{_mandir}/man1/outw.1*
63 %{_mandir}/man1/outl.1*
64
65
66 %changelog
67 * Mon Mar 16 2009 Richard Jones <rjones@redhat.com> - 1.1-1
68 - Only offer to build on x86 and x86-64 architectures.
69
70 * Mon Mar  9 2009 Richard Jones <rjones@redhat.com> - 1.0-1
71 - Initial build.