%define uprel 15 Name: aprsd Summary: Internet gateway and client access to amateur radio APRS packet data Version: 2.2.5 Release: %{uprel}.6%{?dist} Group: Applications/Internet License: GPLv2+ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-%{uprel}.tar.gz Source1: aprsd.conf Source2: aprsd.init Source3: INIT.TNC Source4: user.deny Source5: welcome.txt Source6: RESTORE.TNC Source7: aprsd.logrotate Patch0: aprsd-2.2.5-15-compile.patch Patch1: aprsd-2.2.5-15-gcc43-port.patch Patch2: aprsd-2.2.5-15-sysconfdir.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) URL: http://sourceforge.net/projects/aprsd/ BuildRequires: libax25-devel Requires (preun): /sbin/chkconfig Requires (preun): /sbin/service Requires (post): /sbin/chkconfig %description APRSd is an APRS server program that uses amateur radio and internet services to convey GPS mapping, weather, and positional data. It has been developed by and for amateur radio enthusiasts to provide real-time data in an easy to use package. %prep %setup -q -n %{name}-%{version}-%{uprel} %patch0 -p1 -b compile %patch1 -p1 -b gccport %patch2 -p1 -b sysconfdir %build %configure make %{?_smp_mflags} %install rm -rf %{buildroot} make install DESTDIR="%{buildroot}" INSTALL="install -p" mkdir -p %{buildroot}%{_sysconfdir} mkdir -p %{buildroot}%{_sysconfdir}/{aprsd,rc.d/init.d} mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/aprsd/aprsd.conf install -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/rc.d/init.d/aprsd install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/aprsd/INIT.TNC install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/aprsd/user.deny install -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/aprsd/welcome.txt install -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/aprsd/RESTORE.TNC install -m 644 %{SOURCE7} %{buildroot}%{_sysconfdir}/logrotate.d/aprsd mkdir -p %{buildroot}%{_localstatedir} mkdir -p %{buildroot}%{_localstatedir}/log/aprsd %clean rm -rf %{buildroot} %post /sbin/chkconfig --add aprsd %preun if [ $1 = 0 ]; then /sbin/service aprsd stop > /dev/null 2>&1 /sbin/chkconfig --del aprsd fi %files %defattr(-,root,root,-) %{_bindir}/aprsd %{_bindir}/aprspass %{_sysconfdir}/rc.d/init.d/aprsd %dir %{_sysconfdir}/aprsd %dir %{_localstatedir}/log/aprsd %config(noreplace) %{_sysconfdir}/aprsd/* %config(noreplace) %{_sysconfdir}/logrotate.d/aprsd %doc AUTHORS %doc COPYING %doc ChangeLog %doc README %doc doc/aprsddoc.html %doc doc/ports.html %doc doc/q.html %doc doc/qalgorithm.html %changelog * Fri Sep 11 2009 Lucian Langa - 2.2.5-15.6 - fix wrong version bumps - add patch from Alan Crosswell fix 'AX.25 sockets are not supported by this executable' * Fri Jul 24 2009 Fedora Release Engineering - 2.2.5-15.5.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Feb 23 2009 Fedora Release Engineering - 2.2.5-15.5.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Aug 23 2008 Lucian Langa - 2.2.5-15.5 - fix rh bug 458817 * Fri Aug 2 2008 Lucian Langa - 2.2.5-15.4 - logrotate warning fixes * Fri Mar 8 2008 Lucian Langa - 2.2.5-15.3 - Patched to localstatedir - Added logrotation support * Fri Feb 22 2008 Lucian Langa - 2.2.5-15.2 - Patched homedir to obey default sysconfdir - Patched to compile for gcc-4.3 - Misc cleanups * Thu Feb 21 2008 Lucian Langa - 2.2.5-15.1 - Initial spec file created