packages: perl-Linux-Inotify2/perl-Linux-Inotify2.spec (NEW) - initial
amateja
amateja at pld-linux.org
Tue Jun 16 11:53:35 CEST 2009
Author: amateja Date: Tue Jun 16 09:53:35 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- initial
---- Files affected:
packages/perl-Linux-Inotify2:
perl-Linux-Inotify2.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/perl-Linux-Inotify2/perl-Linux-Inotify2.spec
diff -u /dev/null packages/perl-Linux-Inotify2/perl-Linux-Inotify2.spec:1.1
--- /dev/null Tue Jun 16 11:53:35 2009
+++ packages/perl-Linux-Inotify2/perl-Linux-Inotify2.spec Tue Jun 16 11:53:30 2009
@@ -0,0 +1,79 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Linux
+%define pnam Inotify2
+Summary: Linux::Inotify2 - scalable directory/file change notification
+#Summary(pl.UTF-8):
+Name: perl-Linux-Inotify2
+Version: 1.2
+Release: 1
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/Linux/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 3acafbec22a3e9c88ee788397773fd83
+URL: http://search.cpan.org/dist/Linux-Inotify2/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module implements an interface to the Linux 2.6.13 and later
+Inotify file/directory change notification sytem.
+
+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.
+
+# %description -l pl.UTF-8
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make} \
+ CC="%{__cc}" \
+ OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a eg $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorarch}/Linux/*.pm
+%dir %{perl_vendorarch}/auto/Linux/Inotify2
+%{perl_vendorarch}/auto/Linux/Inotify2/*.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/Linux/Inotify2/*.so
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2009/06/16 09:53:30 amateja
+- initial
+
================================================================
More information about the pld-cvs-commit
mailing list