]> git.pld-linux.org Git - packages/atm.git/blob - atm.spec
- converted to UTF-8
[packages/atm.git] / atm.spec
1 # $Revision: 1.42 $ $Date: 2007-02-12 00:48:39 $
2 Summary:        ATM on Linux
3 Summary(pl.UTF-8):   Obsługa sieci ATM w Linuksie
4 Name:           atm
5 Version:        0.78
6 Release:        1
7 License:        GPL
8 Group:          Networking
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
18 Requires:       rc-scripts
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
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.
30
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.
41
42 %package devel
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}
47
48 %description devel
49 Libraries and header files needed for development ATM applications for
50 Linux.
51
52 %description devel -l pl.UTF-8
53 Biblioteki i pliki nagłówkowe niezbędne do opracowywania aplikacji ATM
54 dla Linuksa.
55
56 %prep
57 %setup -q -n %{name} -b 1
58 %patch0 -p1
59 %patch1 -p1
60
61 %build
62 # Test it before removing!
63 # gcc 2.95.x with optimizations turned on miscompiles atm 0.62!!!
64 RPM_OPT_FLAGS=""
65 export RPM_OPT_FLAGS
66 %{__make} depend
67 %{__make}
68
69 %install
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}
73
74 %{__make} install \
75         INSTROOT=$RPM_BUILD_ROOT \
76         INSTPREFIX=$RPM_BUILD_ROOT%{_prefix} \
77         INSTMAN=$RPM_BUILD_ROOT%{_mandir}
78
79 install config/common/hosts.atm $RPM_BUILD_ROOT%{_sysconfdir}
80 install config/common/e164_cc $RPM_BUILD_ROOT%{_sysconfdir}
81
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
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %post
94 /sbin/chkconfig --add atm
95 %service atm restart
96
97 %preun
98 if [ "$1" = "0" ]; then
99         %service atm stop
100         /sbin/chkconfig --del atm
101 fi
102
103 %files
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
116 %{_mandir}/man*/*
117
118 %files devel
119 %defattr(644,root,root,755)
120 %{_includedir}/*
121 %{_libdir}/*
This page took 0.133242 seconds and 3 git commands to generate.