]> git.pld-linux.org Git - packages/perl-Filesys-Notify-Simple.git/blame - perl-Filesys-Notify-Simple.spec
use generic url
[packages/perl-Filesys-Notify-Simple.git] / perl-Filesys-Notify-Simple.spec
CommitLineData
3c9a7c45 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
31d4f417 4
3c9a7c45 5%define pdir Filesys
6%define pnam Notify-Simple
7%include /usr/lib/rpm/macros.perl
8Summary: Filesys::Notify::Simple - Simple and dumb file system watcher
3c9a7c45 9Name: perl-Filesys-Notify-Simple
ec63196a 10Version: 0.08
11Release: 1
3c9a7c45 12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/Filesys/%{pdir}-%{pnam}-%{version}.tar.gz
ec63196a 16# Source0-md5: 82a1ae968a457c7dc37367ab43a97da8
31d4f417 17URL: http://search.cpan.org/dist/Filesys-Notify-Simple/
3c9a7c45 18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
3c9a7c45 20BuildArch: noarch
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24Filesys::Notify::Simple is a simple but unified interface to get
25notifications of changes to a given filesystem path. It utilizes
26inotify2 on Linux and fsevents on OS X if they're installed, with a
27fallback to the full directory scan if they're not available.
28
29There are some limitations in this module. If you don't like it, use
30File::ChangeNotify.
31
31d4f417
ER
32In return, this module doesn't depend on any non-core modules.
33Platform specific optimizations with Linux::Inotify2 and Mac::FSEvents
34are truely optional.
3c9a7c45 35
36%prep
37%setup -q -n %{pdir}-%{pnam}-%{version}
38
39%build
40%{__perl} Makefile.PL \
41 INSTALLDIRS=vendor
42%{__make}
43
44%{?with_tests:%{__make} test}
45
46%install
47rm -rf $RPM_BUILD_ROOT
48
49%{__make} pure_install \
50 DESTDIR=$RPM_BUILD_ROOT
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%files
56%defattr(644,root,root,755)
57%doc Changes README
1432d75f 58%dir %{perl_vendorlib}/Filesys/Notify
3c9a7c45 59%{perl_vendorlib}/Filesys/Notify/*.pm
60%{_mandir}/man3/*
This page took 0.09288 seconds and 4 git commands to generate.