[packages/lua-luv] cleanup
atler
atler at pld-linux.org
Tue May 3 12:35:38 CEST 2022
commit 818534641d73e5d98b5b6a65ed2c12c6ba0a147c
Author: Jan Palus <atler at pld-linux.org>
Date: Tue May 3 11:58:25 2022 +0200
cleanup
README.md | 3 ---
lua-luv.spec | 23 +++++++++++++++++------
2 files changed, 17 insertions(+), 9 deletions(-)
---
diff --git a/lua-luv.spec b/lua-luv.spec
index 60f5088..3e5c9a6 100644
--- a/lua-luv.spec
+++ b/lua-luv.spec
@@ -1,8 +1,8 @@
%bcond_without lua51 # lua51 package
%bcond_without luajit # lua51 package
-%global real_version 1.43.0
-%global extra_version 0
+%define real_version 1.43.0
+%global extra_version 0
%define luajit_abi 2.1
@@ -11,6 +11,10 @@ Name: lua-luv
Version: %{real_version}.%{extra_version}
Release: 1
License: Apache v2.0
+Group: Libraries
+Source0: https://github.com/luvit/luv/releases/download/1.43.0-0/luv-1.43.0-0.tar.gz
+# Source0-md5: 294c7ea4d8d2e21414b90f1fb70182e9
+URL: https://github.com/luvit/luv
BuildRequires: cmake
BuildRequires: libuv-devel
BuildRequires: lua-devel >= 5.4
@@ -19,10 +23,9 @@ BuildRequires: lua51-devel
%endif
%if %{with luajit}
BuildRequires: luajit-devel
+BuildRequires: rpmbuild(macros) >= 1.605
%endif
-Source0: https://github.com/luvit/luv/releases/download/1.43.0-0/luv-1.43.0-0.tar.gz
-# Source0-md5: 294c7ea4d8d2e21414b90f1fb70182e9
-URL: https://github.com/luvit/luv
+Requires: lua54-libs
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -39,13 +42,16 @@ we'll have a copy locally tailored for lua.
%package devel
Summary: Development files for lua-luv
+Group: Development/Libraries
Requires: lua-luv = %{version}-%{release}
+Requires: lua54-devel
%description devel
Files required for lua-luv development
%package -n lua51-luv
Summary: Bare libuv bindings for lua
+Requires: lua51-libs
%description -n lua51-luv
This library makes libuv available to lua scripts. It was made for the
@@ -63,13 +69,16 @@ Package for Lua 5.1.
%package -n lua51-luv-devel
Summary: Development files for lua51-luv
+Group: Development/Libraries
Requires: lua51-luv = %{version}-%{release}
+Requires: lua51-devel
%description -n lua51-luv-devel
Files required for lua51-luv development
%package -n luajit-luv
Summary: Bare libuv bindings for lua
+Requires: luajit-libs
%description -n luajit-luv
This library makes libuv available to lua scripts. It was made for the
@@ -87,13 +96,15 @@ Package for LuaJIT.
%package -n luajit-luv-devel
Summary: Development files for luajit-luv
+Group: Development/Libraries
Requires: luajit-luv = %{version}-%{release}
+Requires: luajit-devel
%description -n luajit-luv-devel
Files required for luajit-luv development
%prep
-%autosetup -n luv-%{real_version}-%{extra_version}
+%setup -q -n luv-%{real_version}-%{extra_version}
# Remove bundled dependencies
rm -r deps/{lua.cmake,luajit.cmake,libuv}
diff --git a/README.md b/README.md
deleted file mode 100644
index 18a54fe..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# lua-luv
-
-The lua-luv package
\ No newline at end of file
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lua-luv.git/commitdiff/818534641d73e5d98b5b6a65ed2c12c6ba0a147c
More information about the pld-cvs-commit
mailing list