File perl-WWW-Shorten.spec of Package perl-WWW-Shorten
#
# spec file for package perl-WWW-Shorten
#
# Copyright (c) 2015 SUSE LINUX 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-WWW-Shorten
Version: 3.06
Release: 0
%define cpan_name WWW-Shorten
Summary: Interface to Url Shortening Sites
License: Artistic-2.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/WWW-Shorten/
Source: http://www.cpan.org/authors/id/D/DA/DAVECROSS/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Config::Auto)
BuildRequires: perl(LWP) >= 5.75
BuildRequires: perl(LWP::UserAgent) >= 2.023
BuildRequires: perl(Module::Build) >= 0.40
BuildRequires: perl(URI) >= 1.27
Requires: perl(Config::Auto)
Requires: perl(LWP) >= 5.75
Requires: perl(LWP::UserAgent) >= 2.023
Requires: perl(URI) >= 1.27
%{perl_requires}
%description
The function 'makeashorterlink' will call the relevant web site passing it
your long URL and will return the shorter version.
The function 'makealongerlink' does the reverse. 'makealongerlink' will
accept as an argument either the full shortened URL or just the identifier.
If anything goes wrong, then either function will return 'undef'.
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644
%build
%{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
%check
# MANUAL no testing (needs network)
#./Build test
%install
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Artistic AUTHORS ChangeLog.SPOON Changes CREDITS LICENCE README TODO
%changelog