File yate-datacard.spec of Package yate-datacard

#
# spec file for package yate-datacard
#
# Copyright (c) 2018, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           yate-datacard
Version:        0.0.0+git.20170421
Release:        0
Summary:        Yate datacard channel driver for Huawei UMTS modem
License:        GPL-2.0
Group:          Productivity/Telephony/Servers
URL:            https://github.com/mbloody/yate-datacard
Source:         %{name}-%{version}.tar.xz
Source1:	files/send_ussd.php
Source2:	files/send_sms.php
Source3:	files/datacard.php
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(yate) >= 5.0.0
BuildRequires:  yate >= 5.0.0
Requires:       yate >= 5.0.0

%description
Yate datacard channel driver for Huawei UMTS modem.
Driver based on chan_datacard module for Asterisk.
This is an alpha version of the module.

%prep
%setup -q

%build
autoreconf -fi
%configure
make %{?_smp_mflags}

%install
%make_install
install -d %{buildroot}%{_docdir}/%{name}/examples
install -m 0644 %{SOURCE1} %{buildroot}%{_docdir}/%{name}/examples
install -m 0644 %{SOURCE2} %{buildroot}%{_docdir}/%{name}/examples
install -m 0644 %{SOURCE3} %{buildroot}%{_docdir}/%{name}/examples

%files
%doc README COPYING
%{_docdir}/%{name}/examples
%config(noreplace) %{_sysconfdir}/yate/datacard.conf
%{_libdir}/yate/datacard.yate

%changelog
openSUSE Build Service is sponsored by