]> git.pld-linux.org Git - packages/eqnx.git/blob - eqnx.spec
- tabs in preamble
[packages/eqnx.git] / eqnx.spec
1 Summary:        Device driver/utilities for Equinox SST SuperSerial family
2 Summary(pl.UTF-8):      Sterowniki do karty Equinox SST SuperSerial
3 Name:           eqnx
4 Version:        4.04
5 Release:        1
6 License:        GPL
7 Group:          Applications/Communications
8 Source0:        %{name}-%{version}-1.tar.gz
9 # Source0-md5:  3b335ac7f525036ad3147907adcd0ec8
10 Patch0:         %{name}-misc.patch
11 URL:            http://www.equinox.com/
12 BuildRequires:  rpmbuild(macros) >= 1.268
13 ExclusiveOS:    Linux
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 Provides device driver and diagnostic utilities for Equinox
18 SuperSerial multiport and expandable host controller boards. This
19 driver supports ISA, EISA and PCI versions of the 2, 4, 8 and 16 port
20 boards as well as the expandable 64 and 128 port boards and the 4RJ
21 and 8RJ boards. ISA and EISA are not available on Itanium systems.
22
23 %description -l pl.UTF-8
24 Ten pakiet zawiera sterownik i narzędzia diagnostyczne dla kart
25 wieloportowych i rozszerzalnych kontrolerów Equinox SuperSerial. Ten
26 sterownik obsługuje wersje ISA, EISA i PCI kart 2, 4, 8 i
27 16-portowych, a także rozszerzalne karty 64 i 128-portowe oraz karty
28 4RJ i 8RJ. ISA i EISA nie są dostępne w systemach Itanium.
29
30 %prep
31 %setup -q -n %{name}-%{version}-1
32 %patch0 -p1
33
34 %build
35 %{__make} build CC=%{kgcc} OPT="%{rpmcflags}" SMP=0
36 mv drv/eqnx.o drv/eqnx.o-up
37 %{__make} clean
38 %{__make} build CC=%{kgcc} OPT="%{rpmcflags}" SMP=1
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 exit 1
43 %{__make} install OBJROOT=$RPM_BUILD_ROOT
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %post
49 /sbin/chkconfig --add eqnx
50 %service eqnx restart
51
52 %preun
53 if [ "$1" = 0 ]; then
54         # check driver usage.  If ports in use, disallow the remove
55         /sbin/service eqnx status > /dev/null 2>&1
56         if [ $? != 0 ]; then
57                 echo "eqnx driver in use, unable to unload"
58                 echo "Please stop all processes running on SST ports"
59                 exit 1
60         fi
61
62         # stop the driver + remove device files
63         %service eqnx stop
64         /sbin/chkconfig --del eqnx
65
66         # remove eqnx from startup scripts
67         /usr/sbin/eqnx-installrc -u
68 fi
69
70 %files
71 %defattr(644,root,root,755)
72 %doc inst/INSTALL.TXT
73 %doc inst/RELEASE.TXT
74 %doc utils/ssdiag/README.ssdiag
75 %attr(754,root,root) /etc/rc.d/init.d/eqnx
76 /lib/modules/*/*/*
77 %attr(755,root,root) %{_bindir}/sscode
78 %attr(755,root,root) %{_bindir}/ssdiag
79 %attr(755,root,root) %{_bindir}/ssmkn
80 %attr(755,root,root) %{_bindir}/ssrm
81 %attr(755,root,root) %{_bindir}/sstty
82 %attr(755,root,root) %{_sbindir}/rpmvar
83 %attr(755,root,root) %{_sbindir}/eqnx-cfg
84 %attr(755,root,root) %{_sbindir}/eqnx-installrc
85 %{_libdir}/sst/ss.hlp
This page took 0.073487 seconds and 3 git commands to generate.