diff --git a/perl-File-ChangeNotify.spec b/perl-File-ChangeNotify.spec index 3b44fa2..d443892 100644 --- a/perl-File-ChangeNotify.spec +++ b/perl-File-ChangeNotify.spec @@ -1,7 +1,7 @@ # # spec file for package perl-File-ChangeNotify # -# Copyright (c) 2019 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 @@ -16,18 +16,18 @@ # -Name: perl-File-ChangeNotify -Version: 0.31 -Release: 0 %define cpan_name File-ChangeNotify -Summary: Watch for changes to files, cross-platform style +Name: perl-File-ChangeNotify +Version: 0.310.0 +Release: 0 +# 0.31 -> normalize -> 0.310.0 +%define cpan_version 0.31 License: Artistic-2.0 -Group: Development/Libraries/Perl -Url: https://metacpan.org/release/%{cpan_name} -Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz +Summary: Watch for changes to files, cross-platform style +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Module::Pluggable::Object) @@ -48,6 +48,13 @@ Requires: perl(Moo::Role) Requires: perl(Type::Utils) Requires: perl(Types::Standard) Requires: perl(namespace::autoclean) +Provides: perl(File::ChangeNotify) = %{version} +Provides: perl(File::ChangeNotify::Event) = %{version} +Provides: perl(File::ChangeNotify::Watcher) = %{version} +Provides: perl(File::ChangeNotify::Watcher::Default) = %{version} +Provides: perl(File::ChangeNotify::Watcher::Inotify) = %{version} +Provides: perl(File::ChangeNotify::Watcher::KQueue) = %{version} +%undefine __perllib_provides %{perl_requires} %description @@ -58,11 +65,11 @@ Most of the documentation for this distro is in File::ChangeNotify::Watcher. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %check make test @@ -73,8 +80,7 @@ make test %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) -%doc appveyor.yml Changes CODE_OF_CONDUCT.md CONTRIBUTING.md README.md +%doc Changes CODE_OF_CONDUCT.md CONTRIBUTING.md README.md %license LICENSE %changelog