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