diff --git a/perl-Net-Dropbox-API.spec b/perl-Net-Dropbox-API.spec index 4a68874..31d4206 100644 --- a/perl-Net-Dropbox-API.spec +++ b/perl-Net-Dropbox-API.spec @@ -1,7 +1,7 @@ # # 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 # 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) # 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 -Summary: A dropbox API interface -License: Artistic-1.0 or GPL-1.0+ -Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Net-Dropbox-API/ -Source: http://www.cpan.org/authors/id/N/NO/NORBU/%{cpan_name}-%{version}.tar.gz +Name: perl-Net-Dropbox-API +Version: 1.900.0 +Release: 0 +# 1.9 -> normalize -> 1.900.0 +%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 -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Data::Random) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.36 BuildRequires: perl(HTTP::Request::Common) BuildRequires: perl(JSON) BuildRequires: perl(LWP::UserAgent) @@ -45,21 +46,24 @@ Requires: perl(Mouse) Requires: perl(Net::OAuth) Requires: perl(URI) Requires: perl(common::sense) +Provides: perl(Net::Dropbox::API) = %{version} +%undefine __perllib_provides %{perl_requires} %description A dropbox API interface %prep -%setup -q -n %{cpan_name}-%{version} -find . -type f -print0 | xargs -0 chmod 644 +%autosetup -n %{cpan_name}-%{cpan_version} -p1 + +find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644 %build -PERL5LIB=. %{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor +%make_build %check -%{__make} test +make test %install %perl_make_install @@ -67,7 +71,6 @@ PERL5LIB=. %{__perl} Makefile.PL INSTALLDIRS=vendor %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes examples ignore.txt README %changelog