From 2ea134ce6a7df877c4e0373ebe2c2a924616722e Mon Sep 17 00:00:00 2001 From: Petr Písař Date: Mar 02 2012 09:51:25 +0000 Subject: Import --- diff --git a/.gitignore b/.gitignore index e69de29..e5c8aa3 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/WebService-Rajce-0.07.tar.gz diff --git a/.rpmlint b/.rpmlint new file mode 100644 index 0000000..02941e3 --- /dev/null +++ b/.rpmlint @@ -0,0 +1,2 @@ +from Config import * +addFilter("spelling-error .* (cz|idnes|www)"); diff --git a/perl-WebService-Rajce.spec b/perl-WebService-Rajce.spec new file mode 100644 index 0000000..8965dab --- /dev/null +++ b/perl-WebService-Rajce.spec @@ -0,0 +1,73 @@ +Name: perl-WebService-Rajce +Version: 0.07 +Release: 1%{?dist} +Summary: Perl interface for www.rajce.idnes.cz +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/WebService-Rajce/ +Source0: http://www.cpan.org/authors/id/P/PE/PEK/WebService-Rajce-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(Module::Build) +# Run-time (script are not tested) +BuildRequires: perl(Carp) +BuildRequires: perl(Digest::MD5) +BuildRequires: perl(Encode) +BuildRequires: perl(Image::Magick) +BuildRequires: perl(WWW::Mechanize) >= 1.5 +BuildRequires: perl(XML::Simple) +# Tests: +BuildRequires: perl(Test::More) +# Optional tests: +BuildRequires: perl(Pod::Coverage) >= 0.18 +BuildRequires: perl(Test::Pod) >= 1.22 +BuildRequires: perl(Test::Pod::Coverage) >= 1.08 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(WWW::Mechanize) >= 1.5 + +# Remove under-specified dependencies +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((File::Basename|Net::Netrc|WWW::Mechanize)\\)$ + +%description +This is Perl library implementing an API of a photo gallery service running on +www.rajce.idnes.cz server. + +%package tools +Summary: Utilities for accessing www.rajce.idnes.cz +License: GPL+ or Artistic +Group: Applications/Internet +BuildArch: noarch +Requires: perl(File::Basename) >= 1.2 +Requires: perl(Net::Netrc) >= 1.22 + +%description tools +Command line tools for uploading and downloading images from a photo gallery +service running on www.rajce.idnes.cz server. + + +%prep +%setup -q -n WebService-Rajce-%{version} + +%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 Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%files tools +%{_bindir}/* +%{_mandir}/man1/* + +%changelog +* Wed Feb 29 2012 Petr Pisar 0.07-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..e8ce457 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1b8a5cb57db7ccc65ae1400dbee95b65 WebService-Rajce-0.07.tar.gz