3 Summary: Linux-Call-Router - an ISDN PBX for Linux
4 Summary(pl.UTF-8): Linux-Call-Router - centralka ISDN dla Linuksa
9 Group: Applications/System
10 Source0: http://www.linux-call-router.de/download/lcr-1.5/%{name}_%{_snap}.tar.gz
11 # Source0-md5: 84eabeba617c578f89c33e1aadd59d03
12 Source1: %{name}.sysconfig
14 Patch0: %{name}-ncurses.patch
15 Patch1: %{name}-dirs.patch
16 Patch2: %{name}-no_compat.patch
17 URL: http://www.linux-call-router.de/
18 BuildRequires: asterisk-devel
19 BuildRequires: autoconf
20 BuildRequires: automake
21 BuildRequires: mISDNuser-devel >= 2.0
22 BuildRequires: ncurses-devel
23 BuildRequires: rpmbuild(macros) >= 1.228
24 Requires(post,preun): /sbin/chkconfig
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Formerly known as "PBX4Linux", Linux-Call-Router is not only a router,
29 it is a real ISDN PBX which interconnects ISDN telephones and ISDN
30 lines. It is possible to connect telephones to a Linux box. It is a
31 pure software solution except for the ISDN cards and telephones. The
32 great benefit is the NT-mode that allows to connect telephones to an
33 ISDN card. Special cards are needed and a little bit of different
34 cabeling. It supports lots of features, that only expensive PBXs have.
35 It include a channel driver that can link LCR to Asterisk PBX.
37 %package -n asterisk-chan_lcr
38 Summary: Linux-Call-Router channel for Asterisk
39 Group: Applications/System
41 %description -n asterisk-chan_lcr
42 chan_lcr turns LCR into an ISDN channel driver for Asterisk PBX.
50 # cleanup backups after patching
51 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
67 DESTDIR=$RPM_BUILD_ROOT
69 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
70 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
73 rm -rf $RPM_BUILD_ROOT
76 /sbin/chkconfig --add %{name}
77 %service %{name} restart
80 if [ "$1" = "0" ]; then
81 %service -q %{name} stop
82 /sbin/chkconfig --del %{name}
86 %defattr(644,root,root,755)
87 %doc AUTHORS ChangeLog README
88 %dir %{_sysconfdir}/lcr
89 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lcr/*
90 %attr(755,root,root) %{_bindir}/*
91 %attr(755,root,root) %{_sbindir}/*
93 %attr(754,root,root) /etc/rc.d/init.d/%{name}
94 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
96 %files -n asterisk-chan_lcr
97 %defattr(644,root,root,755)
98 %{_libdir}/asterisk/modules/*