Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 6633fd02e53325dbafa9a3b1b563a25c > files > 2

perl-WWW-Shorten-3.30.0-1.mga3.src.rpm

%define upstream_name    WWW-Shorten
%define upstream_version 3.03

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    %mkrel 1

Summary:    Perl interface to makeashorterlink.com
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/WWW/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Config::Auto)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(LWP) >= 5.750.0
BuildRequires: perl(LWP::UserAgent) >= 2.23.0
BuildRequires: perl(Module::Build) >= 0.380.0
BuildRequires: perl(Test::More) >= 0.470.0
BuildRequires: perl(URI) >= 1.270.0
BuildArch:  noarch

%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 %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc AUTHORS CREDITS Changes INSTALL LICENCE META.json META.yml MYMETA.yml README TODO
%{_mandir}/man3/*
%perl_vendorlib/*
%{_bindir}/shorten
%{_mandir}/man1/shorten.1*

%changelog

* Tue Jun 05 2012 jquelin <jquelin> 3.30.0-1.mga3
+ Revision: 255574
- update to 3.03

* Sun Jan 23 2011 jquelin <jquelin> 3.20.0-1.mga1
+ Revision: 34449
- mageia rebuild
- imported package perl-WWW-Shorten