# # Conditional build: # _with_non_hams - allow to connect non hams stations # Summary: Easy configurable node/gateway (AX25) Summary(pl): Prosto konfigurowalny przekaźnik/brama (AX25) Name: awznode Version: v0.4pre2 Release: 3%{?_with_non_hams:nonhams} License: GPL Group: Applications/Communications Source0: ftp://ftp.icm.edu.pl/vol/rzm0/ham/unix/Linux/packet/awznode/%{name}-v0.4-pre2.tar.gz Patch0: %{name}-configure.patch %{?_with_non_hams:Patch1:awznode-non_hams.patch} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) BuildRequires: zlib-devel BuildRequires: libax25-devel Requires: zlib >= 1.1.3 Requires: libax25 >= 0.0.9 Requires: ax25-tools >= 0.0.8 %description Easy node/gateway software for AX25 procotole. It's usable tool if you want create gateway packetradio <> Internet (both sides). %description -l pl Prosty przekaźnik/brama dla protokołu AX25. Przydatne narzędzie przy budowaniu bramek packetradio <> Internet. %prep %setup -q -n awznode-v0.4-pre2 %patch0 -p0 %{?_with_non_hams:%patch1 -p1} %build %configure2_13 %{__make} CC="%{__cc} %{rpmcflags} -Wall" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/var/ax25/{node,flex} \ $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libdir}/ax25/node/help} \ $RPM_BUILD_ROOT%{_mandir}/man{1,5,8} \ $RPM_BUILD_ROOT%{_sysconfdir}/ax25 install etc/loggedin $RPM_BUILD_ROOT/var/ax25/node install etc/lastlog $RPM_BUILD_ROOT/var/ax25/node install etc/gateways $RPM_BUILD_ROOT/var/ax25/flex install node $RPM_BUILD_ROOT%{_sbindir} install nodeusers $RPM_BUILD_ROOT%{_sbindir} install flexd $RPM_BUILD_ROOT%{_sbindir} install etc/help/*.hlp $RPM_BUILD_ROOT%{_libdir}/ax25/node/help install etc/node.conf.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25 install etc/node.perms.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25 install etc/node.info.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25 install etc/node.motd.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25 install etc/node.users.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25 install etc/node.routes.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25 install etc/flexd.conf.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25 install man/nodeusers.1 $RPM_BUILD_ROOT%{_mandir}/man1 install man/node.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5 install man/node.perms.5 $RPM_BUILD_ROOT%{_mandir}/man5 install man/node.8 $RPM_BUILD_ROOT%{_mandir}/man8 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc CHANGES README %attr(755,root,root) %{_sbindir}/nodeusers %attr(755,root,root) %{_sbindir}/flexd %attr(4775,root,root) %{_sbindir}/node %attr(600,root,root) %{_sysconfdir}/ax25/* %{_mandir}/man?/* /var/ax25/*