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