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
Url:            http://svxlink.sourceforge.net/
Group:          Productivity/Hamradio/Other
Source:         %{name}-%{version}.tar.gz
Source1:        svxlink-sounds-en_US-heather-16k-%{SOUNDS}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
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

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

%build
cd src
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
      -DSYSCONF_INSTALL_DIR=/etc \
      -DLOCAL_STATE_DIR=/var ../
make %{?_smp_mflags}
make man

%install
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
%defattr(-,root,root)
%doc src/svxlink/ChangeLog
%{_bindir}/svxlink
%{_bindir}/remotetrx
%{_bindir}/siglevdetcal
%{_datadir}/svxlink
%{_datadir}/doc/svxlink
%config(noreplace) %{_sysconfdir}/svxlink
%dir %{_libdir}/svxlink
%{_libdir}/svxlink/Module*.so
%{_mandir}/man1/devcal.1.gz
%{_mandir}/man1/remotetrx.1.gz
%{_mandir}/man1/siglevdetcal.1.gz
%{_mandir}/man1/svxlink.1.gz
%{_mandir}/man5/ModuleDtmfRepeater.conf.5.gz
%{_mandir}/man5/ModuleEchoLink.conf.5.gz
%{_mandir}/man5/ModuleHelp.conf.5.gz
%{_mandir}/man5/ModuleParrot.conf.5.gz
%{_mandir}/man5/ModulePropagationMonitor.conf.5.gz
%{_mandir}/man5/ModuleSelCallEnc.conf.5.gz
%{_mandir}/man5/ModuleTclVoiceMail.conf.5.gz
%{_mandir}/man5/remotetrx.conf.5.gz
%{_mandir}/man5/svxlink.conf.5.gz
%exclude %{_includedir}/svxlink

%files -n qtel
%defattr(-,root,root)
%doc src/qtel/ChangeLog
%{_bindir}/qtel
%{_datadir}/qtel
%{_datadir}/icons/link.xpm
%{_datadir}/applications/qtel.desktop
%{_mandir}/man1/qtel.1.gz

%files -n libecholib1_3
%defattr(-,root,root)
%doc src/echolib/ChangeLog COPYRIGHT
%{_libdir}/libecholib.so.*

%files -n libecholib1_3-devel
%defattr(-,root,root)
%dir %{_includedir}/svxlink
%{_includedir}/svxlink/EchoLink*
%{_libdir}/libecholib.so

%files -n libasync
%defattr(-,root,root)
%doc src/async/ChangeLog
%{_libdir}/libasyncaudio.so.*
%{_libdir}/libasynccore.so.*
%{_libdir}/libasynccpp.so.*
%{_libdir}/libasyncqt.so.*

%files -n libasync-devel
%defattr(-,root,root)
%dir %{_includedir}/svxlink
%{_includedir}/svxlink/Async*
%{_libdir}/libasyncaudio.so
%{_libdir}/libasynccore.so
%{_libdir}/libasynccpp.so
%{_libdir}/libasyncqt.so

%changelog
openSUSE Build Service is sponsored by