Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrades lua lpeg to version 1.1.0 #11167

Open
wants to merge 1 commit into
base: 3.0-dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SPECS-EXTENDED/lua-lpeg/lua-lpeg.signatures.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Signatures": {
"lpeg-1.0.2.tar.gz": "48d66576051b6c78388faad09b70493093264588fcd0f258ddaab1cdd4a15ffe"
"lpeg-1.1.0.tar.gz": "4b155d67d2246c1ffa7ad7bc466c1ea899bbc40fef0257cc9c03cecbaed4352a"
}
}
}
34 changes: 17 additions & 17 deletions SPECS-EXTENDED/lua-lpeg/lua-lpeg.spec
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ Distribution: Azure Linux
%global lua_compat_builddir %{_builddir}/lua%{lua_compat_version}-%{lua_pkg_name}-%{version}-%{release}

Name: lua-%{lua_pkg_name}
Version: 1.0.2
Release: 4%{?dist}
Version: 1.1.0
Release: 1%{?dist}
Summary: Parsing Expression Grammars for Lua

License: MIT
URL: http://www.inf.puc-rio.br/~roberto/%{lua_pkg_name}/
Source0: http://www.inf.puc-rio.br/~roberto/%{lua_pkg_name}/%{lua_pkg_name}-%{version}.tar.gz
URL: https://www.inf.puc-rio.br/~roberto/%{lua_pkg_name}/
Source0: https://www.inf.puc-rio.br/~roberto/%{lua_pkg_name}/%{lua_pkg_name}-%{version}.tar.gz
Patch1: 0001-inject-ldflags.patch

BuildRequires: gcc
Expand Down Expand Up @@ -46,25 +46,23 @@ rm -rf %{lua_compat_builddir}
cp -a . %{lua_compat_builddir}

%build
make %{?_smp_mflags} COPT="%{optflags}" LDFLAGS="%{build_ldflags}"
%make_build COPT="%{optflags}" LDFLAGS="%{build_ldflags}"

pushd %{lua_compat_builddir}
make %{?_smp_mflags} COPT="-I%{_includedir}/lua-%{lua_compat_version} %{optflags}" LDFLAGS="-L%{lua_compat_libdir} %{build_ldflags}"
%make_build COPT="-I%{_includedir}/lua-%{lua_compat_version} %{optflags}" LDFLAGS="-L%{lua_compat_libdir} %{build_ldflags}"
popd

%install
%{__rm} -rf %{buildroot}

%{__mkdir_p} %{buildroot}%{lua_libdir}
%{__mkdir_p} %{buildroot}%{lua_pkgdir}
%{__install} -p lpeg.so %{buildroot}%{lua_libdir}/lpeg.so.%{version}
%{__install} -d -m 0755 %{buildroot}%{lua_libdir}
%{__install} -d -m 0755 %{buildroot}%{lua_pkgdir}
%{__install} -p -m 0755 lpeg.so %{buildroot}%{lua_libdir}/lpeg.so.%{version}
%{__ln_s} lpeg.so.%{version} %{buildroot}%{lua_libdir}/lpeg.so
%{__install} -p -m 0644 re.lua %{buildroot}%{lua_pkgdir}

pushd %{lua_compat_builddir}
%{__mkdir_p} %{buildroot}%{lua_compat_libdir}
%{__mkdir_p} %{buildroot}%{lua_compat_pkgdir}
%{__install} -p lpeg.so %{buildroot}%{lua_compat_libdir}/lpeg.so.%{version}
%{__install} -d -m 0755 %{buildroot}%{lua_compat_libdir}
%{__install} -d -m 0755 %{buildroot}%{lua_compat_pkgdir}
%{__install} -p -m 0755 lpeg.so %{buildroot}%{lua_compat_libdir}/lpeg.so.%{version}
%{__ln_s} lpeg.so.%{version} %{buildroot}%{lua_compat_libdir}/lpeg.so
%{__install} -p -m 0644 re.lua %{buildroot}%{lua_compat_pkgdir}
popd
Expand All @@ -74,18 +72,20 @@ popd
lua test.lua

%files
%license lpeg.html re.html
%doc HISTORY lpeg-128.gif test.lua
%doc HISTORY lpeg.html re.html lpeg-128.gif test.lua
%{lua_libdir}/*
%{lua_pkgdir}/*

%files -n lua%{lua_compat_version}-%{lua_pkg_name}
%license lpeg.html re.html
%{lua_compat_libdir}/*
%{lua_compat_pkgdir}/*


%changelog
* Wed Nov 20 2024 Aninda Pradhan <[email protected]> - 1.1.0-1
- Updated to 1.1.0.
- License verified.

* Fri Feb 25 2022 Pawel Winogrodzki <[email protected]> - 1.0.2-4
- Fixing run-time dependencies.
- License verified.
Expand Down
4 changes: 2 additions & 2 deletions cgmanifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12351,8 +12351,8 @@
"type": "other",
"other": {
"name": "lua-lpeg",
"version": "1.0.2",
"downloadUrl": "http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-1.0.2.tar.gz"
"version": "1.1.0",
"downloadUrl": "https://www.inf.puc-rio.br/~roberto/lpeg/lpeg-1.1.0.tar.gz"
}
}
},
Expand Down