2024-07-20 00:01:37 +00:00
committed by Git OBS Bridge
parent baf84596b8
commit eccbcc9e21

View File

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