%define uprel 15 Name: aprsd Summary: Internet gateway and client access to amateur radio APRS packet data Version: 2.2.5 Release: %{uprel}.2%{?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 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/ 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} 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 %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 %config(noreplace) %{_sysconfdir}/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 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