File tcl-inotify.spec of Package tcl-inotify
#
# spec file for package tcl-inotify (Version 1.3)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
Summary: A Tcl interface to the linux kernel's Inotify service
Name: tcl-inotify
Version: 1.4
Release: 1
License: GPL-2.0+
Group: Development/Libraries/Tcl
Url: https://sourceforge.net/projects/tcl-inotify/
BuildRequires: tcl-devel
BuildRequires: autoconf
Source0: %name-%version.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package provides a Tcl extension that enables Tcl scripts to
monitor the file system changes at a file and directory level. A proc
is executed asynchronously to notify for changes.
%prep
%setup -q
# Workaround for missed version bump
sed -i '/AC_INIT/s/3/4/' configure.in
sed -i '/Tcl_PkgProvide/s/3/4/' unix/inotify.c
%build
autoreconf
%configure --with-tcl=%_libdir
make
%install
%makeinstall PKG_HEADERS="" pkglibdir=%tcl_archdir/%name%version
%clean
rm -rf %buildroot
%files
%defattr(-,root,root,-)
%doc %_mandir/*/*
%tcl_archdir/*
%changelog