Name: splat Version: 1.2.1 Release: 6%{?dist} Summary: Analyze point-to-point terrestrial RF communication links Group: Applications/Communications License: GPLv2+ URL: http://www.qsl.net/kd2bd/splat.html Source0: http://www.ibiblio.org/pub/linux/apps/ham/%{name}-%{version}.tar.bz2 #man pages for utilities, generated from utils README file Source1: citydecoder.man Source2: srtm2sdf.man Source3: usgs2sdf.man Patch0: splat-1.2-gcc.patch Patch1: splat-1.2-build.patch Patch2: splat-1.2-parens.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: bzip2-devel BuildRequires: groff, desktop-file-utils #Requires: %description SPLAT! is a Surface Path Length And Terrain analysis application written for Linux and Unix workstations. SPLAT! analyzes point-to-point terrestrial RF communication links, and provides information useful to communication system designers and site engineers. %package utils Summary: Utilities for use with SPLAT! Group: Applications/Communications Requires: %{name} = %{version}-%{release} %description utils Utilities for use with SPLAT! Includes: citydecoder srtm2sdf usg2sdf %prep %setup -q %patch0 -p1 -b .gcc %patch1 -p1 -b .ppc %patch2 -p1 -b .parens #fix end of line encoding %{__sed} -i 's/\r//' utils/fips.txt %build #uses custom build scripts ./build all #build additional man pages groff -e -T ascii -man %{SOURCE1} > $RPM_BUILD_DIR/%{name}-%{version}/utils/citydecoder.1 groff -e -T ascii -man %{SOURCE2} > $RPM_BUILD_DIR/%{name}-%{version}/utils/srtm2sdf.1 groff -e -T ascii -man %{SOURCE3} > $RPM_BUILD_DIR/%{name}-%{version}/utils/usgs2sdf.1 %install rm -rf $RPM_BUILD_ROOT #manual install, easier than patching upstream custom install script install -D -m 0755 splat $RPM_BUILD_ROOT%{_bindir}/splat install -D -m 0644 docs/english/man/splat.1 $RPM_BUILD_ROOT%{_mandir}/man1/splat.1 install -D -m 0644 docs/spanish/man/splat.1 $RPM_BUILD_ROOT%{_mandir}/es/man1/splat.1 #utils install -D -m 0755 utils/citydecoder $RPM_BUILD_ROOT%{_bindir}/citydecoder install -D -m 0755 utils/usgs2sdf $RPM_BUILD_ROOT%{_bindir}/usgs2sdf install -D -m 0755 utils/srtm2sdf $RPM_BUILD_ROOT%{_bindir}/srtm2sdf #additional man pagers install -D -m 0644 utils/citydecoder.1 $RPM_BUILD_ROOT%{_mandir}/man1/citydecoder.1 install -D -m 0644 utils/srtm2sdf.1 $RPM_BUILD_ROOT%{_mandir}/man1/srtm2sdf.1 install -D -m 0644 utils/usgs2sdf.1 $RPM_BUILD_ROOT%{_mandir}/man1/usgs2sdf.1 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc CHANGES COPYING README %doc sample_data %{_bindir}/splat %{_mandir}/man?/splat* %{_mandir}/es/man?/splat* %files utils %doc COPYING utils/README utils/fips.txt %{_bindir}/citydecoder %{_bindir}/srtm2sdf %{_bindir}/usgs2sdf %{_mandir}/man?/citydecoder* %{_mandir}/man?/srtm2sdf* %{_mandir}/man?/usgs2sdf* %changelog * Thu Feb 28 2008 Steve Conklin - 1.2.1-6 - Silly, there's no gui. Removed desktop and icon files. * Thu Feb 28 2008 Steve Conklin - 1.2.1-5 - installed desktop and icon files with main package, not utils * Tue Feb 26 2008 Steve Conklin - 1.2.1-4 - removed erroneous -march flag for ppc * Mon Feb 25 2008 Steve Conklin - 1.2.1-3 - Fixed declaration that the new gcc didn't like * Tue Feb 19 2008 Steve Conklin - 1.2.1-2 - Added desktop file and icon * Sun Dec 09 2007 Sindre Pedersen Bjørdal - 1.2.1-1 - Initial Build