Name: echolinux Version: 0.17a Release: 4%{?dist} Summary: Linux echoLink client Group: Applications/Communications License: GPL+ URL: http://cqinet.sourceforge.net/ Source0: echolinux-0.17a-nogsm.tar.gz # We do not know the license for gsm.h (and libgsm.a) # We use this script to remove gsm.h and libgsm.a before shipping it. # Download the upstream tarball and invoke this script while in the # tarball's directory: # ./generate-echolinux-tarball.sh 1.0 Source1: generate-echolinux-tarball.sh #xform changed include paths - https://sourceforge.net/tracker/index.php?func=detail&aid=2198156&group_id=56357&atid=480282 Patch0: echolinux-0.17a-includes.patch #allow env install paths - https://sourceforge.net/tracker/index.php?func=detail&aid=2198185&group_id=56357&atid=480282 Patch1: echolinux-0.17a-installdir.patch #do not link against static library (packaged .la file) - https://sourceforge.net/tracker/index.php?func=detail&aid=2198200&group_id=56357&atid=480282 Patch2: echolinux-0.17a-nostatic.patch #prefer -O2 instead of -O3 Patch3: echolinux-0.17a-gcc.patch Patch4: echolinux-0.17a-optflags.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: xforms-devel, libXpm-devel, gsm-devel, desktop-file-utils #Requires: %description EchoLinux is a "command line" driven engine that performs all of the actions necessary to initiate sessions, accept connections and maintain connections with other echoLink users. It also handles the compression/decompression of the audio stream. %prep %setup -q %patch0 -p1 -b .includes %patch1 -p1 -b .installdir %patch2 -p1 -b .nostatic %patch3 -p1 -b .gcc %patch4 -p1 -b .optflags %{__sed} -i 's/\r//' Using_EchoLinux.txt %{__sed} -i 's/Encoding=UTF-8//g' %{name}.desktop %{__sed} -i 's/.png//g' %{name}.desktop %{__sed} -i 's/Application;Network;/HamRadio;/g' %{name}.desktop %build make %{?_smp_mflags} -e CFLAGS="%{optflags}" %install rm -rf %{buildroot} #fix perms on packages file chmod -x README mkdir -p %{buildroot}%{_bindir} make install DESTDIR=%{buildroot}%{_bindir} INSTALL="install -p" mkdir -p %{buildroot}%{_datadir}/pixmaps/ mkdir -p %{buildroot}%{_sysconfdir}/%{name} cp echolinux/*.txt echolinux/*.wav %{buildroot}%{_sysconfdir}/%{name} cp pixmaps/echolinux_48x48.png %{buildroot}%{_datadir}/pixmaps/ desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications %{name}.desktop %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc gpl.txt README Using_EchoLinux.txt %{_bindir}/echoaudio %{_bindir}/echogui %{_bindir}/echolinux %config(noreplace) %{_sysconfdir}/echolinux %{_datadir}/pixmaps/echolinux_48x48.png %{_datadir}/applications/%{name}.desktop %changelog * Fri Mar 13 2009 Lucian Langa - 0.17a-4 - license tag fix - fix compiler flags * Thu Mar 12 2009 Lucian Langa - 0.17a-3 - include correct file for tarball generation * Thu Dec 11 2008 Lucian Langa - 0.17a-2 - remove gsm.h and libgsm.a (license issue) * Sun Sep 14 2008 Lucian Langa - 0.17a-1 - initial specfile