Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Tomcat42
perl-Flickr-API2
perl-Flickr-API2.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Flickr-API2.spec of Package perl-Flickr-API2
# # spec file for package perl-Flickr-API2 # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # Name: perl-Flickr-API2 Version: 2.50 Release: 0 %define cpan_name Flickr-API2 Summary: Perl interface to the Flickr API License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Flickr-API2/ Source0: http://www.cpan.org/authors/id/T/TJ/TJC/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Compress::Zlib) BuildRequires: perl(Encode::Base58) BuildRequires: perl(Module::Install) BuildRequires: perl(HTTP::Message) >= 1.56 BuildRequires: perl(HTTP::Request) BuildRequires: perl(HTTP::Response) BuildRequires: perl(JSON) BuildRequires: perl(LWP::Online) BuildRequires: perl(LWP::Protocol::https) BuildRequires: perl(LWP::UserAgent) BuildRequires: perl(Moo) BuildRequires: perl(Retry) BuildRequires: perl(Test::Exception) BuildRequires: perl(URI) >= 1.18 BuildRequires: perl(parent) Requires: perl(Compress::Zlib) Requires: perl(Encode::Base58) Requires: perl(HTTP::Message) >= 1.56 Requires: perl(HTTP::Request) Requires: perl(HTTP::Response) Requires: perl(JSON) Requires: perl(LWP::Protocol::https) Requires: perl(LWP::UserAgent) Requires: perl(Moo) Requires: perl(Retry) Requires: perl(URI) >= 1.18 Requires: perl(parent) Recommends: perl(JSON::XS) %{perl_requires} %description A simple interface for using the Flickr API. The API calls are made via Perl helper methods, and the data returned is converted into Perl objects that can have further methods called upon them. So for instance, you can fetch a user by username, by: my $user = $api->people->findByUsername('wintrmute') You can then ask for photos by that user, by calling: my @photos = $user->getPublicPhotos; And from there, you can query titles, URLs, etc of the photos with methods such as: $photos[0]->title So far only a few helper methods have been written, but more are coming. Patches adding functionality will be greatly appreciated! %prep %setup -q -n %{cpan_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc Changes README %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor