forked from pool/perl-Net-Dropbox-API
1.1
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Net-Dropbox-API?expand=0&rev=1
This commit is contained in:
64
perl-Net-Dropbox-API.spec
Normal file
64
perl-Net-Dropbox-API.spec
Normal file
@@ -0,0 +1,64 @@
|
||||
# vim: set sw=4 ts=4 et nu:
|
||||
|
||||
Name: perl-Net-Dropbox-API
|
||||
Version: 1.1
|
||||
Release: 0
|
||||
Summary: A dropbox API interface
|
||||
Source: ftp://ftp.cpan.org/pub/CPAN/authors/id/N/NO/NORBU/Net-Dropbox-API-%{version}.tar.gz
|
||||
URL: http://search.cpan.org/dist/Net-Dropbox-API
|
||||
Group: Development/Libraries/Perl
|
||||
License: Perl License
|
||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||||
%{perl_requires}
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: make
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(LWP::UserAgent)
|
||||
BuildRequires: perl(Mouse)
|
||||
BuildRequires: perl(Data::Random)
|
||||
BuildRequires: perl(common::sense)
|
||||
BuildRequires: perl(JSON)
|
||||
BuildRequires: perl(Net::OAuth)
|
||||
BuildRequires: perl(HTTP::Request::Common)
|
||||
Requires: perl(LWP::UserAgent)
|
||||
Requires: perl(Mouse)
|
||||
Requires: perl(Data::Random)
|
||||
Requires: perl(common::sense)
|
||||
Requires: perl(JSON)
|
||||
Requires: perl(Net::OAuth)
|
||||
Requires: perl(HTTP::Request::Common)
|
||||
%if 0%{?suse_version} >= 1120
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%description
|
||||
The Dropbox API is a OAuth based API.
|
||||
|
||||
%prep
|
||||
%setup -q -n "Net-Dropbox-API-%{version}"
|
||||
%__sed -i '/^auto_install/d' Makefile.PL
|
||||
|
||||
%build
|
||||
%__perl Makefile.PL PREFIX="%{_prefix}"
|
||||
%__make %{?jobs:-j%{jobs}}
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
|
||||
%check
|
||||
%__make test
|
||||
|
||||
%clean
|
||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc Changes README
|
||||
%dir %{perl_vendorlib}/Net
|
||||
%dir %{perl_vendorlib}/Net/Dropbox
|
||||
%{perl_vendorlib}/Net/Dropbox/API.pm
|
||||
%doc %{perl_man3dir}/Net::Dropbox::API.%{perl_man3ext}%{ext_man}
|
||||
|
Reference in New Issue
Block a user