File perl-Net-Clickatell.spec of Package perl-Net-Clickatell
#
# spec file for package perl-Net-Clickatell (Version 0.50)
#
# Copyright 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
Name: perl-Net-Clickatell
Version: 0.50
Release: 0
# define the name from CPAN
%define cpan_name Net-Clickatell
Provides: %cpan_name
Requires: perl = %{perl_version} perl-libwww-perl
Requires: perl(LWP::UserAgent)
BuildRequires: perl(LWP::UserAgent)
%if 0%{?suse_version} < 1120 || 0%{?fedora_version}
BuildRequires: perl-macros
%endif
Group: Development/Libraries/Perl
License: Artistic License, Other License(s), see package
URL: http://cpan.org/modules/by-module/Net-Clickatell/
Summary: Access to Clickatell HTTP API fro sending GSM text messages (SMS)
Source: %cpan_name-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This module support the API from Clickatell's HTTP API Specification v.2.2.7.
The following is all the available API and not all are supported
Basic Commands
http://api.clickatell.com/http/auth Yes (But session not support)
http://api.clickatell.com/http/ping Yes (But session not support)
http://api.clickatell.com/http/querymsg Yes
http://api.clickatell.com/http/sendmsg Yes
Additional Commands
http://api.clickatell.com/http/delmsg No
http://api.clickatell.com/http/getbalance Yes
http://api.clickatell.com/http/routeCoverage.php Yes
http://api.clickatell.com/mms/ind_push.php Yes
http://api.clickatell.com/mms/si_push.php Yes
http://api.clickatell.com/http/getmsgcharge Yes
http://api.clickatell.com/http/token_pay No
No Batch Messaging
%prep
%setup -q -n %cpan_name-%{version}
%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make %{?jobs:-j%jobs}
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
# clean up the hard disc after build
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root)
%doc README
%changelog