2010-09-22 21:37:53 +00:00
|
|
|
#
|
2012-06-07 18:05:24 +00:00
|
|
|
# spec file for package perl-Filesys-Notify-Simple
|
2010-09-22 21:37:53 +00:00
|
|
|
#
|
2013-06-18 09:40:52 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-09-22 21:37:53 +00:00
|
|
|
#
|
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Filesys-Notify-Simple
|
2013-06-18 09:40:52 +00:00
|
|
|
Version: 0.12
|
2012-06-07 18:05:24 +00:00
|
|
|
Release: 0
|
2013-06-18 09:40:52 +00:00
|
|
|
%define cpan_name Filesys-Notify-Simple
|
2010-09-22 21:37:53 +00:00
|
|
|
Summary: Simple and dumb file system watcher
|
2013-06-18 09:40:52 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2010-09-22 21:37:53 +00:00
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
|
Url: http://search.cpan.org/dist/Filesys-Notify-Simple/
|
2013-06-18 09:40:52 +00:00
|
|
|
Source: http://www.cpan.org/authors/id/M/MI/MIYAGAWA/%{cpan_name}-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-09-22 21:37:53 +00:00
|
|
|
BuildRequires: perl
|
2012-06-07 18:05:24 +00:00
|
|
|
BuildRequires: perl-macros
|
2010-09-22 21:37:53 +00:00
|
|
|
BuildRequires: perl(Test::SharedFork)
|
2013-06-18 09:40:52 +00:00
|
|
|
#BuildRequires: perl(Filesys::Notify::KQueue)
|
|
|
|
|
#BuildRequires: perl(Filesys::Notify::Simple)
|
|
|
|
|
#BuildRequires: perl(Linux::Inotify2)
|
|
|
|
|
#BuildRequires: perl(Mac::FSEvents)
|
|
|
|
|
#BuildRequires: perl(Win32::ChangeNotify)
|
2012-06-07 18:05:24 +00:00
|
|
|
%{perl_requires}
|
2010-09-22 21:37:53 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Filesys::Notify::Simple is a simple but unified interface to get
|
|
|
|
|
notifications of changes to a given filesystem path. It utilizes inotify2
|
2013-06-18 09:40:52 +00:00
|
|
|
on Linux, fsevents on OS X, kqueue on FreeBSD and
|
|
|
|
|
FindFirstChangeNotification on Windows if they're installed, with a
|
|
|
|
|
fallback to the full directory scan if they're not available.
|
|
|
|
|
|
|
|
|
|
There are some limitations in this module. If you don't like it, use the
|
|
|
|
|
File::ChangeNotify manpage.
|
|
|
|
|
|
|
|
|
|
* *
|
|
|
|
|
|
|
|
|
|
There is no file name based filter. Do it in your own code.
|
|
|
|
|
|
|
|
|
|
* *
|
|
|
|
|
|
|
|
|
|
You can not get types of events (created, updated, deleted).
|
|
|
|
|
|
|
|
|
|
* *
|
|
|
|
|
|
|
|
|
|
Currently 'wait' method blocks.
|
|
|
|
|
|
|
|
|
|
In return, this module doesn't depend on any non-core modules. Platform
|
|
|
|
|
specific optimizations with the Linux::Inotify2 manpage, the Mac::FSEvents
|
|
|
|
|
manpage, the Filesys::Notify::KQueue manpage and the Win32::ChangeNotify
|
|
|
|
|
manpage are truely optional.
|
|
|
|
|
|
|
|
|
|
NOTE: Using the Win32::ChangeNotify manpage may put additional limitations.
|
|
|
|
|
|
|
|
|
|
* *
|
|
|
|
|
|
|
|
|
|
the Win32::ChangeNotify manpage uses FindFirstChangeNotificationA so that
|
|
|
|
|
Unicode characters can not be handled. On cygwin (1.7 or later), Unicode
|
|
|
|
|
characters should be able to be handled when the Win32::ChangeNotify
|
|
|
|
|
manpage is not used.
|
|
|
|
|
|
|
|
|
|
* *
|
|
|
|
|
|
|
|
|
|
If more than 64 directories are included under the specified paths, an
|
|
|
|
|
error occurrs.
|
2010-09-22 21:37:53 +00:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{__make} test
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%perl_make_install
|
2013-06-18 09:40:52 +00:00
|
|
|
%perl_process_packlist
|
2010-09-22 21:37:53 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2013-06-18 09:40:52 +00:00
|
|
|
%defattr(-,root,root,755)
|
|
|
|
|
%doc Changes cpanfile LICENSE README
|
2010-09-22 21:37:53 +00:00
|
|
|
|
|
|
|
|
%changelog
|