3 %bcond_without tests # do not perform "make test"
6 %define pnam Notify-Simple
7 %include /usr/lib/rpm/macros.perl
8 Summary: Filesys::Notify::Simple - Simple and dumb file system watcher
9 Name: perl-Filesys-Notify-Simple
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Filesys/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 82a1ae968a457c7dc37367ab43a97da8
17 URL: http://search.cpan.org/dist/Filesys-Notify-Simple/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Filesys::Notify::Simple is a simple but unified interface to get
25 notifications of changes to a given filesystem path. It utilizes
26 inotify2 on Linux and fsevents on OS X if they're installed, with a
27 fallback to the full directory scan if they're not available.
29 There are some limitations in this module. If you don't like it, use
32 In return, this module doesn't depend on any non-core modules.
33 Platform specific optimizations with Linux::Inotify2 and Mac::FSEvents
37 %setup -q -n %{pdir}-%{pnam}-%{version}
40 %{__perl} Makefile.PL \
44 %{?with_tests:%{__make} test}
47 rm -rf $RPM_BUILD_ROOT
49 %{__make} pure_install \
50 DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %dir %{perl_vendorlib}/Filesys/Notify
59 %{perl_vendorlib}/Filesys/Notify/*.pm