Hello community, here is the log from the commit of package premake4 for openSUSE:Factory checked in at 2017-08-23 11:54:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/premake4 (Old) and /work/SRC/openSUSE:Factory/.premake4.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "premake4" Wed Aug 23 11:54:58 2017 rev:13 rq:518139 version:4.4beta4 Changes: -------- --- /work/SRC/openSUSE:Factory/premake4/premake4.changes 2016-04-05 10:44:35.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.premake4.new/premake4.changes 2017-08-23 11:55:00.080133537 +0200 @@ -1,0 +2,6 @@ +Tue Aug 22 13:54:03 UTC 2017 - a...@mizerski.pl + +- fixed building for Tumbleweed +- used spec-cleaner + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ premake4.spec ++++++ --- /var/tmp/diff_new_pack.xpMJvz/_old 2017-08-23 11:55:01.207974771 +0200 +++ /var/tmp/diff_new_pack.xpMJvz/_new 2017-08-23 11:55:01.215973644 +0200 @@ -1,7 +1,7 @@ # # spec file for package premake4 # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,12 @@ # +%if 0%{?suse_version} > 1320 +%define luapkg lua5.1 +%else +%define luapkg lua +%endif + Name: premake4 Version: 4.4beta4 Release: 0 @@ -26,14 +32,9 @@ Source: http://downloads.sourceforge.net/project/premake/Premake/4.4/premake-4.4-beta4-src.zip # PATCH-FIX-OPENSUSE premake-4.4.patch mailaen...@opensuse.org -- use shared lua; Patch0: premake-4.4.patch -BuildRequires: pkg-config -BuildRequires: unzip -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} > 1210 BuildRequires: lua51-devel -%else -BuildRequires: lua-devel -%endif +BuildRequires: pkgconfig +BuildRequires: unzip %description Premake is a build configuration tool. Describe your C, C++, or C# software project @@ -58,20 +59,17 @@ config=debug \ DEFINES="-DNDEBUG" \ INCLUDES="" \ - %if 0%{?suse_version} > 1320 - CFLAGS="\`pkg-config lua-5.1 --cflags\` \$(CPPFLAGS) \$(ARCH) \$(RPM_OPT_FLAGS)" \ - LDFLAGS="-rdynamic" LIBS="\`pkg-config lua-5.1 --libs\`" verbose=1 %{?_smp_mflags} - %else - CFLAGS="\`pkg-config lua --cflags\` \$(CPPFLAGS) \$(ARCH) \$(RPM_OPT_FLAGS)" \ - LDFLAGS="-rdynamic" LIBS="\`pkg-config lua --libs\`" verbose=1 %{?_smp_mflags} - %endif + CFLAGS="`pkg-config %{luapkg} --cflags` \$(CPPFLAGS) %{optflags}" \ + LDFLAGS="-rdynamic" \ + LIBS="`pkg-config %{luapkg} --libs`" \ + verbose=1 \ + %{?_smp_mflags} popd %install install -D -m 0755 bin/debug/premake4 %{buildroot}%{_bindir}/%{name} %files -%defattr(-,root,root) %doc CHANGES.txt LICENSE.txt README.txt %{_bindir}/%{name}