Files
perl-Flickr-API2/perl-Flickr-API2.spec

91 lines
2.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Flickr-API2
#
# Copyright (c) 2011 SUSE LINUX Products 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.05
Release: 0
Summary: Perl interface to the Flickr API
Source: http://search.cpan.org/CPAN/authors/id/T/TJ/TJC/Flickr-API2-%{version}.tar.gz
Url: http://search.cpan.org/dist/Flickr-API2
Group: Development/Libraries/Perl
License: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl-macros
BuildRequires: make
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(parent)
BuildRequires: perl(URI) >= 1.18
BuildRequires: perl(Compress::Zlib)
BuildRequires: perl(HTTP::Message) >= 1.56
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(HTTP::Response)
BuildRequires: perl(Mouse)
BuildRequires: perl(Digest::MD5)
BuildRequires: perl(JSON)
BuildRequires: perl(HTTP::Request)
Requires: perl(parent)
Requires: perl(URI) >= 1.18
Requires: perl(Compress::Zlib)
Requires: perl(HTTP::Message) >= 1.56
Requires: perl(LWP::UserAgent)
Requires: perl(HTTP::Response)
Requires: perl(Mouse)
Requires: perl(Digest::MD5)
Requires: perl(JSON)
Requires: perl(HTTP::Request)
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%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.
%prep
%setup -q -n "Flickr-API2-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?_smp_flags}
%install
%perl_make_install
%perl_process_packlist
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc README Changes
%dir %{perl_vendorlib}/Flickr
%{perl_vendorlib}/Flickr/API2.pm
%{perl_vendorlib}/Flickr/API2
%doc %{perl_man3dir}/Flickr::API2.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Flickr::API2::*%{perl_man3ext}%{ext_man}
%changelog