diff --git a/perl-Text-Clip.spec b/perl-Text-Clip.spec index e04929c..5201888 100644 --- a/perl-Text-Clip.spec +++ b/perl-Text-Clip.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Text-Clip # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,26 +12,29 @@ # 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-Text-Clip -Version: 0.0014 -Release: 0 %define cpan_name Text-Clip +Name: perl-Text-Clip +Version: 0.1.400 +Release: 0 +# 0.0014 -> normalize -> 0.1.400 +%define cpan_version 0.0014 +License: Artistic-1.0 OR GPL-1.0-or-later Summary: Clip and extract text in clipboard-like way -License: Artistic-1.0 or GPL-1.0+ -Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Text-Clip/ -Source0: http://www.cpan.org/authors/id/R/RO/ROKR/%{cpan_name}-%{version}.tar.gz +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/R/RO/ROKR/%{cpan_name}-%{cpan_version}.tar.gz BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Any::Moose) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31 BuildRequires: perl(Test::Most) Requires: perl(Any::Moose) +Provides: perl(Text::Clip) = %{version} +%undefine __perllib_provides %{perl_requires} %description @@ -41,14 +44,14 @@ access the text preceding and following the mark. Subsequent marks allow you to slurp up the text "clipped" between the marks. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor +%make_build %check -%{__make} test +make test %install %perl_make_install @@ -56,7 +59,6 @@ you to slurp up the text "clipped" between the marks. %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes README %changelog