From 0551fb4cdf899222769f94371885f6a75d916075 Mon Sep 17 00:00:00 2001 From: Dawid Gajownik Date: Tue, 1 Aug 2006 15:56:11 +0000 Subject: [PATCH] auto-import inotify-tools-2.2-3 on branch devel from inotify-tools-2.2-3.src.rpm --- .cvsignore | 1 + inotify-tools-2.2.implicit_syscall.patch | 27 +++++++++++ inotify-tools.spec | 61 ++++++++++++++++++++++++ sources | 1 + 4 files changed, 90 insertions(+) create mode 100644 inotify-tools-2.2.implicit_syscall.patch create mode 100644 inotify-tools.spec diff --git a/.cvsignore b/.cvsignore index e69de29..a9b7c95 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +inotify-tools-2.2.tar.gz diff --git a/inotify-tools-2.2.implicit_syscall.patch b/inotify-tools-2.2.implicit_syscall.patch new file mode 100644 index 0000000..570fd7c --- /dev/null +++ b/inotify-tools-2.2.implicit_syscall.patch @@ -0,0 +1,27 @@ +diff -Nurp inotify-tools-2.2.orig/src/inotifywait.c inotify-tools-2.2/src/inotifywait.c +--- inotify-tools-2.2.orig/src/inotifywait.c 2006-07-03 06:49:34.000000000 +0200 ++++ inotify-tools-2.2/src/inotifywait.c 2006-07-06 13:56:32.000000000 +0200 +@@ -1,3 +1,4 @@ ++#define _GNU_SOURCE + #include "../config.h" + + #include +@@ -17,7 +18,6 @@ + #include "inotify-syscalls.h" + #include "inotifyutils.h" + +-#define _GNU_SOURCE + #include + + extern char *optarg; +diff -Nurp inotify-tools-2.2.orig/src/inotifywatch.c inotify-tools-2.2/src/inotifywatch.c +--- inotify-tools-2.2.orig/src/inotifywatch.c 2006-07-03 06:49:34.000000000 +0200 ++++ inotify-tools-2.2/src/inotifywatch.c 2006-07-06 13:57:40.000000000 +0200 +@@ -112,7 +112,6 @@ int main(int argc, char ** argv) + if ( !events ) + events = IN_ALL_EVENTS; + +- char * path; + unsigned int num_watches = 0; + unsigned int this_num_watches; + fprintf( stderr, "Establishing watches...\n" ); diff --git a/inotify-tools.spec b/inotify-tools.spec new file mode 100644 index 0000000..f8eb858 --- /dev/null +++ b/inotify-tools.spec @@ -0,0 +1,61 @@ +Name: inotify-tools +Version: 2.2 +Release: 3%{?dist} +Summary: Command line utilities for inotify + +Group: Applications/System +License: GPL +URL: http://inotify-tools.sourceforge.net/ +Source0: http://download.sf.net/inotify-tools/inotify-tools-%{version}.tar.gz +Patch0: inotify-tools-2.2.implicit_syscall.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + + +%description +inotify-tools is a set of command-line programs for Linux providing +a simple interface to inotify. These programs can be used to monitor +and act upon filesystem events. + + +%prep +%setup -q +%patch0 -p1 + + +%build +%configure --disable-dependency-tracking +make %{?_smp_mflags} + + +%install +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING NEWS README +%{_bindir}/inotifywait +%{_bindir}/inotifywatch +%{_mandir}/man1/inotifywait.1* +%{_mandir}/man1/inotifywatch.1* + + +%changelog +* Mon Jul 31 2006 Dawid Gajownik - 2.2-3 +- Fix URL + +* Thu Jul 6 2006 Dawid Gajownik - 2.2-2 +- Fix compilation warnings + +* Thu Jul 6 2006 Dawid Gajownik - 2.2-1 +- New version 2.2 +- Update URL and description +- Add man pages + +* Wed Jul 5 2006 Dawid Gajownik - 2.1-1 +- Initial RPM release. diff --git a/sources b/sources index e69de29..59c876c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +0ca1dd7a9bb0c6d0bbd084d8436b850f inotify-tools-2.2.tar.gz