File kamplus.spec of Package kamplus
#
# spec file for package kamplus
#
# 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: kamplus
Version: 1.1.2b
Release: 1
License: GPL-2.0
Summary: Host mode terminal program for the Kam Plus TNC
%define localham_group 56
Url: http://www.cvine.freeserve.co.uk/kamplus/
Group: Productivity/Hamradio/Other
Source: kamplus-qt-1.1.2b.src.tar.bz2
Source1: kam-qt.desktop
Patch0: kam-qt.dif
Patch1: kam-qt-2.dif
Requires(pre): /usr/sbin/groupadd
Patch2: kam-qt_deprecated_header.diff
Patch3: 11.2.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: qt3-devel
BuildRequires: update-desktop-files
BuildRequires: xorg-x11-devel
%description
Host mode terminal program for the Kam Plus TNC.
It supports all host mode functions available with the TNC, being capable of providing multiple connections on VHF and HF packet, or simultaneous VHF packet and HF Tor (pactor, amtor and gtor) connections. Each channel is allocated a separate screen which can selected from the keyboard.
Authors:
--------
Chris Vine <chris@cvine.freeserve.co.uk>
%prep
%setup -q -n kam-qt
%patch0
%patch1 -p1
%if 0%{?suse_version} > 1030
%patch2 -p1
%endif
%if 0%{?suse_version} > 1110
%patch3 -p1
%endif
%build
autoreconf --force --install
QTDIR=/usr/%_lib/qt3 \
./configure \
--with-qt-dir=/usr/lib/qt3 \
--with-qt-libraries=/usr/lib/qt3/%_lib
make
%install
rm -rf $RPM_BUILD_ROOT
INSTALLDIR=${RPM_BUILD_ROOT}/var/lib/kamplus
BINDIR=${RPM_BUILD_ROOT}/usr/bin
ETCDIR=${RPM_BUILD_ROOT}/etc
mkdir -p ${BINDIR} ${ETCDIR}
install -d -m775 ${INSTALLDIR}
install -d -m775 ${INSTALLDIR}/parms
install -m4750 kam-qt endhost ${BINDIR}
install -m664 cq messages helpfile-qt ${INSTALLDIR}
install -m664 tnc.parms home away ${INSTALLDIR}/parms
install -m664 kamrc ${ETCDIR}
%suse_update_desktop_file -i kam-qt Network HamRadio
%clean
rm -rf $RPM_BUILD_ROOT
%pre
/usr/sbin/groupadd -g %{localham_group} -o -r localham 2> /dev/null || :
%files
%defattr(-,root,root)
%doc BUGS CONNECT_SCRIPTS HISTORY README README.SuSE
%config %attr(664,root,localham) /etc/kamrc
%dir %attr(775,root,localham) /var/lib/kamplus
%verify(not mode) %attr(0750,root,localham) /usr/bin/kam-qt
%verify(not mode) %attr(0750,root,localham) /usr/bin/endhost
%attr(664,root,localham) /var/lib/kamplus/cq
%attr(664,root,localham) /var/lib/kamplus/helpfile-qt
%attr(664,root,localham) /var/lib/kamplus/messages
%dir %attr(775,root,localham) /var/lib/kamplus/parms
%config %attr(664,root,localham) /var/lib/kamplus/parms/away
%config %attr(664,root,localham) /var/lib/kamplus/parms/home
%config %attr(664,root,localham) /var/lib/kamplus/parms/tnc.parms
/usr/share/applications/kam-qt.desktop
%changelog
* Thu Feb 13 2013 - dl8fcl@darc.de
- fix for12.3, run_permissions removed
* Tue Jun 12 2012 - dl8fcl@darc.de
- fixed BuildRequires for 12.2, licence tag updated
* Tue Feb 22 2011 - dl8fcl@darc.de
- fix for 11.4
* Thu May 13 2010 - dl8fcl@darc.de
- fix BuildRequires for openSUSE_Factory
* Tue Oct 27 2009 - dl8fcl@t-online.de
- fix for openSUSE 11.2
* Sat Jun 06 2008 - dg7gt@online.de
- fixed headers for GCC 4.3
- ready for OpenSUSE 11.0
* Thu Feb 22 2007 - dl9pf@gmx.de
- import into buildservice
* Tue Apr 06 2004 - pmladek@suse.cz
- fixed typo in %%pre, so the group localham is really created now [#38473]
* Thu Feb 26 2004 - hmacht@suse.de
- building as non-root (added flag # norootforbuild)
* Wed Feb 18 2004 - jreuter@suse.de
- fixed spec file to build as non-root user
* Wed Nov 05 2003 - ro@suse.de
- package according to permissions.secure and add run_permissions
* Sat Aug 16 2003 - adrian@suse.de
- add desktop file
* Wed Jun 18 2003 - ro@suse.de
- remove unpackaged files from buildroot
* Mon Feb 17 2003 - jreuter@suse.de
- update to version 1.1.2a
* Thu Jul 04 2002 - ro@suse.de
- create group localham if missing
* Thu May 23 2002 - ro@suse.de
- update to 1.1.1 using qt3
- patch for clean compilation with gcc-3.1
* Sun Apr 14 2002 - coolo@suse.de
- fixed for gcc-3.1
* Tue Feb 12 2002 - jreuter@suse.de
- update to version 1.0.8f
- according to author compiles on QT-3 and with gcc-3 now
* Tue Nov 13 2001 - ro@suse.de
- fixed neededforbuild to really use QT2
* Fri Jun 22 2001 - jreuter@suse.de
- configure finds QT libraries again...
* Tue Apr 24 2001 - jreuter@suse.de
- standard texts, KAM initialization and write log are now in
/var/lib/kamplus
* Tue Apr 24 2001 - jreuter@suse.de
- updated to 1.0.7a
- fixed file permissions: kam-qt and endhost can be executed only by
members of the "localham" group
- members of "localham" can modify the configuration of kamplus-qt,
however if you really trust someone enough to allow access to your
hamradio rig trusting him to not fiddle with the application is a
minor question...
* Wed Apr 04 2001 - schwab@suse.de
- Fix missing declarations.
* Thu Nov 30 2000 - jreuter@suse.de
- changed group to X11/Applications/Hamradio
* Mon Nov 20 2000 - bubnikv@suse.cz
- fixed file privilegues
* Mon Nov 06 2000 - bubnikv@suse.cz
- updated to 1.0.4
- binaries are now in uucp group
* Fri Jun 09 2000 - bubnikv@suse.cz
- updated to 0.97-5
* Fri May 19 2000 - bubnikv@suse.cz
- update to version 0.97-4
- added buildroot, moved /usr/lib/kamdir to /usr/lib/kamplus
* Wed Mar 08 2000 - ro@suse.de
- fixed to compile
* Tue Mar 07 2000 - ka@suse.de
- update to version qt-0.97-1
* Fri Jan 28 2000 - ro@suse.de
- fixed to compile
* Mon Sep 13 1999 - bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Tue Aug 24 1999 - uli@suse.de
- added -fsigned-char to CFLAGS (PPC)
* Mon Jul 05 1999 - ka@suse.de
- update to version 0.95
* Mon Jun 07 1999 - ka@suse.de
- update to version 0.94
* Sat May 29 1999 - ka@suse.de
- update to version 0.93
* Fri May 07 1999 - ka@suse.de
- initial release