2011-01-22 20:09:25 +00:00
|
|
|
#
|
2011-11-17 15:56:10 +00:00
|
|
|
# spec file for package perl-WWW-Shorten
|
2011-01-22 20:09:25 +00:00
|
|
|
#
|
2021-03-16 15:01:16 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2011-01-22 20:09:25 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2021-03-16 15:01:16 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-01-22 20:09:25 +00:00
|
|
|
#
|
|
|
|
|
2011-11-17 15:56:10 +00:00
|
|
|
|
2021-03-16 15:01:16 +00:00
|
|
|
%define cpan_name WWW-Shorten
|
2011-01-22 20:09:25 +00:00
|
|
|
Name: perl-WWW-Shorten
|
2021-03-16 15:01:16 +00:00
|
|
|
Version: 3.094
|
2011-12-19 15:15:24 +00:00
|
|
|
Release: 0
|
2015-12-16 16:54:27 +00:00
|
|
|
Summary: Interface to URL shortening sites
|
2021-03-16 15:01:16 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/C/CA/CAPOEIRAB/%{cpan_name}-%{version}.tar.gz
|
2015-04-15 11:11:08 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:18:31 +02:00
|
|
|
Source100: README.md
|
2011-12-19 15:15:24 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2016-03-23 10:08:58 +00:00
|
|
|
BuildRequires: perl(Getopt::Long) >= 2.4
|
|
|
|
BuildRequires: perl(LWP::UserAgent) >= 5.835
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
|
|
BuildRequires: perl(Try::Tiny) >= 0.24
|
|
|
|
Requires: perl(Getopt::Long) >= 2.4
|
|
|
|
Requires: perl(LWP::UserAgent) >= 5.835
|
|
|
|
Requires: perl(Try::Tiny) >= 0.24
|
2011-01-22 20:09:25 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
2016-03-23 10:08:58 +00:00
|
|
|
A Perl interface to various services that shorten URLs. These sites
|
|
|
|
maintain databases of long URLs, each of which has a unique identifier.
|
2011-01-22 20:09:25 +00:00
|
|
|
|
|
|
|
%prep
|
2021-03-16 15:01:16 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2011-01-22 20:09:25 +00:00
|
|
|
|
|
|
|
%build
|
2021-03-16 15:01:16 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%make_build
|
2011-01-22 20:09:25 +00:00
|
|
|
|
2011-12-19 15:15:24 +00:00
|
|
|
%check
|
2015-04-15 11:11:08 +00:00
|
|
|
# MANUAL no testing (needs network)
|
2021-03-16 15:01:16 +00:00
|
|
|
#make test
|
2011-12-19 15:15:24 +00:00
|
|
|
|
2011-01-22 20:09:25 +00:00
|
|
|
%install
|
2016-03-23 10:08:58 +00:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2011-01-22 20:09:25 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2021-03-16 15:01:16 +00:00
|
|
|
%doc Changes README
|
|
|
|
%license LICENSE
|
2011-01-22 20:09:25 +00:00
|
|
|
|
|
|
|
%changelog
|