[lua-inotify] Initial import

Michel Alexandre Salim salimma at fedoraproject.org
Fri Sep 9 19:19:55 UTC 2011


commit d4e93d24af597a1a20bfbe24bf43254c73b75489
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date:   Fri Sep 9 21:19:21 2011 +0200

    Initial import

 .gitignore       |    1 +
 lua-inotify.spec |   59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources          |    1 +
 3 files changed, 61 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7a505ac 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/linotify-1.0-6d0f7a0973cfb.tar.xz
diff --git a/lua-inotify.spec b/lua-inotify.spec
new file mode 100644
index 0000000..4d19c15
--- /dev/null
+++ b/lua-inotify.spec
@@ -0,0 +1,59 @@
+%global gitrev   6d0f7a0973cfb
+%global alphatag 20110529git%{gitrev}
+
+%global luaver 5.1
+%global lualibdir %{_libdir}/lua/%{luaver}
+
+Name:           lua-inotify
+Version:        1.0
+Release:        0.2.%{alphatag}%{?dist}
+Summary:        Inotify bindings for Lua
+
+License:        MIT
+URL:            http://hoelz.ro/projects/linotify
+# Source only available from Git; instructions below
+# git clone git://github.com/hoelzro/linotify.git
+# (cd linotify && git archive --format=tar \
+#  --prefix=linotify-%%{version}-%%{gitrev}/ %%{gitrev} \
+#  | xz - ) > linotify-%%{version}-%%{gitrev}.tar.xz
+Source0:        linotify-%{version}-%{gitrev}.tar.xz
+
+BuildRequires:  lua-devel >= %{luaver}
+Requires:       lua >= %{luaver}
+
+%description
+This is linotify, a binding for Linux's inotify library to Lua.
+
+
+%prep
+%setup -q -n linotify-%{version}-%{gitrev}
+# do not strip when installing; preserve modtime (not strictly required)
+sed -i.nostrip -e 's|install -D -s|install -D -p|' Makefile
+
+
+%build
+# original CFLAGS is computed using Lua's pkgconfig file, but ours
+# does not set any.
+#
+# Overriding with the default %%{optflags}, and keeping the -fPIC
+# from the original CFLAGS as the build target is a shared object
+make %{?_smp_mflags} CFLAGS="%{optflags} -fPIC"
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT INSTALL_PATH=%{lualibdir}
+
+
+%files
+%doc COPYRIGHT README
+%{lualibdir}/inotify.so
+
+
+%changelog
+* Thu Sep  8 2011 Michel Salim <salimma at fedoraproject.org> - 1.0-0.2.20110529git6d0f7a0973cfb
+- add source checkout instructions
+- add explanation for overriding CFLAGS
+
+* Tue Aug 16 2011 Michel Salim <salimma at fedoraproject.org> - 1.0-0.1.20110529git6d0f7a0973cfb
+- Initial package
diff --git a/sources b/sources
index e69de29..90c23a4 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5de78cc0bfb9ba18e1e5c0e5036140f4  linotify-1.0-6d0f7a0973cfb.tar.xz


More information about the scm-commits mailing list