Accepting request 296809 from devel:languages:perl:autoupdate

automatic update

OBS-URL: https://build.opensuse.org/request/show/296809
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-REST-Client?expand=0&rev=9
This commit is contained in:
Stephan Kulow
2015-04-15 11:29:42 +00:00
committed by Git OBS Bridge
parent 8e6f205449
commit fbea829723
4 changed files with 38 additions and 35 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-REST-Client
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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
@@ -17,60 +17,47 @@
Name: perl-REST-Client
Version: 245
Version: 272
Release: 0
Summary: Simple Client for Interacting with RESTful HTTP/HTTPS Resources
%define cpan_name REST-Client
Summary: Simple Client for Interacting with Restful Http/Https Resources
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Source: http://search.cpan.org/CPAN/authors/id/M/MC/MCRAWFOR/REST-Client-%{version}.tar.gz
Url: http://search.cpan.org/dist/REST-Client
Url: http://search.cpan.org/dist/REST-Client/
Source: http://www.cpan.org/authors/id/M/MC/MCRAWFOR/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Crypt::SSLeay)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Test::More) >= 0.8
BuildRequires: perl(URI)
# for tests:
BuildRequires: perl(HTTP::Server::Simple)
Requires: perl(Crypt::SSLeay)
Requires: perl(LWP::UserAgent)
Requires: perl(URI)
%{perl_requires}
%description
REST::Client provides a simple way to interact with HTTP RESTful
resources.
REST::Client provides a simple way to interact with HTTP RESTful resources.
%prep
%setup -q -n "REST-Client-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%setup -q -n %{cpan_name}-%{version}
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%if 0%{?suse_version} > 1120
%check
%__make test
%endif
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%files -f %{name}.files
%defattr(-,root,root,755)
%doc CHANGES
%dir %{perl_vendorlib}/REST
%{perl_vendorlib}/REST/Client.pm
%dir %{perl_vendorarch}/auto/REST
%{perl_vendorarch}/auto/REST/Client
%doc %{perl_man3dir}/REST::Client.%{perl_man3ext}%{ext_man}
%changelog