|
|
|
|
@@ -1,7 +1,7 @@
|
|
|
|
|
#
|
|
|
|
|
# spec file for package perl-Linux-Inotify2
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2025 SUSE LLC
|
|
|
|
|
# Copyright (c) 2021 SUSE LLC
|
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
@@ -18,24 +18,18 @@
|
|
|
|
|
|
|
|
|
|
%define cpan_name Linux-Inotify2
|
|
|
|
|
Name: perl-Linux-Inotify2
|
|
|
|
|
Version: 2.300.0
|
|
|
|
|
Version: 2.3
|
|
|
|
|
Release: 0
|
|
|
|
|
# 2.3 -> normalize -> 2.300.0
|
|
|
|
|
%define cpan_version 2.3
|
|
|
|
|
#Upstream: CHECK(Artistic-1.0 or GPL-1.0-or-later)
|
|
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
|
|
|
Summary: Scalable directory/file change notification
|
|
|
|
|
License: GPL-1.0-or-later OR Artistic-1.0
|
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/%{cpan_name}-%{cpan_version}.tar.gz
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/%{cpan_name}-%{version}.tar.gz
|
|
|
|
|
Source1: cpanspec.yml
|
|
|
|
|
BuildRequires: perl
|
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
|
BuildRequires: perl(common::sense)
|
|
|
|
|
Requires: perl(common::sense)
|
|
|
|
|
Provides: perl(Linux::Inotify2) = %{version}
|
|
|
|
|
Provides: perl(Linux::Inotify2::Event)
|
|
|
|
|
Provides: perl(Linux::Inotify2::Watch)
|
|
|
|
|
%undefine __perllib_provides
|
|
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
@@ -55,9 +49,8 @@ unreliable API. For a good overview of the challenges you might run into,
|
|
|
|
|
see this LWN article: https://lwn.net/Articles/605128/.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%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
|
|
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
|
|