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