]> git.pld-linux.org Git - packages/atm.git/blob - atm.spec
f2a18a7270c1f34613111eb1152afea25a5d7f51
[packages/atm.git] / atm.spec
1 # $Revision: 1.32 $ $Date: 2002-10-10 11:46:51 $
2 Summary:        ATM on Linux
3 Summary(pl):    Obs³uga sieci ATM w Linuksie
4 Name:           atm
5 Version:        0.62
6 Release:        1
7 License:        GPL
8 Group:          Networking
9 Source0:        ftp://lrcftp.epfl.ch/pub/linux/atm/dist/%{name}-%{version}.tar.gz
10 Source1:        %{name}-pldrc.tar.gz
11 Patch0:         %{name}-opt.patch
12 Patch1:         %{name}-OPEN_MAX.patch
13 Icon:           atm-logo.gif
14 URL:            http://ica1www.epfl.ch/linux-atm/
15 Prereq:         /sbin/chkconfig
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 ATM (Asynchronous Transfer Mode) networking for Linux is still under
20 development now but it works quite stable now and will most probably
21 be included in 2.4.x series kernels. In PLD Linux it consists of some
22 patches for current kernel version containing drivers for a few
23 popular ATM cards (ex. Fore, Madge, IDT) and PVC and SVC support. It
24 also includes programs and scripts providing the most popular ATM
25 services, i.e. Classical IP (IP over ATM), LAN Emulation clients and
26 servers, Multiprotocol Over ATM (MPOA) and some other goodies.
27
28 %description -l pl
29 Obs³uga sieci ATM (Asynchronous Transfer Mode) w Linuksie mimo i¿ jest
30 jeszcze w stadium alfa dzia³a ju¿ bardzo stabilnie i
31 najprawdopodobniej zostanie w³±czona do j±der serii 2.4.x. W Linuksie
32 PLD sk³ada siê ona z ³at (patches) do bie¿±cej wersji j±dra
33 zawieraj±cych sterowniki do kilku popularnych kart (m.in. Fore, Madge,
34 IDT) i zapewniaj±cych zestawianie po³±czeñ PVC i SVC oraz zestawu
35 programów i skryptów (ten pakiet) realizuj±cych najpopularniejsze
36 us³ugi ATM, tj. Classical IP (IP over ATM), klientów i serwery LAN
37 Emulation (LANE), Multiprotocol Over ATM (MPOA) i inne rozmaito¶ci.
38
39 %package devel
40 Summary:        ATM on Linux - developer's package
41 Summary(pl):    Obs³uga sieci ATM w Linuksie - biblioteki i pliki nag³ówkowe
42 Group:          Development/Libraries
43 Requires:       %{name} = %{version}
44
45 %description devel
46 Libraries and header files needed for development ATM applications for
47 Linux.
48
49 %description devel -l pl
50 Biblioteki i pliki nag³ówkowe niezbêdne do opracowywania aplikacji ATM
51 dla Linuksa.
52
53 %prep
54 %setup -q -n atm -b 1
55 %patch0 -p1
56 %patch1 -p1
57
58 %build
59 # Test it before removing!
60 # gcc 2.95.x with optimizations turned on miscompiles atm 0.62!!!
61 RPM_OPT_FLAGS=""
62 export RPM_OPT_FLAGS
63 %{__make} depend
64 %{__make}
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT/etc/{sysconfig/interfaces,sysconfig/network-scripts,rc.d/init.d} \
69         $RPM_BUILD_ROOT{/var/log/atm,%{_sysconfdir}/atm}
70
71 %{__make} install \
72         INSTROOT=$RPM_BUILD_ROOT \
73         INSTPREFIX=$RPM_BUILD_ROOT%{_prefix} \
74         INSTMAN=$RPM_BUILD_ROOT%{_mandir}
75
76 install config/common/hosts.atm $RPM_BUILD_ROOT%{_sysconfdir}
77 install config/common/e164_cc $RPM_BUILD_ROOT%{_sysconfdir}
78
79 install config/pld/atm/* $RPM_BUILD_ROOT%{_sysconfdir}/atm/
80 install config/pld/init.d/atm $RPM_BUILD_ROOT/etc/rc.d/init.d/
81 install config/pld/sysconfig/atm $RPM_BUILD_ROOT/etc/sysconfig/
82 install config/pld/network-scripts/{ifup-atm,ifup-lec,ifdown-lec} \
83                 $RPM_BUILD_ROOT/etc/sysconfig/network-scripts
84 install config/pld/interfaces/{ifcfg-atm0,ifcfg-lec0} \
85                 $RPM_BUILD_ROOT/etc/sysconfig/interfaces
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %post
91 /sbin/chkconfig --add atm
92 if [ -f /var/lock/subsys/atm ]; then
93         /etc/rc.d/init.d/atm restart 1>&2
94 fi
95
96 %preun
97 if [ "$1" = "0" ]; then
98         if [ -f /var/lock/subsys/atm ]; then
99                 /etc/rc.d/init.d/atm stop 1>&2
100         fi
101         /sbin/chkconfig --del atm
102 fi
103
104 %files
105 %defattr(644,root,root,755)
106 %doc doc/usage.txt BUGS CREDITS CHANGES README config/pld/README.PLD
107 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/atm/*
108 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/hosts.atm
109 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/interfaces/*
110 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/atm
111 %attr(755,root,root) /etc/sysconfig/network-scripts/*
112 %attr(754,root,root) /etc/rc.d/init.d/atm
113 %config %{_sysconfdir}/e164_cc
114 %attr(755,root,root) %{_bindir}/*
115 %attr(755,root,root) %{_sbindir}/*
116 %attr(751,root,root) /var/log/atm
117 %{_mandir}/man*/*
118
119 %files devel
120 %defattr(644,root,root,755)
121 %{_includedir}/*
122 %{_libdir}/*
This page took 0.051183 seconds and 2 git commands to generate.