From ebcb3b4fbb4f5aa5d542fe477b39fb6e6bf767bd Mon Sep 17 00:00:00 2001 From: Lucian Langa Date: Nov 23 2008 18:54:01 +0000 Subject: initial import --- diff --git a/.cvsignore b/.cvsignore index e69de29..f2d8ffc 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +qle-0.0.10.tar.gz diff --git a/qle-configlocation.patch b/qle-configlocation.patch new file mode 100644 index 0000000..9d6d7b9 --- /dev/null +++ b/qle-configlocation.patch @@ -0,0 +1,18 @@ +diff -up ./qle-0.0.10.pl.orig ./qle-0.0.10.pl +--- ./qle-0.0.10.pl.orig 2007-12-06 18:58:16.000000000 -0700 ++++ ./qle-0.0.10.pl 2007-12-06 18:58:32.000000000 -0700 +@@ -57,9 +57,10 @@ + my $sprogName = basename($progName); + $progName =~ s/^\.\///; # Zap leading './' + +- my $configFile = $progName; +- $configFile =~ s/.pl$//; +- $configFile = "$configFile.conf"; ++ my $configFile = "/etc/qle/qle.conf"; ++# my $configFile = $progName; ++# $configFile =~ s/.pl$//; ++# $configFile = "$configFile.conf"; + + my $copyRight = " + + diff --git a/qle-sh.patch b/qle-sh.patch new file mode 100644 index 0000000..6552707 --- /dev/null +++ b/qle-sh.patch @@ -0,0 +1,17 @@ +diff -up qle-0.0.7/qle.sh.orig qle-0.0.7/qle.sh +--- qle-0.0.7/qle.sh.orig 2007-12-08 10:15:59.000000000 +0100 ++++ qle-0.0.7/qle.sh 2007-12-08 10:23:51.000000000 +0100 +@@ -1,3 +1,4 @@ ++#!/bin/bash + # Suggested start-up script for 'qle' + # + # Using a start-up shell script allows you to set the X-window font +@@ -6,6 +7,6 @@ + # '--' options are interpreted by qle, e.g. '--splitScreen'. + # '-' options are for the window manager, e.g '-geometry'. + # +-cd ~/qle-0.0.10 +-perl qle-0.0.10.pl -font "terminus-bold-14" -geometry "800x680+100+20" --splitScreen=0 $1 $2 $3 $4 ++cd /usr/share/qle ++perl /usr/share/qle/qle-0.0.10.pl -font "terminus-bold-14" -geometry "800x680+100+20" --splitScreen=0 $1 $2 $3 $4 + diff --git a/qle.desktop b/qle.desktop new file mode 100644 index 0000000..17ee89e --- /dev/null +++ b/qle.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=qle +GenericName=qle +Comment=A QSO Logger and log Editor +Exec=qle +Icon=qle +Terminal=false +Type=Application +Categories=HamRadio; +Version=1.0 diff --git a/qle.png b/qle.png new file mode 100644 index 0000000..b4857a9 Binary files /dev/null and b/qle.png differ diff --git a/qle.spec b/qle.spec new file mode 100644 index 0000000..692db04 --- /dev/null +++ b/qle.spec @@ -0,0 +1,120 @@ +Name: qle +Version: 0.0.10 +Release: 5%{?dist} +Summary: A QSO Logger and log Editor + +Group: Applications/Communications +License: GPLv2+ +URL: http://home.kpnplanet.nl/~w.knol18@kpnplanet.nl/qle/qle.html +Source0: http://home.kpnplanet.nl/~w.knol18@kpnplanet.nl/%{name}/%{name}-%{version}.tar.gz +Source1: qle.desktop +Source2: qle.png +#add script shebang & fix paths +Patch0: qle-sh.patch +#Fix configuration path +Patch1: qle-configlocation.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch + +Requires: perl, perl(DBI), perl(DBD::SQLite), perl(Tk) +#Needs hamlib package rebuild with perl bindings included +Requires: hamlib-perl +Requires: cwdaemon +BuildRequires: desktop-file-utils + +%description +The qle-package is a graphic QSO log viewer, log editor and QSO logger +for amateur radio operators. + +'qle' stands for QSO Logger and Editor. It is a Perl/Tk script that +logs (or modifies) QSOs directly in a fast and light-weight SQLite +database. + +The term QSO comes from Q code used in commercial and amateur radio +communication and in refers to a radio contact. + +Intended use: casual logging of rag-chew and contest QSOs. The logger +caters for CW operators. + +Table headings, fonts, colours and other attributes are set in a +user-editable configuration file. The SQLite log schema supplied may +be altered to suit your taste, provided the configuration file is +updated accordingly. + + + +%prep +%setup -q +%patch0 -p1 +%patch1 -p1 + +%build +#no build needed + +%install +rm -rf $RPM_BUILD_ROOT +install -p -D -m 0644 kiwi-blk-52x52.xbm $RPM_BUILD_ROOT%{_datadir}/%{name}/kiwi-blk-52x52.xbm +install -p -D -m 0644 foo3.db $RPM_BUILD_ROOT%{_datadir}/%{name}/foo3.db +install -p -D -m 0755 adifimport.pl $RPM_BUILD_ROOT%{_datadir}/%{name}/adifimport.pl +install -p -D -m 0755 cabrilloimport.pl $RPM_BUILD_ROOT%{_datadir}/%{name}/cabrilloimport.pl +install -p -D -m 0755 qle-%{version}.pl $RPM_BUILD_ROOT%{_datadir}/%{name}/qle-%{version}.pl +install -p -D -m 0755 showfonts.pl $RPM_BUILD_ROOT%{_datadir}/%{name}/showfonts.pl +install -p -D -m 0755 showcolor.pl $RPM_BUILD_ROOT%{_datadir}/%{name}/showcolor.pl +install -p -D -m 0644 master.scp $RPM_BUILD_ROOT%{_datadir}/%{name}/master.scp +install -p -D -m 0644 cty.dat $RPM_BUILD_ROOT%{_datadir}/%{name}/cty.dat +install -p -D -m 0755 qle.sh $RPM_BUILD_ROOT%{_bindir}/qle +install -p -D -m 0644 qle-%{version}.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/qle.conf +mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/ +cp %{SOURCE2} ${RPM_BUILD_ROOT}%{_datadir}/pixmaps/%{name}.png +desktop-file-install \ + --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE1} + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc AUTHORS BUGS NEWS README TODO COPYING +%dir /etc/%{name} +%config(noreplace) /etc/%{name}/%{name}.conf +%{_bindir}/%{name} +%{_datadir}/%{name} +%{_datadir}/pixmaps/%{name}.png +%{_datadir}/applications/*%{name}.desktop + + +%changelog +* Sun Nov 23 2008 Lucian Langa - 0.0.10-5 +- add missing patch + +* Sun Nov 23 2008 Lucian Langa - 0.0.10-4 +- add missing patch + +* Thu Nov 20 2008 Lucian Langa - 0.0.10-3 +- fix unowned dir +- fix description + +* Thu Aug 28 2008 Lucian Langa - 0.0.10-2 +- added desktop/icon file + +* Wed Aug 20 2008 Lucian Langa - 0.0.10-1 +- Misc cleanups +- Version Update + +* Sat Feb 16 2008 Robert 'Bob' Jensen 0.0.8-1 +- Version Update +* Fri Dec 07 2007 Robert 'Bob' Jensen 0.0.7-3 +- Fix file permissions +- Update launcher scripts +- Add missing files +- Update license tag +- Make package noarch +- Add cwdaemon dependency +* Fri Dec 07 2007 Robert 'Bob' Jensen 0.0.7-2 +- Fixed File Paths + +* Tue Nov 20 2007 Robert 'Bob' Jensen 0.0.7-1 +- Initial SPEC + diff --git a/sources b/sources index e69de29..9ce6e0d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6183fe85dc894717e2fd0b72028be107 qle-0.0.10.tar.gz