File svxlink.spec of Package svxlink

# spec file for package svxlink

BuildRequires:  alsa-devel
BuildRequires:  cmake
BuildRequires:  doxygen
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  groff-full
BuildRequires:  gzip
BuildRequires:  libgcrypt-devel
BuildRequires:  libgsm-devel
BuildRequires:  libopus-devel
BuildRequires:  libqt4-devel
BuildRequires:  libsigc++2-devel
BuildRequires:  libtiff-devel
BuildRequires:  popt-devel
BuildRequires:  pwdutils
BuildRequires:  rtl-sdr-devel
BuildRequires:  spandsp-devel
BuildRequires:  speex-devel
BuildRequires:  tcl-devel
BuildRequires:  update-desktop-files

# Version for the Qtel application
%define QTEL			1.2.2

# Version for the EchoLib library
%define ECHOLIB			1.3.2

# Version for the Async library
%define LIBASYNC		1.4.0

# SvxLink versions
%define SVXLINK			1.5.0
%define REMOTERX      	      	1.2.0

# Sounds version
%define SOUNDS                  13.12

Name:           svxlink
Version:        15.11
Release:        0
License:        GPL-2.0
Summary:        Multi purpose voice services system for ham radio
Group:          Productivity/Hamradio/Other
Source:         %{name}-%{version}.tar.gz
Source1:        svxlink-sounds-en_US-heather-16k-%{SOUNDS}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

The SvxLink project is a multi purpose voice services system for
ham radio use. For example, EchoLink connections are supported.
Also, the SvxLink server can act as a repeater controller.

Author Tobias Blomberg (SM0SVX)

%package -n svxlink-server
Version:        %{SVXLINK}
Summary:        SvxLink - A general purpose voice services system
Group:          Productivity/Hamradio/Other
Requires:       logrotate
Requires:       pwdutils

%description -n svxlink-server
The SvxLink server is a general purpose voice services system for ham radio use.
Each voice service is implemented as a plugin called a module. Some examples of
voice services are: Help system, Simplex repeater, EchoLink connection.

The core of the system handle the radio interface and is quite flexible as well.
It can act both as a simplex node and as a repeater controller.

%package -n qtel
Version:        %{QTEL}
Summary:        The QT EchoLink Client
Group:          Productivity/Hamradio/Other

%description -n qtel
This package contains Qtel, the Qt EchoLink client. It is an implementation of
the EchoLink software in Qt. This is only an EchoLink client, that is it can not
be connected to a transciever to create a link. If it is a pure link node you
want, install the svxlink-server package.

%package -n libecholib1_3
Version:        %{ECHOLIB}
Summary:        EchoLink library
Group:          Productivity/Hamradio/Other

%description -n libecholib1_3
EchoLink communications library

%package -n libecholib1_3-devel
Version:        %{ECHOLIB}
Summary:        Development files for the EchoLink
Group:          Development/Libraries/Other
Requires:       libecholib1_3 = %{version}

%description -n libecholib1_3-devel
Development files for the EchoLink communications library

%package -n libasync
Version:        %{LIBASYNC}
Summary:        SvxLink Async libs
Group:          Productivity/Hamradio/Other

%description -n libasync
The Async library files.

%package -n libasync-devel
Version:        %{LIBASYNC}
Summary:        SvxLink Async development files
Group:          Development/Libraries/Other
Requires:       libasync = %{version}

%description -n libasync-devel
The Async library development files

tar -xjvf $RPM_SOURCE_DIR/svxlink-sounds-en_US-heather-16k-%{SOUNDS}.tar.bz2

cd src
mkdir build
cd build
      -DLOCAL_STATE_DIR=/var ../
make %{?_smp_mflags}
make man

cd src/build
make DESTDIR=%{buildroot} install
cd ../..
cp -r en_US-heather-16k/* %{buildroot}%{_datadir}/svxlink/sounds

%suse_update_desktop_file -c qtel Qtel "EchoLink Client" qtel "/usr/share/icons/link.xpm" "Network;HamRadio"

%fdupes -s %{buildroot}

%post -n libecholib1_3 -p /sbin/ldconfig
%postun -n libecholib1_3 -p /sbin/ldconfig

%post -n libasync -p /sbin/ldconfig
%postun -n libasync -p /sbin/ldconfig

%files -n svxlink-server
%doc src/svxlink/ChangeLog
%config(noreplace) %{_sysconfdir}/svxlink
%dir %{_libdir}/svxlink
%exclude %{_includedir}/svxlink

%files -n qtel
%doc src/qtel/ChangeLog

%files -n libecholib1_3
%doc src/echolib/ChangeLog COPYRIGHT

%files -n libecholib1_3-devel
%dir %{_includedir}/svxlink

%files -n libasync
%doc src/async/ChangeLog

%files -n libasync-devel
%dir %{_includedir}/svxlink

openSUSE Build Service is sponsored by