152 lines
6.0 KiB
RPMSpec
152 lines
6.0 KiB
RPMSpec
#
|
|
# spec file for package perl-Net-HTTP-Spore
|
|
#
|
|
# 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 Net-HTTP-Spore
|
|
Name: perl-Net-HTTP-Spore
|
|
Version: 0.90.0
|
|
Release: 0
|
|
# 0.09 -> normalize -> 0.90.0
|
|
%define cpan_version 0.09
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: SPORE client
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/A/AT/ATHREEF/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Class::Load)
|
|
BuildRequires: perl(Digest::SHA)
|
|
BuildRequires: perl(HTTP::Headers)
|
|
BuildRequires: perl(HTTP::Request)
|
|
BuildRequires: perl(IO::All)
|
|
BuildRequires: perl(JSON)
|
|
BuildRequires: perl(LWP::UserAgent)
|
|
BuildRequires: perl(Moose)
|
|
BuildRequires: perl(Moose::Exporter)
|
|
BuildRequires: perl(Moose::Meta::Method)
|
|
BuildRequires: perl(Moose::Role)
|
|
BuildRequires: perl(Moose::Util::MetaRole)
|
|
BuildRequires: perl(Moose::Util::TypeConstraints)
|
|
BuildRequires: perl(MooseX::Role::Parameterized) >= 1.01
|
|
BuildRequires: perl(MooseX::Types)
|
|
BuildRequires: perl(MooseX::Types::Moose)
|
|
BuildRequires: perl(MooseX::Types::URI)
|
|
BuildRequires: perl(Test::Exception)
|
|
BuildRequires: perl(Test::Moose)
|
|
BuildRequires: perl(Try::Tiny)
|
|
BuildRequires: perl(URI)
|
|
BuildRequires: perl(URI::Escape)
|
|
BuildRequires: perl(XML::Simple)
|
|
BuildRequires: perl(YAML)
|
|
Requires: perl(Class::Load)
|
|
Requires: perl(Digest::SHA)
|
|
Requires: perl(HTTP::Headers)
|
|
Requires: perl(HTTP::Request)
|
|
Requires: perl(IO::All)
|
|
Requires: perl(JSON)
|
|
Requires: perl(LWP::UserAgent)
|
|
Requires: perl(Moose)
|
|
Requires: perl(Moose::Exporter)
|
|
Requires: perl(Moose::Meta::Method)
|
|
Requires: perl(Moose::Role)
|
|
Requires: perl(Moose::Util::MetaRole)
|
|
Requires: perl(Moose::Util::TypeConstraints)
|
|
Requires: perl(MooseX::Role::Parameterized) >= 1.01
|
|
Requires: perl(MooseX::Types)
|
|
Requires: perl(MooseX::Types::Moose)
|
|
Requires: perl(MooseX::Types::URI)
|
|
Requires: perl(Try::Tiny)
|
|
Requires: perl(URI)
|
|
Requires: perl(URI::Escape)
|
|
Requires: perl(XML::Simple)
|
|
Requires: perl(YAML)
|
|
Provides: perl(Net::HTTP::Spore) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Core) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Meta) = 0.140.0
|
|
Provides: perl(Net::HTTP::Spore::Meta::Class) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Meta::Method) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Meta::Method::Spore) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Meta::Types) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Middleware) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Middleware::Auth) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Middleware::Auth::ApiKey) = 0.10.0
|
|
Provides: perl(Net::HTTP::Spore::Middleware::Auth::Basic) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Middleware::Auth::Header) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Middleware::Auth::OAuth) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Middleware::DoNotTrack) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Middleware::Format) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Middleware::Format::Auto) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Middleware::Format::JSON) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Middleware::Format::Text) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Middleware::Format::XML) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Middleware::Format::YAML) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Middleware::LogDispatch) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Middleware::Mock) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Middleware::Redirection) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Middleware::Runtime) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Middleware::UserAgent) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Request) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Response) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Role) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Role::Debug) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Role::Description) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Role::Middleware) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Role::Request) = %{version}
|
|
Provides: perl(Net::HTTP::Spore::Role::UserAgent) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
# MANUAL BEGIN
|
|
BuildRequires: perl(Regexp::IPv6)
|
|
Requires: perl(Regexp::IPv6)
|
|
# MANUAL END
|
|
|
|
%description
|
|
This module is an implementation of the SPORE specification.
|
|
|
|
To use this client, you need to use or to write a SPORE specification of an
|
|
API. A description of the SPORE specification format is available at
|
|
http://github.com/SPORE/specifications/blob/master/spore_description.pod
|
|
|
|
Some specifications for well-known services are available
|
|
http://github.com/SPORE/api-description.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes
|
|
%license LICENSE
|
|
|
|
%changelog
|