8
0
2025-02-05 17:46:29 +00:00
committed by Git OBS Bridge
parent da773c335e
commit cbac15501a

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Net-Dropbox-API # spec file for package perl-Net-Dropbox-API
# #
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -12,24 +12,25 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
Name: perl-Net-Dropbox-API
Version: 1.9
Release: 0
%define cpan_name Net-Dropbox-API %define cpan_name Net-Dropbox-API
Summary: A dropbox API interface Name: perl-Net-Dropbox-API
License: Artistic-1.0 or GPL-1.0+ Version: 1.900.0
Group: Development/Libraries/Perl Release: 0
Url: http://search.cpan.org/dist/Net-Dropbox-API/ # 1.9 -> normalize -> 1.900.0
Source: http://www.cpan.org/authors/id/N/NO/NORBU/%{cpan_name}-%{version}.tar.gz %define cpan_version 1.9
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Dropbox API interface
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/N/NO/NORBU/%{cpan_name}-%{cpan_version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Data::Random) BuildRequires: perl(Data::Random)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.36
BuildRequires: perl(HTTP::Request::Common) BuildRequires: perl(HTTP::Request::Common)
BuildRequires: perl(JSON) BuildRequires: perl(JSON)
BuildRequires: perl(LWP::UserAgent) BuildRequires: perl(LWP::UserAgent)
@@ -45,21 +46,24 @@ Requires: perl(Mouse)
Requires: perl(Net::OAuth) Requires: perl(Net::OAuth)
Requires: perl(URI) Requires: perl(URI)
Requires: perl(common::sense) Requires: perl(common::sense)
Provides: perl(Net::Dropbox::API) = %{version}
%undefine __perllib_provides
%{perl_requires} %{perl_requires}
%description %description
A dropbox API interface A dropbox API interface
%prep %prep
%setup -q -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version} -p1
find . -type f -print0 | xargs -0 chmod 644
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build %build
PERL5LIB=. %{__perl} Makefile.PL INSTALLDIRS=vendor PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags} %make_build
%check %check
%{__make} test make test
%install %install
%perl_make_install %perl_make_install
@@ -67,7 +71,6 @@ PERL5LIB=. %{__perl} Makefile.PL INSTALLDIRS=vendor
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes examples ignore.txt README %doc Changes examples ignore.txt README
%changelog %changelog