[lua-md5/f12/master] Initial import
Tim Niemueller
timn at fedoraproject.org
Mon Oct 25 20:17:16 UTC 2010
commit d0a9eb7cc582398212182804326acb9b99d5f09f
Author: Tim Niemueller <niemueller at kbsg.rwth-aachen.de>
Date: Mon Oct 25 16:16:49 2010 -0400
Initial import
.gitignore | 6 ++++++
lua-md5.spec | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 60 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8bb5042 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,6 @@
+/md5-1.1.2.tar.gz
+/md5-1.1.2
+/.build*
+/*.src.rpm
+/x86_64
+/i386
diff --git a/lua-md5.spec b/lua-md5.spec
new file mode 100644
index 0000000..b02e20a
--- /dev/null
+++ b/lua-md5.spec
@@ -0,0 +1,53 @@
+%define luaver 5.1
+%define lualibdir %{_libdir}/lua/%{luaver}
+%define luapkgdir %{_datadir}/lua/%{luaver}
+
+Name: lua-md5
+Version: 1.1.2
+Release: 1%{?dist}
+Summary: Cryptographic Library for MD5 hashes for Lua
+
+Group: Development/Libraries
+License: MIT
+URL: http://www.keplerproject.org/md5/
+Source0: http://luaforge.net/frs/download.php/3355/md5-1.1.2.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: lua >= %{luaver}, lua-devel >= %{luaver}
+Requires: lua >= %{luaver}
+
+%description
+MD5 offers basic cryptographic facilities for Lua 5.1: a hash (digest)
+function, a pair crypt/decrypt based on MD5 and CFB, and a pair crypt/decrypt
+based on DES with 56-bit keys.
+
+%prep
+%setup -q -n md5-%{version}
+
+
+%build
+make CFLAGS="%{optflags} -fPIC"
+
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{lualibdir}
+mkdir -p %{buildroot}%{luapkgdir}
+make install LUA_DIR=%{buildroot}%{luapkgdir} LUA_LIBDIR=%{buildroot}%{lualibdir}
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc README doc/us/*
+%{luapkgdir}/*
+%{lualibdir}/*
+
+
+%changelog
+* Wed Oct 20 2010 Tim Niemueller <tim at niemueller.de> - 1.1.2-1
+- Initial package
+
diff --git a/sources b/sources
index e69de29..2881e84 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+68874cff64547f2157d5ecdc3572b544 md5-1.1.2.tar.gz
More information about the scm-commits
mailing list