8
0

Compare commits

...

10 Commits

Author SHA256 Message Date
bd05f6bbb5 Accepting request 896824 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/896824
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-URI-Fetch?expand=0&rev=2
2021-06-02 20:12:11 +00:00
f0aeae38e5 Accepting request 896734 from devel:languages:perl:autoupdate
- updated to 0.15
   see /usr/share/doc/packages/perl-URI-Fetch/Changes
  0.15 2021-05-27 NEILB
      - Specify min perl as 5.008001 rather than 5.008_001, which was
        causing problems with some versions of ExtUtils::MakeMaker.
        RT#133491
  0.14 2021-05-26 NEILB
      - When Benjamin created this, he had a server set up for doing the
        tests, but that's gone now. So to stop all the fails, I'm skipping
        the live tests for now. Could do with mocking, but this is a stop-gap.
  0.13_01 2021-05-25 NEILB
      - Changed the test suite to use some online HTTP status code test servers.
        Let's see how reliable they are.

OBS-URL: https://build.opensuse.org/request/show/896734
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-URI-Fetch?expand=0&rev=11
2021-06-02 06:32:46 +00:00
eeda2d9043 Accepting request 701634 from devel:languages:perl
Dependency of perl-WWW-OpenSearch needed for https://build.opensuse.org/request/show/694894

OBS-URL: https://build.opensuse.org/request/show/701634
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-URI-Fetch?expand=0&rev=1
2019-05-16 20:05:37 +00:00
Stephan Kulow
36cca9b198 Accepting request 406429 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/406429
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-URI-Fetch?expand=0&rev=9
2016-07-04 15:15:40 +00:00
Stephan Kulow
2a57c66fcc Accepting request 404429 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/404429
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-URI-Fetch?expand=0&rev=8
2016-06-25 06:05:50 +00:00
Stephan Kulow
ab9c113325 Accepting request 315372 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/315372
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-URI-Fetch?expand=0&rev=7
2015-07-07 11:40:02 +00:00
Stephan Kulow
c15b91552c Accepting request 295993 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/295993
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-URI-Fetch?expand=0&rev=6
2015-04-13 20:45:26 +00:00
Stephan Kulow
ff554e8e4d - updated to 0.09
- Use $ua->env_proxy to load local proxy settings. (RT 53819)
   - Skip tests if we don't have a network connection. (RT 28388, 59694)
   - Removed sign() and auto_install() from Makefile.PL.
   - Removed magic svn keywords.
   - Added author tests (xt/) and modified SYNOPSIS for all modules to
     make them pass the compilation test.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-URI-Fetch?expand=0&rev=5
2011-04-03 15:34:03 +00:00
Stephan Kulow
d8fcd2a908 new macros
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-URI-Fetch?expand=0&rev=4
2010-12-05 12:56:19 +00:00
Stephan Kulow
3facf4fc0b - remove /var/adm/perl-modules
- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

- remove /var/adm/perl-modules

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-URI-Fetch?expand=0&rev=3
2010-11-29 19:00:36 +00:00
5 changed files with 185 additions and 48 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e395289713e509a323fd1d44cfc58785a45e661a64ca3f9c7ff9a046105012a8
size 25610

3
URI-Fetch-0.15.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:379f39f24c6dae5c536332b17979fd90799dabccdfe8e792e7eead3eb8cda50c
size 16808

23
cpanspec.yml Normal file
View File

@@ -0,0 +1,23 @@
---
#description_paragraphs: 3
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

View File

@@ -1,3 +1,76 @@
-------------------------------------------------------------------
Fri May 28 03:07:44 UTC 2021 - Tina Müller <timueller+perl@suse.de>
- updated to 0.15
see /usr/share/doc/packages/perl-URI-Fetch/Changes
0.15 2021-05-27 NEILB
- Specify min perl as 5.008001 rather than 5.008_001, which was
causing problems with some versions of ExtUtils::MakeMaker.
RT#133491
0.14 2021-05-26 NEILB
- When Benjamin created this, he had a server set up for doing the
tests, but that's gone now. So to stop all the fails, I'm skipping
the live tests for now. Could do with mocking, but this is a stop-gap.
0.13_01 2021-05-25 NEILB
- Changed the test suite to use some online HTTP status code test servers.
Let's see how reliable they are.
-------------------------------------------------------------------
Mon Jul 4 13:26:03 UTC 2016 - coolo@suse.com
- updated to 0.13
see /usr/share/doc/packages/perl-URI-Fetch/Changes
0.13 2016-07-02 NEILB
- Switched to using Test::RequiresInternet rather than the hand-rolled
online() function that was duplicated in 2 tests. Plus it was testing
whether google.com was contactable, and not the site used in the tests.
-------------------------------------------------------------------
Fri Jun 24 06:44:49 UTC 2016 - coolo@suse.com
- updated to 0.12
see /usr/share/doc/packages/perl-URI-Fetch/Changes
0.12 2016-06-23 NEILB
- Travis support added by Jason Hall.
- Added list of contributors to the doc.
-------------------------------------------------------------------
Tue Jul 7 09:29:26 UTC 2015 - coolo@suse.com
- updated to 0.11
see /usr/share/doc/packages/perl-URI-Fetch/Changes
0.11 2015-07-04 NEILB
- Added [MetaJSON] to dist.ini, so release will include META.json.
RT#105632 from ETHER++
-------------------------------------------------------------------
Mon Apr 13 18:43:51 UTC 2015 - coolo@suse.com
- updated to 0.10
see /usr/share/doc/packages/perl-URI-Fetch/Changes
-------------------------------------------------------------------
Sun Apr 3 15:32:07 UTC 2011 - coolo@novell.com
- updated to 0.09
- Use $ua->env_proxy to load local proxy settings. (RT 53819)
- Skip tests if we don't have a network connection. (RT 28388, 59694)
- Removed sign() and auto_install() from Makefile.PL.
- Removed magic svn keywords.
- Added author tests (xt/) and modified SYNOPSIS for all modules to
make them pass the compilation test.
-------------------------------------------------------------------
Mon Nov 29 18:31:27 UTC 2010 - coolo@novell.com
- remove /var/adm/perl-modules
-------------------------------------------------------------------
Sun Nov 28 11:38:04 UTC 2010 - coolo@novell.com

View File

@@ -1,64 +1,105 @@
# norootforbuild
#
# spec file for package perl-URI-Fetch
#
# Copyright (c) 2021 SUSE LLC
#
# 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.
Name: perl-URI-Fetch
Version: 0.08
Release: 0
Summary: Smart URI Fetching/Caching Module for Perl
Source: http://www.cpan.org/modules/by-module/URI/URI-Fetch-0.08.tar.gz
URL: http://search.cpan.org/~btrott/URI-Fetch-%{version}/lib/URI/Fetch.pm
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: perl perl-Class-ErrorHandler perl-libwww-perl perl-URI perl-Storable
Requires: perl-Compress-Zlib perl-Cache
BuildRequires: perl-Class-ErrorHandler perl-libwww-perl perl-URI perl-Storable
BuildRequires: perl-Compress-Zlib perl-Cache
BuildRequires: make perl
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name URI-Fetch
Name: perl-URI-Fetch
Version: 0.15
Release: 0
Summary: Smart URI fetching/caching
License: Artistic-1.0 OR GPL-1.0-or-later
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/N/NE/NEILB/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Class::ErrorHandler)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Test::RequiresInternet) >= 0.05
BuildRequires: perl(URI)
Requires: perl(Class::ErrorHandler)
Requires: perl(LWP::UserAgent)
Requires: perl(URI)
%{perl_requires}
%description
URI::Fetch is a smart client for fetching HTTP pages, notably syndication
feeds (RSS, Atom, and others), in an intelligent, bandwidth- and time-saving
way.
_URI::Fetch_ is a smart client for fetching HTTP pages, notably syndication
feeds (RSS, Atom, and others), in an intelligent, bandwidth- and
time-saving way. That means:
* * GZIP support
If you have _Compress::Zlib_ installed, _URI::Fetch_ will automatically try
to download a compressed version of the content, saving bandwidth (and
time).
* * _Last-Modified_ and _ETag_ support
Authors:
--------
Benjamin Trott <ben+cpan@stupidfool.org>
If you use a local cache (see the _Cache_ parameter to _fetch_),
_URI::Fetch_ will keep track of the _Last-Modified_ and _ETag_ headers from
the server, allowing you to only download pages that have been modified
since the last time you checked.
* * Proper understanding of HTTP error codes
Certain HTTP error codes are special, particularly when fetching
syndication feeds, and well-written clients should pay special attention to
them. _URI::Fetch_ can only do so much for you in this regard, but it gives
you the tools to be a well-written client.
The response from _fetch_ gives you the raw HTTP response code, along with
special handling of 4 codes:
* * 200 (OK)
Signals that the content of a page/feed was retrieved successfully.
* * 301 (Moved Permanently)
Signals that a page/feed has moved permanently, and that your database of
feeds should be updated to reflect the new URI.
* * 304 (Not Modified)
Signals that a page/feed has not changed since it was last fetched.
* * 410 (Gone)
Signals that a page/feed is gone and will never be coming back, so you
should stop trying to fetch it.
%prep
%setup -q -n "URI-Fetch-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%autosetup -n %{cpan_name}-%{version}
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%__rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%files -f %{name}.files
%doc Changes README
%dir %{perl_vendorlib}/URI
%{perl_vendorlib}/URI/Fetch.pm
%dir %{perl_vendorlib}/URI/Fetch
%{perl_vendorlib}/URI/Fetch/Response.pm
%dir %{perl_vendorarch}/auto/URI
%dir %{perl_vendorarch}/auto/URI/Fetch
%doc %{perl_man3dir}/URI::Fetch*.%{perl_man3ext}*
/var/adm/perl-modules/%{name}
%license LICENSE
%changelog
* Tue Jul 22 2008 Pascal Bleser <guru@unixtech.be> 0.08
- new package
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: