70 lines
2.4 KiB
RPMSpec
70 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package perl-WWW-Pastebin-Base-Retrieve
|
|
#
|
|
# Copyright (c) 2024 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define cpan_name WWW-Pastebin-Base-Retrieve
|
|
Name: perl-WWW-Pastebin-Base-Retrieve
|
|
Version: 0.2.0
|
|
Release: 0
|
|
# 0.002 -> normalize -> 0.2.0
|
|
%define cpan_version 0.002
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Base class for modules which implement retrieving of pastes from pastebins
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/Z/ZO/ZOFFIX/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Class::Data::Accessor) >= 0.40.10
|
|
BuildRequires: perl(LWP::UserAgent) >= 2.036
|
|
BuildRequires: perl(Module::Build)
|
|
BuildRequires: perl(URI) >= 1.35
|
|
Requires: perl(Class::Data::Accessor) >= 0.40.10
|
|
Requires: perl(LWP::UserAgent) >= 2.036
|
|
Requires: perl(URI) >= 1.35
|
|
Provides: perl(WWW::Pastebin::Base::Retrieve) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
This module is a base class for modules which provide interface to fetch
|
|
pastes on various pastebin sites. How useful this module may be to you
|
|
depends entirely on the pastebin site you want to interface is. The
|
|
synopsis shows a version of WWW::Pastebin::PhpfiCom::Retrieve module (with
|
|
parser trimmed down) which requires a bit more than usual pastebin sites.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
%build
|
|
perl Build.PL --installdirs=vendor
|
|
./Build build --flags=%{?_smp_mflags}
|
|
|
|
%check
|
|
./Build test
|
|
|
|
%install
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes examples README
|
|
%license LICENSE
|
|
|
|
%changelog
|