14da48a
Name: soundmodem
b019ef3
Version: 0.14
ccd7e75
Release: 2%{?dist}
14da48a
Summary: Soundcard Packet Radio Modem
14da48a
Group: Applications/Communications
14da48a
License: GPLv2+
14da48a
URL: http://www.baycom.org/~tom/ham/soundmodem/
14da48a
Source: http://www.baycom.org/~tom/ham/soundmodem/%{name}-%{version}.tar.gz
14da48a
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
14da48a
# Requires: /sbin/ifconfig /sbin/route /sbin/arp
c4aa763
BuildRequires: gtk2-devel
14da48a
BuildRequires: alsa-lib-devel
c4aa763
BuildRequires: libxml2-devel
14da48a
BuildRequires: audiofile-devel
14da48a
Requires (preun): chkconfig
14da48a
Requires (preun): initscripts
14da48a
Requires (post): chkconfig
14da48a
Requires(postun): initscripts
14da48a
14da48a
14da48a
%description
14da48a
This package contains the driver and the diagnostic utility for
14da48a
userspace SoundModem. It allows you to use soundcards 
14da48a
as Amateur Packet Radio modems.
14da48a
14da48a
%package devel
14da48a
14da48a
Summary:        Development files for %{name}
14da48a
Group:          Development/Libraries
14da48a
Requires:       %{name} = %{version}-%{release}
14da48a
14da48a
%description    devel
14da48a
The %{name}-devel package contains libraries and header files for
14da48a
developing applications that use %{name}.
14da48a
14da48a
%prep
14da48a
%setup -q
14da48a
14da48a
%build
ba2f301
#autoreconf -if
14da48a
%configure 
14da48a
make %{?_smp_mflags}
14da48a
14da48a
%install
14da48a
rm -rf %{buildroot}
14da48a
%makeinstall
14da48a
find %{buildroot} -name '*.la' -exec rm -f {} ';'
14da48a
mkdir -p %{buildroot}%{_sysconfdir}
14da48a
mkdir -p %{buildroot}%{_sysconfdir}/{ax25,rc.d/init.d}
14da48a
sed -i -e "s/# chk.*/# chkconfig: - 50 50/g" soundmodem.initscript
14da48a
install -p -m 755 soundmodem.initscript %{buildroot}%{_sysconfdir}/rc.d/init.d/soundmodem
14da48a
mkdir -p %{buildroot}%{_includedir}/%{name}
14da48a
mv %{buildroot}%{_includedir}/modem.h %{buildroot}%{_includedir}/%{name}
14da48a
mv %{buildroot}%{_includedir}/simd.h %{buildroot}%{_includedir}/%{name}
ba2f301
%find_lang %{name}
14da48a
14da48a
%clean
14da48a
rm -rf %{buildroot}
14da48a
14da48a
%post
14da48a
/sbin/chkconfig --add soundmodem
14da48a
14da48a
%preun
14da48a
if [ $1 = 0 ]; then
14da48a
 /sbin/service soundmodem stop > /dev/null 2>&1
14da48a
 /sbin/chkconfig --del soundmodem
14da48a
fi
14da48a
14da48a
%postun
14da48a
if [ "$1" -ge "1" ] ; then
14da48a
 /sbin/service soundmodem condrestart >/dev/null 2>&1 || :
14da48a
fi
14da48a
14da48a
ba2f301
%files -f %{name}.lang
14da48a
%defattr(-, root, root, -)
b019ef3
%{_sbindir}/*
b019ef3
%{_bindir}/*
b019ef3
%{_mandir}/*/*
b019ef3
%{_initddir}/soundmodem
14da48a
%doc AUTHORS COPYING ChangeLog NEWS README newqpsk/README.newqpsk
14da48a
14da48a
%files devel
14da48a
%defattr(-,root,root,-)
14da48a
%{_includedir}/%{name}
14da48a
14da48a
%changelog
ccd7e75
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14-2
ccd7e75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ccd7e75
b019ef3
* Wed Jul 01 2009 Lucian Langa <cooly@gnome.eu.org> - 0.14-1
b019ef3
- new upstream release
b019ef3
c276463
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-2
c276463
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c276463
ba2f301
* Thu Feb 19 2009 Lucian Langa <cooly@gnome.eu.org> - 0.12-1
c4aa763
- update BR
ba2f301
- drop autoreconf
ba2f301
- drop all patches as fixed ustream
ba2f301
- new upstream release
ba2f301
1bf4146
* Sun Jan 25 2009 Lucian Langa <cooly@gnome.eu.org> - 0.10-6
1bf4146
- apply debian patch for tx switching in ALSA mode 
1bf4146
14da48a
* Sat Dec 06 2008 Alan Crosswell <alan@columbia.edu> - 0.10-5
14da48a
- Apply patch to remove spurious printfs.
14da48a
14da48a
* Wed Dec 03 2008 Lucian Langa <cooly@gnome.eu.org> - 0.10-4
14da48a
- move include files to it's own separate include dir
14da48a
- fix duplicated doc files
14da48a
14da48a
* Thu Nov 20 2008 Lucian Langa <cooly@gnome.eu.org> - 0.10-3
14da48a
- update scriptlets
14da48a
- update BR
14da48a
- fix old configure script
14da48a
14da48a
* Thu Jul 17 2008 Lucian Langa <cooly@gnome.eu.org> - 0.10-2
14da48a
- Description update
14da48a
14da48a
* Fri Jul 11 2008 Lucian Langa <cooly@gnome.eu.org> - 0.10-1
14da48a
- Initial spec file
14da48a