Summary   : Amateur Station Tracking and Reporting system for amateur radio
Name      : @PACKAGE@
Version   : @VERSION@
Release   : 1
#Epoch    : 1
License   : GPL
Group     : Applications/Networking
Packager  : dranch@trinnet.net
# Icon    : src/@PACKAGE@.xpm
Source    : https://github.com/Xastir/Xastir/archive/Release-@VERSION@/Xastir-Release-@VERSION@.tar.gz
URL       : http://xastir.org
BuildRoot : %{_tmppath}/%{name}-buildroot
#BuildRequires reflect Centos/RHEL naming conventions - edit package names to suit other RPM-based distros
BuildRequires : tk, tkimg, lesstif, libXp, libXp-devel
BuildRequires : geos, giflib, unixODBC, netcdf
BuildRequires : GraphicsMagick, pcre-devel, proj-devel, shapelib-devel
BuildRequires : db4-devel, perl-HTTP-Lite, perl-Device-SerialPort, perl-Test-Simple
BuildRequires : perl-Module-Build, perl-Image-Size, perl-perl-GPS, perl-Tree-R,
BuildRequires : perl-Geo-Shapelib, perl-Test-Simple, perl-Module-Build

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

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

%prep
%setup -q
#%patch

%build
./bootstrap.sh
%configure CPPFLAGS="-I/usr/include/libgeotiff"
make %{?_smp_mflags}

%install
rm -rf ${RPM_BUILD_ROOT}
%makeinstall
%{__chmod} 4755 $RPM_BUILD_ROOT/usr/bin/xastir
# Docs go into package docs area instead of the Makefile install
# locations listed here:
rm -rf ${RPM_BUILD_ROOT}/usr/share/doc

%clean
rm -rf ${RPM_BUILD_ROOT}

%files
%defattr(-,root,root)

# Documents:  Go into special doc area at /usr/share/doc/xastir/ or
# /usr/share/doc/packages/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


%{_prefix}/bin
%{_prefix}/share/xastir/help
%{_prefix}/share/xastir/config
%{_prefix}/share/xastir/symbols
%{_prefix}/share/man

# protect user-installed map and other files from being clobbered

%config %{_prefix}/share/xastir/maps
%dir %attr(666,root,root) %{_prefix}/share/xastir/maps/GPS
%config %{_prefix}/share/xastir/Counties
%config %{_prefix}/share/xastir/fcc
%config %{_prefix}/share/xastir/GNIS
%config %{_prefix}/share/xastir/sounds
%config %{_prefix}/share/xastir/scripts

%changelog
* Fri Jul 8 2017 David Ranch <dranch@trinnet.net>
- Updated to 2.0.9 with Git support
* Thu Jul 03 2003 Alan Crosswell <n2ygk@weca.org> 
- 1.2.1 my patches now integrated into the main trunk.
* Sat Jun 21 2003 Alan Crosswell <n2ygk@weca.org> 
- added xastir-maps.patch
* Mon Jun 16 2003 Alan Crosswell <n2ygk@weca.org> 
- 1.2.0
* Fri Jun 06 2003 Alan Crosswell <n2ygk@weca.org> 
- June 5 snapshot
* Thu May 15 2003 Alan Crosswell <n2ygk@weca.org> 
- start with chuck's spec file for 1.1.4
