%define datetag 20090615 Name: lcr Version: 1.5 Release: 1%{?dist} Summary: Linux Call Router Group: System Environment/Daemons License: GPLv2+ URL: http://www.linux-call-router.de/ Source0: http://www.linux-call-router.de/download/%{name}-%{version}/%{name}_%{datetag}.tar.gz Patch0: lcr-makefile.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: asterisk-devel openssl-devel %description Formerly known as "PBX4Linux", Linux-Call-Router is not only a router, it is a real ISDN PBX which interconnects ISDN telephones and ISDN lines. It is possible to connect telephones to a Linux box. It is a pure software solution except for the ISDN cards and telephones. The great benefit is the NT-mode that allows to connect telephones to an ISDN card. Special cards are needed and a little bit of different cabeling. It supports lots of features, that only expensive PBXs have. %package asterisk Summary: Linux Call Router Asterisk channel module Group: Applications/System Requires: %{name} = %{version}-%{release} Requires: asterisk %description asterisk This module enables you to use lcr with the Asterisk PBX %prep %setup -q -n %{name} %patch0 -p0 %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS COPYING INSTALL LICENSE README %{_bindir}/* %{_sbindir}/* %{_datadir}/%{name} %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/* %files asterisk %defattr(-,root,root,-) %doc AUTHORS COPYING INSTALL LICENSE README %{_libdir}/asterisk/modules/chan_%{name}.so %changelog * Mon Jul 20 2009 Felix Kaechele - 1.5-1 - initial build