[lua-lgi] Update to 0.7.2.

Thomas Moschny thm at fedoraproject.org
Thu Apr 17 17:27:37 UTC 2014


commit 9c72f357fb7b8e9cda390c8e21023ff201f25ed6
Author: Thomas Moschny <thm at fedoraproject.org>
Date:   Thu Apr 17 19:26:31 2014 +0200

    Update to 0.7.2.
    
    - Use a single package doc dir.

 .gitignore   |    1 +
 lua-lgi.spec |   38 ++++++++++++++++++++++++++------------
 sources      |    2 +-
 3 files changed, 28 insertions(+), 13 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 56e7d3b..f8dab73 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /0.6.2.tar.gz
 /lgi-0.7.1.tar.gz
+/lgi-0.7.2.tar.gz
diff --git a/lua-lgi.spec b/lua-lgi.spec
index 14ff719..0190ef3 100644
--- a/lua-lgi.spec
+++ b/lua-lgi.spec
@@ -1,10 +1,14 @@
+%if 0%{?fedora} > 19
 %global luaver 5.2
+%else
+%global luaver 5.1
+%endif
 %global lualibdir %{_libdir}/lua/%{luaver}
 %global luapkgdir %{_datadir}/lua/%{luaver}
 
 Name:		lua-lgi
-Version:	0.7.1
-Release:	3%{?dist}
+Version:	0.7.2
+Release:	1%{?dist}
 Summary:	Lua bindings to GObject libraries
 License:	MIT
 URL:		https://github.com/pavouk/lgi
@@ -25,6 +29,7 @@ BuildRequires:	Xvfb xauth
 Requires:	lua >= %{luaver}
 
 %global __requires_exclude_from %{_docdir}
+%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
 
 %description
 LGI is gobject-introspection based dynamic Lua binding to GObject
@@ -47,14 +52,11 @@ Requires:   %{name}%{?_isa} = %{version}-%{release}
 
 
 %build
-export CFLAGS="%{optflags}"
-export LDFLAGS="%{__global_ldflags}"
+%configure || :
 make %{?_smp_mflags}
 
 # generate html documentation
-for f in README.md docs/*.md; do
-  markdown.lua "$f" > ${f%%.md}.html
-done
+markdown.lua README.md docs/*.md
 
 
 %install
@@ -64,26 +66,38 @@ make install \
   "LUA_SHAREDIR=%{luapkgdir}" \
   "DESTDIR=%{buildroot}"
 
+# install docs
+mkdir -p %{buildroot}%{_pkgdocdir}
+cp -av LICENSE README.html docs/*.html \
+  %{buildroot}%{_pkgdocdir}
+cp -av samples %{buildroot}%{_pkgdocdir}
+find %{buildroot}%{_pkgdocdir} -type f \
+  -exec chmod -x {} \;
+
 
 %check
-export CFLAGS="%{optflags}"
-export LDFLAGS="%{__global_ldflags}"
+%configure || :
 xvfb-run -a -w 1 make check
 
 
 %files
-%doc LICENSE README.html
-%doc docs/*.html
+%dir %{_pkgdocdir}
+%{_pkgdocdir}/LICENSE
+%{_pkgdocdir}/*.html
 %{luapkgdir}/lgi.lua
 %{luapkgdir}/lgi
 %{lualibdir}/lgi
 
 
 %files samples
-%doc samples/*
+%{_pkgdocdir}/samples
 
 
 %changelog
+* Thu Apr 17 2014 Thomas Moschny <thomas.moschny at gmx.de> - 0.7.2-1
+- Update to 0.7.2.
+- Use a single package doc dir.
+
 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.7.1-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
diff --git a/sources b/sources
index 8e8b83c..a9adcfc 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-de7367aee8e39f7df7c2229675c5ff2d  lgi-0.7.1.tar.gz
+f41902695c3d8ef40312d7c654885bf3  lgi-0.7.2.tar.gz


More information about the scm-commits mailing list