00f3098
%define main_version 090426
d9e869a
Name:		svxlink
d9e869a
Version:	%{main_version}
00f3098
Release:	1%{?dist}
d9e869a
Summary:	Repeater controller and EchoLink (simplex or repeater)
d9e869a
d9e869a
Group:		Applications/Internet
d9e869a
#files contained in sounds package are licensed under GPLv2
d9e869a
#the rest of files are licensed under GPLv2+
d9e869a
License:	GPLv2 and GPLv2+
d9e869a
URL:		http://svxlink.sourceforge.net
d9e869a
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
d9e869a
Source1:	http://downloads.sourceforge.net/%{name}/sounds-%{version}.tar.gz
00f3098
Patch0:		svxlink-%{main_version}-gcc44.patch
d9e869a
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
d9e869a
d9e869a
BuildRequires:	libsigc++-devel, libmng-devel, tcl-devel, qt3-devel, gsm-devel
00f3098
BuildRequires:	libXi-devel, popt-devel, speex-devel
00f3098
BuildRequires:	doxygen, desktop-file-utils, libgcrypt-devel
d9e869a
Requires (preun): chkconfig
d9e869a
Requires (preun): initscripts
d9e869a
Requires (post): chkconfig
d9e869a
Requires (postun): initscripts
d9e869a
d9e869a
%description
d9e869a
The SvxLink project is a multi purpose voice services system for
d9e869a
ham radio use. For example, EchoLink connections are supported.
d9e869a
Also, the SvxLink server can act as a repeater controller.
d9e869a
d9e869a
%package -n libasync
d9e869a
Summary: Svxlink async libs
d9e869a
Group: Development/Libraries
00f3098
Version: 0.17.0
d9e869a
d9e869a
%description -n libasync
00f3098
The Async library is a programming framework that is used to write event driven
00f3098
applications. It provides abstractions for file descriptor watches, timers,
00f3098
network communications, serial port communications and config file reading.
00f3098
00f3098
Async is written in such a way that it can support other frameworks. Right now
00f3098
there are two basic frameworks, a simple "select" based implementation and a Qt
00f3098
implementation. The idea is that advanced libraries can be implemented in such
00f3098
a way that they only depend on Async. That means that these libraries can be
00f3098
used in both Qt and pure console applications and in any future frameworks
00f3098
supported by Async (e.g. Gtk, wxWidgets etc).
00f3098
00f3098
Another big part of Async is the audio pipe framework. It is an audio handling
00f3098
framework that is geared towards single channel (mono) audio applications. The
00f3098
framework consists of a large number of audio handling classes such as
00f3098
audio i/o, filtering, mixing, audio codecs etc.
d9e869a
d9e869a
%package -n libasync-devel
d9e869a
Summary: Svxlink async development files
d9e869a
Group: Development/Libraries
00f3098
Version: 0.17.0
00f3098
Requires: libasync = 0.17.0
d9e869a
d9e869a
%description -n libasync-devel
d9e869a
The async library development files
d9e869a
d9e869a
%package -n echolib
d9e869a
Summary: EchoLink communications library
d9e869a
Group: Development/Libraries
00f3098
Version: 0.13.1
d9e869a
d9e869a
%description -n echolib
00f3098
EchoLib is a library that is used as a base for writing EchoLink applications.
00f3098
It implements the directory server protocol as well as the station to station
00f3098
protocol. EchoLink is used to link ham radio stations together over the
00f3098
Internet.
d9e869a
d9e869a
%package -n echolib-devel
d9e869a
Summary: Development files for the EchoLink communications library
d9e869a
Group: Development/Libraries
00f3098
Version: 0.13.1
00f3098
Requires: echolib = 0.13.1
d9e869a
d9e869a
%description -n echolib-devel
d9e869a
Development files for the EchoLink communications library
d9e869a
d9e869a
%package -n qtel
d9e869a
Summary: The Qt EchoLink Client
d9e869a
Group: Applications/Communications
00f3098
Version: 0.11.2
d9e869a
d9e869a
%description -n qtel
d9e869a
This package contains Qtel, the Qt EchoLink client. It is an implementation of
d9e869a
the EchoLink software in Qt. This is only an EchoLink client, that is it can
d9e869a
not be connected to a transciever to create a link. If it is a pure link node
d9e869a
you want, install the svxlink-server package.
d9e869a
d9e869a
%package -n svxlink-server
d9e869a
Summary: SvxLink - A general purpose voice services system
00f3098
Version: 0.11.1
d9e869a
Group: Applications/Communications
d9e869a
Requires: udev
d9e869a
Requires (pre): shadow-utils
d9e869a
d9e869a
%description -n svxlink-server
d9e869a
The SvxLink server is a general purpose voice services system for ham radio
d9e869a
use. Each voice service is implemented as a plugin called a module.
d9e869a
Some examples of voice services are: Help system, Simplex repeater,
00f3098
EchoLink communications and voice mail.
d9e869a
d9e869a
The core of the system handle the radio interface and is quite flexible
00f3098
as well. It can act both as a simplex node and as a repeater controller. It is
00f3098
also possible to link multiple receivers in via TCP/IP. The best receiver is
00f3098
chosen using a software voter.
d9e869a
d9e869a
%prep
d9e869a
%setup -q -n %{name}-%{main_version}
d9e869a
%setup -q -D -T -a 1 -n %{name}-%{main_version}
00f3098
%patch0 -p1 -b .gcc44
d9e869a
#sed -i -e "s/.SILENT://g" Makefile
d9e869a
#sed -i -e "s/.SILENT://g" makefile.sub
d9e869a
#make realclean
d9e869a
d9e869a
%build
d9e869a
#LDFLAGS="${LDFLAGS:--Wl,-as-needed}" ; export LDFLAGS
d9e869a
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS
d9e869a
make %{?_smp_mflags}
d9e869a
doxygen doxygen.async
d9e869a
doxygen doxygen.echolib
d9e869a
d9e869a
d9e869a
%install
d9e869a
rm -rf %{buildroot}
d9e869a
make INSTALL_ROOT=$RPM_BUILD_ROOT NO_CHOWN=1 LIB_INSTALL_DIR=%{_libdir} \
d9e869a
	INC_INSTALL_DIR=%{_includedir}/svxlink BIN_INSTALL_DIR=%{_bindir} \
d9e869a
	SBIN_INSTALL_DIR=%{_sbindir} PLUGIN_INSTALL_DIR=%{_libdir}/svxlink install
d9e869a
mkdir -p %{buildroot}%{_datadir}/svxlink
d9e869a
cp -a sounds %{buildroot}%{_datadir}/svxlink/
d9e869a
mkdir -p %{buildroot}%{_localstatedir}/log
d9e869a
touch %{buildroot}%{_localstatedir}/log/svxlink
d9e869a
touch %{buildroot}%{_localstatedir}/log/svxlink.{1,2,3,4}
d9e869a
desktop-file-install \
d9e869a
	--dir=%{buildroot}%{_datadir}/applications qtel/qtel.desktop
d9e869a
mv %{buildroot}%{_sysconfdir}/logrotate.d/svxlink %{buildroot}%{_sysconfdir}/logrotate.d/svxlink-server
d9e869a
sed -i -e "s/subsys\/\$PROG/subsys\/svxlink/g" %{buildroot}%{_sysconfdir}/init.d/svxlink
d9e869a
sed -i -e "s/subsys\/\$PROG/subsys\/remotetrx/g" %{buildroot}%{_sysconfdir}/init.d/remotetrx
d9e869a
#remove static libs
d9e869a
rm -f %{buildroot}%{_libdir}/libasync*.a
d9e869a
rm -f %{buildroot}%{_libdir}/libecholib.a
d9e869a
rm -f %{buildroot}%{_libdir}/libtrx.a
d9e869a
d9e869a
%post -n libasync -p /sbin/ldconfig
d9e869a
%postun -n libasync -p /sbin/ldconfig
d9e869a
d9e869a
%post -n echolib -p /sbin/ldconfig
d9e869a
%postun -n echolib -p /sbin/ldconfig
d9e869a
d9e869a
%pre -n svxlink-server
d9e869a
getent group daemon >/dev/null || groupadd -r daemon
d9e869a
getent passwd svxlink >/dev/null || \
d9e869a
useradd -r -g daemon -d / -s /sbin/nologin \
d9e869a
-c "SvxLink Daemon " svxlink
d9e869a
exit 0
d9e869a
d9e869a
%post -n svxlink-server
d9e869a
/sbin/chkconfig --add svxlink
d9e869a
d9e869a
%preun -n svxlink-server
d9e869a
if [ $1 = 0 ]; then
d9e869a
  /sbin/service svxlink stop >/dev/null 2>&1 || :
d9e869a
  /sbin/chkconfig --del svxlink
d9e869a
fi
d9e869a
d9e869a
%postun -n svxlink-server 
d9e869a
if [ "$1" -ge "1" ] ; then
d9e869a
 /sbin/service svxlink condrestart >/dev/null 2>&1 || :
d9e869a
fi
d9e869a
d9e869a
%clean
d9e869a
rm -rf %{buildroot}
d9e869a
d9e869a
d9e869a
%files -n libasync
d9e869a
%defattr(-,root,root,-)
d9e869a
%doc async/ChangeLog
d9e869a
%defattr(755,root,root)
d9e869a
%{_libdir}/libasync*.so.*
d9e869a
%{_libdir}/libasync*.*.so
d9e869a
d9e869a
%files -n libasync-devel
d9e869a
%defattr(-,root,root,-)
d9e869a
%doc doc/async/html
d9e869a
%{_libdir}/libasyncaudio.so
d9e869a
%{_libdir}/libasynccore.so
d9e869a
%{_libdir}/libasynccpp.so
d9e869a
%{_libdir}/libasyncqt.so
d9e869a
%dir %{_includedir}/svxlink
d9e869a
%{_includedir}/svxlink/Async*
d9e869a
%{_includedir}/svxlink/SigCAudio*.h
d9e869a
d9e869a
%files -n echolib
d9e869a
%defattr(-,root,root,-)
d9e869a
%doc echolib/ChangeLog
d9e869a
%defattr(755,root,root)
d9e869a
%{_libdir}/libecholib*.so.*
d9e869a
%{_libdir}/libecholib*.*.so
d9e869a
d9e869a
%files -n echolib-devel
d9e869a
%defattr(-,root,root,-)
d9e869a
%doc doc/echolib/html
d9e869a
%{_libdir}/libecholib.so
d9e869a
%dir %{_includedir}/svxlink
d9e869a
%{_includedir}/svxlink/EchoLink*
d9e869a
d9e869a
%files -n qtel
d9e869a
%defattr(-,root,root,-)
d9e869a
%doc qtel/ChangeLog
d9e869a
%{_bindir}/qtel
d9e869a
%{_datadir}/qtel
d9e869a
%{_datadir}/icons/link.xpm
d9e869a
%{_datadir}/applications/qtel.desktop
d9e869a
d9e869a
%files -n svxlink-server
d9e869a
%defattr(-,root,root,-)
d9e869a
%doc svxlink/ChangeLog
d9e869a
%{_bindir}/svxlink
d9e869a
%{_bindir}/remotetrx
d9e869a
%{_bindir}/siglevdetcal
d9e869a
%dir %{_libdir}/svxlink
d9e869a
%{_libdir}/svxlink/Module*.so
d9e869a
%dir %{_sysconfdir}/svxlink.d
d9e869a
%{_datadir}/svxlink
d9e869a
%defattr(644,root,root)
d9e869a
%config(noreplace) %{_sysconfdir}/svxlink.conf
d9e869a
%config(noreplace) %{_sysconfdir}/svxlink.d/*
d9e869a
%config(noreplace) %{_sysconfdir}/TclVoiceMail.conf
d9e869a
%config(noreplace) %{_sysconfdir}/logrotate.d/svxlink-server
d9e869a
%config(noreplace) %{_sysconfdir}/remotetrx.conf
d9e869a
%config(noreplace) %{_sysconfdir}/sysconfig/svxlink
d9e869a
%config(noreplace) %{_sysconfdir}/sysconfig/remotetrx
d9e869a
%config(noreplace) %{_sysconfdir}/security/console.perms.d/90-svxlink.perms
d9e869a
%config(noreplace) %{_sysconfdir}/udev/rules.d/10-svxlink.rules
d9e869a
%{_mandir}/man*/*
d9e869a
%attr(755,svxlink,daemon) %dir %{_localstatedir}/spool/svxlink
d9e869a
%attr(755,svxlink,daemon) %dir %{_localstatedir}/spool/svxlink/voice_mail
d9e869a
%defattr(755,root,root)
d9e869a
%{_datadir}/svxlink/event_test.tcl
d9e869a
%{_sysconfdir}/init.d/svxlink
d9e869a
%{_sysconfdir}/init.d/remotetrx
d9e869a
%defattr(644,root,root)
d9e869a
%ghost /var/log/*
d9e869a
d9e869a
%changelog
00f3098
* Sun May 31 2009 Lucian Langa <cooly@gnome.eu.org> - 090426-1
00f3098
- update BR
00f3098
- drop svxlink-devel package
00f3098
- updated descriptions
00f3098
- remove dtmf_plot
00f3098
- drop patch0,1,2,3 as were fixed upstream
00f3098
- new upstream release
00f3098
d9e869a
* Sun Dec 07 2008 Lucian Langa <cooly@gnome.eu.org> - 080730-6
d9e869a
- added udev dependency
d9e869a
- fixed libs permissions
d9e869a
- update scriptlets
d9e869a
d9e869a
* Sat Dec 06 2008 Lucian Langa <cooly@gnome.eu.org> - 080730-5
d9e869a
- license update
d9e869a
d9e869a
* Wed Dec 03 2008 Lucian Langa <cooly@gnome.eu.org> - 080730-4
d9e869a
- fix duplicated files
d9e869a
- remove static libraries
d9e869a
d9e869a
* Fri Nov 21 2008 Lucian Langa <cooly@gnome.eu.org> - 080730-3
d9e869a
- added fedora optflags
d9e869a
- fix unowned dirs
d9e869a
- spandsp 0.5 patch
d9e869a
- update BR
d9e869a
d9e869a
* Sun Aug 21 2008 Lucian Langa <cooly@gnome.eu.org> - 080730-2
d9e869a
- mangle svxlink conf to include correct libdir
d9e869a
- misc -devel clean
d9e869a
d9e869a
* Sun Aug 10 2008 Lucian Langa <cooly@gnome.eu.org> - 080730-1
d9e869a
- Initial spec (parts of it imported from upstream spec)
d9e869a
d9e869a