# NOTE:
# “Free Standards Group, FSG, Linux Standard Base, LSB, Free
# Standards Certified, LSB Certified and the Free Standards
# Certified logo are trademarks, service marks and certification
# marks, as appropriate, of Free Standards Group in the United
# States and in other countries.”
#
# We are in no way representing that Xastir has been certified by
# the FSG.  To do so costs real money.  We do intend some Xastir
# binaries to install and run properly on LSB-3.0 compliant x86
# Linux systems though...
#
Summary      : Amateur Station Tracking and Reporting system for Amateur Radio APRS
Name         : xastir
Version      : @VERSION@
Release      : 1
Copyright    : GPL
Group        : Applications/Networking
Packager     : Curt Mills, WE7U <archer@eskimo.com>
# Icon       : src/xastir.xpm
Source       : http://prdownloads.sourceforge.net/xastir/xastir-@VERSION@.tar.gz
URL          : http://xastir.org
#BuildRoot   : %{_tmppath}/%{name}-buildroot
BuildRoot    : RPM
#Requires    :
#AutoReqProv : no
PreReq       : lsb >= 3.0
#
#
# Stuff gleaned from the LSB appbat RPM build files:
#
# Force a 486 target
#buildarchtranslate: i686 i486
#buildarchtranslate: i586 i486
#buildarchtranslate: pentium3 i486
#buildarchtranslate: pentium4 i486
#buildarchtranslate: athlon i486
#buildarchtranslate: k6 i486a
#
# Overrides for LSB packaging
# We want a non-root build.  Just put everything in the same directory.
# Only _rpmdir and _builddir are actually used in these builds but we
# define all five of the directories for completeness.
#%_topdir	/home/archer/xastir
#%_rpmdir	%{_topdir}/rpm
#%_specdir	%{_topdir}/rpm
#%_builddir	%{_topdir}/rpm
#%_sourcedir	%{_topdir}/rpm
#%_srcrpmdir	%{_topdir}/rpm
#%pkgroot	%{_topdir}/rpm
#
#%_messagelevel 0
#
# Replace the "buildpolicy" defined in the distro's brp-(distro) file.
# Forces uncompressed manpages so the specfiles don't vary.
#%__os_install_post \
#	/usr/lib/rpm/brp-strip \
#	/usr/lib/rpm/brp-strip-comment-note
#
# Unpackaged files in a build root don't terminate a build
#%_unpackaged_files_terminate_build 0
#
# Missing %doc files in the build directory don't terminate a build
#%_missing_doc_files_terminate_build 0
#
# Force gzip payload
#%_binary_payload w9.gzdio


%description
Xastir is a graphical application that interfaces HAM radio
and internet access to real-time mapping software.

Install XASTIR if you are interested in APRS(tm) and HAM radio
software.

%prep
%setup -q
#%patch
%build
%install
%clean

%files
%defattr(-,root,root)

# Documents:  Go into special doc area at /opt/Xastir/share/doc/xastir/
%doc AUTHORS ChangeLog COPYING DEBUG_LEVELS FAQ INSTALL LICENSE
%doc README CONTRIBUTING.md README.GIT README.Getting-Started
%doc README.MAPS README.sudo UPGRADE COPYING.LIB.LESSTIF

/opt/Xastir/bin
/opt/Xastir/share/xastir/help
/opt/Xastir/share/xastir/config
/opt/Xastir/share/xastir/symbols
/opt/Xastir/share/man
/opt/Xastir/lib/xastir

# protect user-installed map and other files from being clobbered
%config /opt/Xastir/share/xastir/maps
%dir %attr(666,root,root) /opt/Xastir/share/xastir/maps/GPS
%config /opt/Xastir/share/xastir/Counties
%config /opt/Xastir/share/xastir/fcc
%config /opt/Xastir/share/xastir/GNIS
%config /opt/Xastir/share/xastir/sounds

%changelog

