Name: node Version: 0.3.2 Release: 4%{?dist} Summary: Simple node front end, modelled after the node shells of TheNet and G8BPQ nodes Group: Applications/Communications License: GPLv2+ URL: ftp://ftp.hes.iki.fi/pub/ham/linux/ax25/ Source0: ftp://ftp.hes.iki.fi/pub/ham/linux/ax25/%{name}-%{version}.tar.gz Source1: node.xinetd Patch0: node-0.3.2-conf.patch Patch1: node-0.3.2-rose.patch Patch2: node-0.3.2-install.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: /sbin/service Requires: xinetd BuildRequires: zlib-devel BuildRequires: libax25-devel %description This is a simple node frontend for Linux kernel AX.25, NETROM, ROSE and TCP. It's based on pms.c by Alan Cox (GW4PTS) but has been heavily modified since. %prep %setup -q %patch0 -p1 -b .conf %patch1 -p1 -b .rose %patch2 -p1 -b .install %build #this is no standard configure file just a custom script to setup things sh configure # populate CFLAGS, # which is internal build variable to accomodate Fedora opt flags make %{?_smp_mflags} -e CFLAGS="%{optflags}" %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_sbindir} mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ax25 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man{1,5,8} make ETC_DIR=$RPM_BUILD_ROOT%{_sysconfdir}/ax25 SBIN_DIR=$RPM_BUILD_ROOT%{_sbindir} LIB_DIR=$RPM_BUILD_ROOT%{_datadir} MAN_DIR=$RPM_BUILD_ROOT%{_mandir} VAR_DIR=$RPM_BUILD_ROOT%{_localstatedir}/lib/ax25 install installconf mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/node %clean rm -rf $RPM_BUILD_ROOT %post [ -f /var/lock/subsys/xinetd ] && /sbin/service xinetd reload > /dev/null 2>&1 || : %postun [ -f /var/lock/subsys/xinetd ] && /sbin/service xinetd reload > /dev/null 2>&1 || : %files %defattr(-,root,root,-) %{_sbindir}/node %{_sbindir}/nodeusers %{_mandir}/man1/node* %{_mandir}/man5/node* %{_mandir}/man8/node* %{_datadir}/ax25/node/help/* %{_localstatedir}/lib/ax25/node/loggedin %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/xinetd.d/node %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/ax25/node.conf %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/ax25/node.motd %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/ax25/node.perms %doc AUTHORS COPYING HISTORY README %changelog * Mon Jun 23 2008 Lucian Langa - 0.3.2-4 - added fedora's compiler flags - licence fix * Mon Jun 23 2008 Lucian Langa - 0.3.2-3 - Fixed description - change var/ax25 -> var/lib/ax25 * Wed Jun 18 2008 Lucian Langa - 0.3.2-2 - Added xinetd config file * Mon Jun 16 2008 Lucian Langa - 0.3.2-1 - Initial spec file