]> git.pld-linux.org Git - SPECS.git/blob - lcr.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / lcr.spec
1 #
2 %define         _snap   20090615
3 Summary:        Linux-Call-Router - an ISDN PBX for Linux
4 Summary(pl.UTF-8):      Linux-Call-Router - centralka ISDN dla Linuksa
5 Name:           lcr
6 Version:        1.5
7 Release:        0.%{_snap}.1
8 License:        GPL v2+
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
13 Source2:        %{name}.init
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)
26
27 %description
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.
36
37 %package -n asterisk-chan_lcr
38 Summary:        Linux-Call-Router channel for Asterisk
39 Group:          Applications/System
40
41 %description -n asterisk-chan_lcr
42 chan_lcr turns LCR into an ISDN channel driver for Asterisk PBX.
43
44 %prep
45 %setup -q -n %{name}
46 %patch0 -p1
47 %patch1 -p1
48 %patch2 -p1
49
50 # cleanup backups after patching
51 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
52
53 %build
54 %{__aclocal}
55 %{__autoconf}
56 %{__autoheader}
57 %{__automake}
58
59 %configure
60 %{__make}
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
65
66 %{__make} install \
67         DESTDIR=$RPM_BUILD_ROOT
68
69 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
70 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post
76 /sbin/chkconfig --add %{name}
77 %service %{name} restart
78
79 %preun
80 if [ "$1" = "0" ]; then
81         %service -q %{name} stop
82         /sbin/chkconfig --del %{name}
83 fi
84
85 %files
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}/*
92 %{_datadir}/%{name}
93 %attr(754,root,root) /etc/rc.d/init.d/%{name}
94 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
95
96 %files -n asterisk-chan_lcr
97 %defattr(644,root,root,755)
98 %{_libdir}/asterisk/modules/*
This page took 0.834768 seconds and 3 git commands to generate.