1 # $Revision: 1.43 $ $Date: 2007-02-12 21:23:48 $
3 Summary(pl.UTF-8): Obsługa sieci ATM w Linuksie
9 Source0: ftp://lrcftp.epfl.ch/pub/linux/atm/dist/%{name}-%{version}.tar.gz
10 # Source0-md5: 64952e4d56285c0aeb12597d27884aff
11 Source1: %{name}-pldrc.tar.gz
12 # Source1-md5: c69820b03d8241e4cab33fef681df222
13 Patch0: %{name}-opt.patch
14 Patch1: %{name}-OPEN_MAX.patch
15 URL: http://ica1www.epfl.ch/linux-atm/
16 BuildRequires: rpmbuild(macros) >= 1.268
17 Requires(post,preun): /sbin/chkconfig
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 ATM (Asynchronous Transfer Mode) networking for Linux is still under
23 development now but it works quite stable now and will most probably
24 be included in 2.4.x series kernels. In PLD Linux it consists of some
25 patches for current kernel version containing drivers for a few
26 popular ATM cards (ex. Fore, Madge, IDT) and PVC and SVC support. It
27 also includes programs and scripts providing the most popular ATM
28 services, i.e. Classical IP (IP over ATM), LAN Emulation clients and
29 servers, Multiprotocol Over ATM (MPOA) and some other goodies.
31 %description -l pl.UTF-8
32 Obsługa sieci ATM (Asynchronous Transfer Mode) w Linuksie mimo iż jest
33 jeszcze w stadium alfa działa już bardzo stabilnie i
34 najprawdopodobniej zostanie włączona do jąder serii 2.4.x. W Linuksie
35 PLD składa się ona z łat (patches) do bieżącej wersji jądra
36 zawierających sterowniki do kilku popularnych kart (m.in. Fore, Madge,
37 IDT) i zapewniających zestawianie połączeń PVC i SVC oraz zestawu
38 programów i skryptów (ten pakiet) realizujących najpopularniejsze
39 usługi ATM, tj. Classical IP (IP over ATM), klientów i serwery LAN
40 Emulation (LANE), Multiprotocol Over ATM (MPOA) i inne rozmaitości.
43 Summary: ATM on Linux - developer's package
44 Summary(pl.UTF-8): Obsługa sieci ATM w Linuksie - biblioteki i pliki nagłówkowe
45 Group: Development/Libraries
46 Requires: %{name} = %{version}-%{release}
49 Libraries and header files needed for development ATM applications for
52 %description devel -l pl.UTF-8
53 Biblioteki i pliki nagłówkowe niezbędne do opracowywania aplikacji ATM
57 %setup -q -n %{name} -b 1
62 # Test it before removing!
63 # gcc 2.95.x with optimizations turned on miscompiles atm 0.62!!!
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT/etc/{sysconfig/interfaces,sysconfig/network-scripts,rc.d/init.d} \
72 $RPM_BUILD_ROOT{/var/log/atm,%{_sysconfdir}/atm}
75 INSTROOT=$RPM_BUILD_ROOT \
76 INSTPREFIX=$RPM_BUILD_ROOT%{_prefix} \
77 INSTMAN=$RPM_BUILD_ROOT%{_mandir}
79 install config/common/hosts.atm $RPM_BUILD_ROOT%{_sysconfdir}
80 install config/common/e164_cc $RPM_BUILD_ROOT%{_sysconfdir}
82 install config/pld/atm/* $RPM_BUILD_ROOT%{_sysconfdir}/atm/
83 install config/pld/init.d/atm $RPM_BUILD_ROOT/etc/rc.d/init.d/
84 install config/pld/sysconfig/atm $RPM_BUILD_ROOT/etc/sysconfig/
85 install config/pld/network-scripts/{ifup-atm,ifup-lec,ifdown-lec} \
86 $RPM_BUILD_ROOT/etc/sysconfig/network-scripts
87 install config/pld/interfaces/{ifcfg-atm0,ifcfg-lec0} \
88 $RPM_BUILD_ROOT/etc/sysconfig/interfaces
91 rm -rf $RPM_BUILD_ROOT
94 /sbin/chkconfig --add atm
98 if [ "$1" = "0" ]; then
100 /sbin/chkconfig --del atm
104 %defattr(644,root,root,755)
105 %doc doc/usage.txt BUGS CREDITS CHANGES README config/pld/README.PLD
106 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/atm/*
107 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hosts.atm
108 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/interfaces/*
109 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/atm
110 %attr(755,root,root) /etc/sysconfig/network-scripts/*
111 %attr(754,root,root) /etc/rc.d/init.d/atm
112 %config %{_sysconfdir}/e164_cc
113 %attr(755,root,root) %{_bindir}/*
114 %attr(755,root,root) %{_sbindir}/*
115 %attr(751,root,root) /var/log/atm
119 %defattr(644,root,root,755)