kopia lustrzana https://github.com/Hamlib/Hamlib
Initial release
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@591 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.1.2
rodzic
da4dc6a979
commit
9a162c991c
|
@ -0,0 +1,150 @@
|
|||
%define ver @VERSION@
|
||||
%define prefix /usr
|
||||
|
||||
Summary: Run-time library to control radio transcievers and receivers.
|
||||
Name: hamlib
|
||||
Version: %ver
|
||||
Release: 1
|
||||
Copyright: LGPL
|
||||
Group: Ham/Libraries
|
||||
Packager: Stephane Fillod <f4cfe@users.sourceforge.net>
|
||||
Source: ftp://ftp.sourceforge.net/pub/sourceforge/hamlib/hamlib-%{ver}.tar.gz
|
||||
BuildRoot: /tmp/hamlib-%{ver}-buildroot
|
||||
URL: http://hamlib.sourceforge.net
|
||||
#BuildRequires: binutils >= 2.9.4, gcc >= 2.95, glibc-devel >= 2.1
|
||||
#BuildRequires: /bin/sh, fileutils, findutils, flex
|
||||
#BuildRequires: gzip, make >= 3.77, patch >= 2.5, rpm >= 3.0, sed
|
||||
#BuildRequires: textutils
|
||||
##BuildRequires: /bin/sh, automake >= 1.4, libtool >= 1.4, fileutils, findutils, flex
|
||||
|
||||
%changelog
|
||||
|
||||
* Mon Jul 18 2001 Stephane Fillod
|
||||
- Made initial "working" SPEC file
|
||||
|
||||
|
||||
%description
|
||||
Most recent amateur radio transceivers allow external control of their
|
||||
functions through a computer interface. Unfortunately, control commands are
|
||||
not always consistent across a manufacturer's product line and each
|
||||
manufacturer's product line differs greatly from its competitors.
|
||||
.
|
||||
This library addresses that issue by providing a standardised programming
|
||||
interface that applications can talk to and translating that into the
|
||||
appropriate commands required by the radio in use.
|
||||
.
|
||||
This package provides the run-time form of the library. If you wish to
|
||||
develop software using this library you need the 'hamlib-devel' package.
|
||||
.
|
||||
Also included in the package is a simple radio control program 'rigctl',
|
||||
which let one control a radio transceiver or receiver, either from
|
||||
command line interface or in a text-oriented interactive interface.
|
||||
|
||||
%package devel
|
||||
Summary: Development library to control radio transcievers and receivers.
|
||||
Group: Development/Libraries
|
||||
Requires: hamlib
|
||||
|
||||
%description devel
|
||||
Most recent amateur radio transceivers allow external control of their
|
||||
functions through a computer interface. Unfortunately, control commands are
|
||||
not always consistent across a manufacturer's product line and each
|
||||
manufacturer's product line differs greatly from its competitors.
|
||||
.
|
||||
This library addresses that issue by providing a standardised programming
|
||||
interface that applications can talk to and translating that into the
|
||||
appropriate commands required by the radio in use.
|
||||
.
|
||||
This package provides the development library. If you wish to run applications
|
||||
developed using this library you'll need the 'hamlib' package.
|
||||
|
||||
%package c++
|
||||
Summary: Hamlib radio control library C++ bindings
|
||||
Group: Development/Libraries
|
||||
Requires: hamlib
|
||||
|
||||
%description c++
|
||||
C++ Bindings.
|
||||
|
||||
%package c++-devel
|
||||
Summary: Hamlib radio control library C++ bindings headers and static libs
|
||||
Group: Development/Libraries
|
||||
Requires: hamlib
|
||||
|
||||
%description c++-devel
|
||||
This package contains all of the headers and the static libraries
|
||||
for C++ bindings of Hamlib.
|
||||
|
||||
You'll only need this package if you
|
||||
are doing development.
|
||||
|
||||
%prep
|
||||
#%setup -q
|
||||
%setup
|
||||
%build
|
||||
|
||||
CFLAGS=$RPM_OPT_FLAGS CXXFLAGS=$RPM_OPT_FLAGS ./configure --prefix=%prefix
|
||||
make
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
(umask 077 && mkdir -p $RPM_BUILD_ROOT)
|
||||
chmod go= $RPM_BUILD_ROOT
|
||||
|
||||
make prefix="$RPM_BUILD_ROOT%{prefix}" "INSTALL_PROGRAM_ARGS=-s" install
|
||||
|
||||
chmod 644 $RPM_BUILD_ROOT%{prefix}/lib/*.la
|
||||
#strip $RPM_BUILD_ROOT%{prefix}/lib/*-%{version}.so
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
|
||||
%files
|
||||
%defattr(644, root, root, 755)
|
||||
%doc COPYING
|
||||
|
||||
#%doc doc/*.html
|
||||
#%doc doc/*.sgml
|
||||
#%doc doc/*.txt
|
||||
|
||||
%defattr(755, root, root, 755)
|
||||
#%{prefix}/lib/libhamlib-%{version}.so
|
||||
%{prefix}/lib/libhamlib-*.so
|
||||
|
||||
%{prefix}/bin/rigctl
|
||||
%{prefix}/man/man1/rigctl.1
|
||||
|
||||
%files devel
|
||||
%defattr(644, root, root, 755)
|
||||
|
||||
%{prefix}/include/hamlib/rig.h
|
||||
%{prefix}/include/hamlib/rig_dll.h
|
||||
%{prefix}/include/hamlib/riglist.h
|
||||
|
||||
#%{prefix}/share/aclocal/hamlib.m4
|
||||
%{prefix}/lib/libhamlib.a
|
||||
%{prefix}/lib/libhamlib.la
|
||||
%{prefix}/lib/libhamlib-*.a
|
||||
%{prefix}/lib/libhamlib-*.la
|
||||
|
||||
%files c++
|
||||
%defattr(755, root, root, 755)
|
||||
%{prefix}/lib/libhamlib++-%{version}.so
|
||||
|
||||
|
||||
%files c++-devel
|
||||
%defattr(644, root, root, 755)
|
||||
|
||||
%{prefix}/include/hamlib/rigclass.h
|
||||
|
||||
#%{prefix}/share/aclocal/hamlib++.m4
|
||||
%{prefix}/lib/libhamlib++.a
|
||||
%{prefix}/lib/libhamlib++.la
|
||||
|
||||
|
|
@ -0,0 +1,209 @@
|
|||
.\" Hey, EMACS: -*- nroff -*-
|
||||
.\" First parameter, NAME, should be all caps
|
||||
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
||||
.\" other parameters are allowed: see man(7), man(1)
|
||||
.TH RIGCTL "1" "July 20, 2001" "Hamlib"
|
||||
.\" Please adjust this date whenever revising the manpage.
|
||||
.\"
|
||||
.\" Some roff macros, for reference:
|
||||
.\" .nh disable hyphenation
|
||||
.\" .hy enable hyphenation
|
||||
.\" .ad l left justify
|
||||
.\" .ad b justify to both left and right margins
|
||||
.\" .nf disable filling
|
||||
.\" .fi enable filling
|
||||
.\" .br insert line break
|
||||
.\" .sp <n> insert n+1 empty lines
|
||||
.\" for manpage-specific macros, see man(7)
|
||||
.SH NAME
|
||||
rigctl \- control radio transcievers and receivers
|
||||
.SH SYNOPSIS
|
||||
.B rigctl
|
||||
[\fIOPTION\fR]... [\fICOMMAND\fR]...
|
||||
.SH DESCRIPTION
|
||||
Control radio transcievers and receivers.
|
||||
\fBrigctl\fP accepts \fBcommands\fP from command line as well as in
|
||||
interactive mode if none provided in command line.
|
||||
.PP
|
||||
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
|
||||
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
|
||||
.\" respectively.
|
||||
Keep in mind that \fBHamlib\fP is still ALPHA level software.
|
||||
A lof of stuff hasn't been tested thoroughly, and the API may change
|
||||
without publicised notice. Please report bugs and feedback at
|
||||
the e-mail address given in the REPORTING BUGS section.
|
||||
.SH OPTIONS
|
||||
This program follow the usual GNU command line syntax, with long
|
||||
options starting with two dashes (`-').
|
||||
A summary of options is included below.
|
||||
.TP
|
||||
.B \-m, \-\-model=id
|
||||
Select radio model number. See model list.
|
||||
.TP
|
||||
.B \-r, --rig-file=device
|
||||
Use \fBdevice\fP as the file name of the radio to operate on.
|
||||
.TP
|
||||
.B \-p, --ptt-file=device
|
||||
Use \fBdevice\fP as the file name of the Push-To-Talk device to operate on.
|
||||
.TP
|
||||
.B \-d, --dcd-file=device
|
||||
Use \fBdevice\fP as the file name of the Data Carrier Detect device
|
||||
to operate on.
|
||||
.TP
|
||||
.B \-p, --ptt-type=type
|
||||
Use \fBtype\fP device as the kind of the Push-To-Talk device to operate on.
|
||||
.TP
|
||||
.B \-d, --dcd-type=type
|
||||
Use \fBtype\fP device as the kind of the Data Carrier Detect device
|
||||
to operate on.
|
||||
.TP
|
||||
.B \-l, \-\-list
|
||||
List all model numbers and exit.
|
||||
.TP
|
||||
.B \-v, \-\-verbose
|
||||
Set verbose mode, cumulative.
|
||||
.TP
|
||||
.B \-h, \-\-help
|
||||
Show summary of options and exit.
|
||||
.TP
|
||||
.B \-V, \-\-version
|
||||
Show version of program and exit.
|
||||
|
||||
.SH COMMANDS
|
||||
Commands can be entered either as a single char, or as a long command name.
|
||||
Basically, the commands do not take a dash in front of them, as
|
||||
the options usually do. They may be typed in when in interactive mode
|
||||
or provided as argument in command line interface mode.
|
||||
Since most of the Hamlib operations have a \fIset\fP and a \fIget\fP method,
|
||||
upper case letter will be used for \fIset\fP method whereas the corresponding
|
||||
lower case letter refers to the \fIget\fP method.
|
||||
.PP
|
||||
Please note that the backend for the radio to be controlled,
|
||||
or the radio itself may not support some commands. In that case,
|
||||
the operation will fail with a standard error message.
|
||||
.PP
|
||||
A summary of commands is included below.
|
||||
.TP
|
||||
.B F, set_freq
|
||||
Set frequency.
|
||||
.TP
|
||||
.B f, get_freq
|
||||
Get frequency.
|
||||
.TP
|
||||
.B M, set_mode
|
||||
Set mode/passband.
|
||||
.TP
|
||||
.B m, get_mode
|
||||
Get mode/passband.
|
||||
.TP
|
||||
.B V, set_vfo
|
||||
Set VFO.
|
||||
.TP
|
||||
.B v, get_vfo
|
||||
Get VFO.
|
||||
.TP
|
||||
.B V, set_ptt
|
||||
Set PTT.
|
||||
.TP
|
||||
.B v, get_ptt
|
||||
Get PTT.
|
||||
.TP
|
||||
.B R, set_rptr_shift
|
||||
Set repeater shift.
|
||||
.TP
|
||||
.B r, get_rptr_shift
|
||||
Get repeater shift.
|
||||
.TP
|
||||
.B R, set_rptr_offs
|
||||
Set repeater offset.
|
||||
.TP
|
||||
.B r, get_rptr_offs
|
||||
Get repeater offset.
|
||||
.TP
|
||||
.B R, set_ctcss_tone
|
||||
Set CTCSS tone.
|
||||
.TP
|
||||
.B r, get_ctcss_tone
|
||||
Get CTCSS tone.
|
||||
.TP
|
||||
.B R, set_dcs_code
|
||||
Set DCS code.
|
||||
.TP
|
||||
.B r, get_dcs_code
|
||||
Get DCS code.
|
||||
.TP
|
||||
.B I, set_split_freq
|
||||
Set TX frequency.
|
||||
.TP
|
||||
.B i, get_split_freq
|
||||
Get TX frequency.
|
||||
.TP
|
||||
.B S, set_split
|
||||
Set split mode.
|
||||
.TP
|
||||
.B s, get_split
|
||||
Get split mode.
|
||||
.TP
|
||||
.B N, set_ts
|
||||
Set tuning step.
|
||||
.TP
|
||||
.B n, get_ts
|
||||
Get tuning step.
|
||||
.TP
|
||||
.B L, set_level
|
||||
Set level/value.
|
||||
.TP
|
||||
.B l, get_level
|
||||
Get level value.
|
||||
.TP
|
||||
.B U, set_func
|
||||
Set func/status.
|
||||
.TP
|
||||
.B u, get_func
|
||||
Get func status.
|
||||
.TP
|
||||
.B B, set_bank
|
||||
Set bank.
|
||||
.TP
|
||||
.B E, set_mem
|
||||
Set memory channel number.
|
||||
.TP
|
||||
.B e, get_mem
|
||||
Get memory channel number.
|
||||
.TP
|
||||
.B G, vfo_op
|
||||
Perform VFO operation.
|
||||
.TP
|
||||
.B g, scan_op
|
||||
Perform scan operation/channel.
|
||||
.TP
|
||||
.B E, set_channel
|
||||
Set memory channel data. does not work yet.
|
||||
.TP
|
||||
.B e, get_channel
|
||||
Get memory channel data.
|
||||
|
||||
.SH RETURN VALUE
|
||||
rigctl exits with:
|
||||
0 if all operations went fine; 1 if there was an invalid command line
|
||||
option or arg; or 2 if an error was returned by Hamlib.
|
||||
|
||||
.SH AUTHOR
|
||||
Written by Stephane Fillod.
|
||||
.SH BUGS
|
||||
Cannot target VFO. Use set_vfo as a workaround.
|
||||
.PP
|
||||
This empty section...
|
||||
.SH REPORTING BUGS
|
||||
Report bugs to <hamlib-developer@users.sourceforge.net>.
|
||||
.br
|
||||
I'm already aware of the bug in the previous section :-)
|
||||
.SH COPYRIGHT
|
||||
Copyright \(co 2000 Stephane Fillod & Frank Singleton.
|
||||
.br
|
||||
This is free software; see the source for copying conditions.
|
||||
There is NO warranty; not even for MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
.SH SEE ALSO
|
||||
.BR hamlib (3)
|
||||
|
Ładowanie…
Reference in New Issue