forked from pool/perl-Linux-Inotify2
- updated to 2.3
see /usr/share/doc/packages/perl-Linux-Inotify2/Changes
2.3
- store a filehandle internally so it gets perl's CLOEXEC flag as needed. also
gets rid of the destructor and the internal close function for added space
savings (reported by Eric Wong).
- add new ->fh accessor.
OBS-URL: https://build.opensuse.org/request/show/909786
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Linux-Inotify2?expand=0&rev=27
72 lines
2.3 KiB
RPMSpec
72 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package perl-Linux-Inotify2
|
|
#
|
|
# 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
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define cpan_name Linux-Inotify2
|
|
Name: perl-Linux-Inotify2
|
|
Version: 2.3
|
|
Release: 0
|
|
#Upstream: CHECK(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}-%{version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(common::sense)
|
|
Requires: perl(common::sense)
|
|
%{perl_requires}
|
|
|
|
%description
|
|
This module implements an interface to the Linux 2.6.13 and later Inotify
|
|
file/directory change notification system.
|
|
|
|
It has a number of advantages over the Linux::Inotify module:
|
|
|
|
- it is portable (Linux::Inotify only works on x86)
|
|
- the equivalent of fullname works correctly
|
|
- it is better documented
|
|
- it has callback-style interface, which is better suited for
|
|
integration.
|
|
|
|
As for the inotify API itself - it is a very tricky, and somewhat
|
|
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}-%{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}"
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes README
|
|
%license COPYING
|
|
|
|
%changelog
|