File aprsd.spec of Package aprsd
#
# spec file for package aprsd
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: aprsd
Version: 2.2.5
Release: 1
License: GPL-2.0
Summary: APRS Internet server program
URL: http://www.wa4dsy.net/aprs/
Group: Productivity/Hamradio/Other
Source: %{name}-%{version}.tar.bz2
Patch: aprsd-2.2.5.diff
Patch1: aprsd-mic-e-pass.patch
Patch2: aprsd-linuxh.diff
Patch3: aprsd-2.2.5_for_11.0.diff
Patch4: validate_fix_iterator.diff
PreReq: %fillup_prereq %insserv_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
%description
This is an APRS Internet server program. It acts as a gateway between
the Internet and a local ham VHF APRS packet network. It is interfaced
directly to a TNC via one of the PC serial ports and does not use the
Linux ax25 sockets interface.
Authors:
--------
Dale A. Heatherington <wa4dsy@wa4dsy.radio.org>
%prep
%setup -q
%patch -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
./configure --prefix=/usr
make
%install
make prefix=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/usr/sbin
mv $RPM_BUILD_ROOT/bin/aprsd $RPM_BUILD_ROOT/usr/sbin/aprsd
mv $RPM_BUILD_ROOT/bin/aprspass $RPM_BUILD_ROOT/usr/sbin/aprspass
rmdir $RPM_BUILD_ROOT/bin
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/packages/aprsd
mkdir -p $RPM_BUILD_ROOT/usr/share/aprsd
cp admin/* $RPM_BUILD_ROOT/usr/share/aprsd/
%files
%defattr(-,root,root)
%{_datadir}/aprsd/
%doc COPYING README ChangeLog doc/aprsddoc.html doc/ports.html doc/q.html doc/qalgorithm.html
%{_sbindir}/aprsd
%{_sbindir}/aprspass
%changelog