commit 4ea2abb43986370395ea0951a92f49812fb21b87 Author: Julian C. Dunn <jdunn@xxxxxxxxxxxx> Date: Mon Apr 9 10:20:33 2012 -0400 Initial import (#810028) .gitignore | 1 + perl-WWW-Shorten.spec | 56 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 58 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..ce64bf2 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/WWW-Shorten-3.02.tar.gz diff --git a/perl-WWW-Shorten.spec b/perl-WWW-Shorten.spec new file mode 100644 index 0000000..d6f317d --- /dev/null +++ b/perl-WWW-Shorten.spec @@ -0,0 +1,56 @@ +Name: perl-WWW-Shorten +Version: 3.02 +Release: 2%{?dist} +Summary: Interface to URL shortening sites +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/WWW-Shorten/ +Source0: http://www.cpan.org/authors/id/D/DA/DAVECROSS/WWW-Shorten-%{version}.tar.gz +BuildArch: noarch +BuildRequires: glibc-common +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(Config::Auto) +BuildRequires: perl(LWP) >= 5.75 +BuildRequires: perl(LWP::UserAgent) >= 2.023 +BuildRequires: perl(Module::Build) +BuildRequires: perl(Test::More) >= 0.47 +BuildRequires: perl(Test::Pod::Coverage) >= 1.04 +BuildRequires: perl(Test::Pod) >= 1.00 +BuildRequires: perl(URI) >= 1.27 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +A unified interface to various URL shortening services on the web, such as +TinyURL or makeashorterlink.com. + +%prep +%setup -q -n WWW-Shorten-%{version} +iconv --from=ISO-8859-1 --to=UTF-8 LICENCE > LICENCE.conv && touch -r LICENCE LICENCE.conv && mv -f LICENCE.conv LICENCE + +%build +%{__perl} Build.PL installdirs=vendor +./Build + +%install +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +./Build test + +%files +%doc Artistic AUTHORS ChangeLog.SPOON Changes COPYING CREDITS LICENCE README TODO +%{perl_vendorlib}/* +%{_bindir}/shorten +%{_mandir}/man1/* +%{_mandir}/man3/* + +%changelog +* Thu Apr 05 2012 Julian C. Dunn <jdunn@xxxxxxxxxxxx> 3.02-2 +- Changes per review in bz#810028 + +* Wed Apr 04 2012 Julian C. Dunn <jdunn@xxxxxxxxxxxx> 3.02-1 +- Initial packaging based on cpanspec 1.78 output diff --git a/sources b/sources index e69de29..5fc4a80 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4a9be4d5c34b5726cd11a143dae0e0b8 WWW-Shorten-3.02.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel