You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.2 KiB
59 lines
1.2 KiB
13 years ago
|
Summary: A small page to originate calls through an asterisk server
|
||
13 years ago
|
%define name smeserver-callback
|
||
13 years ago
|
Name: %{name}
|
||
13 years ago
|
%define version 0.1
|
||
13 years ago
|
%define release 0.beta3
|
||
|
Version: %{version}
|
||
|
Release: %{release}%{?dist}
|
||
|
License: GPL
|
||
|
Group: Applications/System
|
||
|
Source: %{name}-%{version}.tar.gz
|
||
|
|
||
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
|
||
|
BuildArch: noarch
|
||
|
|
||
|
BuildRequires: e-smith-devtools
|
||
|
|
||
13 years ago
|
Requires: e-smith-base
|
||
13 years ago
|
Requires: smeserver-webapps-common
|
||
|
Requires: perl(Asterisk::AMI)
|
||
|
|
||
|
%description
|
||
|
This package contains all the needed scripts and templates
|
||
|
to run the callback form
|
||
|
|
||
|
%changelog
|
||
|
* Fri Nov 18 2011 Daniel Berteaud <daniel@firewall-services.com> - 0.1
|
||
|
- Initiale release
|
||
|
|
||
|
%prep
|
||
|
|
||
|
%setup -q -n %{name}-%{version}
|
||
|
|
||
|
%build
|
||
|
perl createlinks
|
||
|
%{__mkdir_p} root/etc/callback
|
||
|
|
||
|
|
||
|
%install
|
||
|
/bin/rm -rf $RPM_BUILD_ROOT
|
||
|
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
|
||
|
/bin/rm -f %{name}-%{version}-filelist
|
||
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
|
||
|
--file /usr/share/callback/cgi-bin/callback.cgi 'attr(0750,root,www)' \
|
||
|
> %{name}-%{version}-filelist
|
||
|
|
||
|
%files -f %{name}-%{version}-filelist
|
||
|
%defattr(-,root,root)
|
||
|
|
||
|
%clean
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
|
||
|
%post
|
||
|
|
||
|
%preun
|
||
|
|
||
|
true
|
||
|
|