Files
perl-Flickr-API/perl-Flickr-API.spec
2025-08-12 18:14:15 +02:00

93 lines
3.0 KiB
RPMSpec

#
# spec file for package perl-Flickr-API
#
# 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 Flickr-API
Name: perl-Flickr-API
Version: 1.290.0
Release: 0
%define cpan_version 1.29
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Perl interface to the Flickr API
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/I/IA/IAMCAL/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(HTTP::Message) >= 1.56
BuildRequires: perl(HTTP::Request)
BuildRequires: perl(HTTP::Request::Common)
BuildRequires: perl(HTTP::Response)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Net::OAuth)
BuildRequires: perl(Test::Script)
BuildRequires: perl(URI) >= 1.18
BuildRequires: perl(XML::LibXML::Simple)
BuildRequires: perl(XML::Parser::Lite::Tree) >= 0.06
BuildRequires: perl(parent)
Requires: perl(HTTP::Message) >= 1.56
Requires: perl(HTTP::Request)
Requires: perl(HTTP::Request::Common)
Requires: perl(HTTP::Response)
Requires: perl(LWP::UserAgent)
Requires: perl(Net::OAuth)
Requires: perl(Test::Script)
Requires: perl(URI) >= 1.18
Requires: perl(XML::LibXML::Simple)
Requires: perl(XML::Parser::Lite::Tree) >= 0.06
Requires: perl(parent)
Provides: perl(Flickr::API) = %{version}
Provides: perl(Flickr::API::Cameras) = 1.28
Provides: perl(Flickr::API::People) = 1.28
Provides: perl(Flickr::API::Reflection) = 1.28
Provides: perl(Flickr::API::Request) = 1.28
Provides: perl(Flickr::API::Response) = 1.28
Provides: perl(Flickr::API::Upload) = 1.28
%undefine __perllib_provides
%{perl_requires}
%description
An interface for using the Flickr API.
'Flickr::API' is a subclass of LWP::UserAgent, so all of the various proxy,
request limits, caching, etc are available. 'Flickr::API' can instantiate
using either the Flickr Authentication (deprecated) or the OAuth
Authentication. OAuth is handled using Net::OAuth.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%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 examples README README.subclasses
%license LICENSE
%changelog