Sophie

Sophie

distrib > Mandriva > 2007.1 > i586 > by-pkgid > 0993b85781e6e47d4862dd4051cf49e6 > files > 1

asterisk-chan_capi-cm-0.6-1mdk.src.rpm

%define rname	chan_capi-cm

Summary:	Asterisk ISDN CAPI channel driver
Name:		asterisk-%{rname}
Version:	0.6
Release:	%mkrel 1
License:	GPL
Group:		System/Servers
URL:		http://sourceforge.net/projects/chan-capi/
Source0:	http://prdownloads.sourceforge.net/chan-capi/%{rname}-%{version}.tar.bz2
BuildRequires:	isdn4k-utils-devel
BuildRequires:	asterisk-devel
Requires:	asterisk
Buildroot:	%{_tmppath}/%{name}-%{version}

%description
ISDN CAPI Channel driver (chan_capi) for the Asterisk Open Source
VOIP Platform. Reworked, but based on the work of Copyright (C) 
2002-2005 Junghanns.NET GmbH Klaus-Peter Junghanns.

%prep

%setup -q -n %{rname}-%{version}

# clean up CVS stuff
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -r $i; fi >&/dev/null
done
    
# fix file perms
chmod 644 CHANGES INSTALL README

%build

make CFLAGS="%{optflags} -pipe -Wall -fPIC -DPIC -D_REENTRANT -D_GNU_SOURCE -DASTERISKVERSION=\\\"1.2\\\" -I. -I%{_includedir}"

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_sysconfdir}/asterisk
install -d %{buildroot}%{_libdir}/asterisk

install -m0644 capi.conf %{buildroot}%{_sysconfdir}/asterisk/
install -m0755 chan_capi.so %{buildroot}%{_libdir}/asterisk/

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGES INSTALL README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/asterisk/capi.conf
%attr(0755,root,root) %{_libdir}/asterisk/chan_capi.so

%changelog
* Sun Oct 30 2005 Oden Eriksson <oeriksson@mandriva.com> 0.6-1mdk
- initial Mandriva package