%global luaver 5.3 %global luapkgdir %{_datadir}/lua/%{luaver} Name: lua-markdown Version: 0.32 Release: 15%{?dist} BuildArch: noarch Summary: Markdown module for Lua License: MIT URL: http://www.frykholm.se/files/markdown.lua Source0: http://www.frykholm.se/files/markdown.lua Source1: http://www.frykholm.se/files/markdown-tests.lua Patch0: lua-markdown-0.32-lua-5.2.patch BuildRequires: lua >= %{luaver} Requires: lua >= %{luaver} %description This is an implementation of the popular text markup language Markdown in pure Lua. Markdown can convert documents written in a simple and easy to read text format to well-formatted HTML. %prep %setup -c -T cp -av %{SOURCE0} . cp -av %{SOURCE1} . %patch0 -p1 -b .lua-52 %build # nothing to do here %install mkdir -p %{buildroot}%{luapkgdir} mkdir -p %{buildroot}%{_bindir} cp -av markdown.lua %{buildroot}%{luapkgdir} # fix script sed -i %{buildroot}%{luapkgdir}/markdown.lua -e '1{/^#!/d}' # create a wrapper echo -en '#!/bin/sh\nlua %{luapkgdir}/markdown.lua "$@"' \ > %{buildroot}%{_bindir}/markdown.lua chmod +x %{buildroot}%{_bindir}/markdown.lua %check lua markdown.lua -t %files %{_bindir}/markdown.lua %{luapkgdir}/markdown.lua %changelog * Wed Jan 29 2020 Fedora Release Engineering - 0.32-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 0.32-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 0.32-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.32-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Feb 08 2018 Fedora Release Engineering - 0.32-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0.32-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 0.32-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.32-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 0.32-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Jan 16 2015 Tom Callaway - 0.32-6 - rebuild for lua 5.3 * Sat Jun 07 2014 Fedora Release Engineering - 0.32-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 0.32-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri May 10 2013 Tom Callaway - 0.32-3 - rebuild for lua 5.2 * Thu Feb 14 2013 Fedora Release Engineering - 0.32-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Jan 2 2013 Thomas Moschny - 0.32-1 - New package.