commit 10cc76a17eeeb658b82d9ae785ca426c7eb1066b Author: Jacek Konieczny <jaj...@jajcus.net> Date: Mon Mar 11 21:46:04 2019 +0100
new package premake3-flags.patch | 12 +++++++++ premake3-system-lua.patch | 52 ++++++++++++++++++++++++++++++++++++ premake3.spec | 68 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 132 insertions(+) --- diff --git a/premake3.spec b/premake3.spec new file mode 100644 index 0000000..93dd165 --- /dev/null +++ b/premake3.spec @@ -0,0 +1,68 @@ +Summary: Cross-platform build configuration tool +Summary(pl.UTF-8): Międzyplatformowe narzędzie do budowy projektów +Name: premake3 +Version: 3.7 +Release: 1 +License: GPL v2 +Group: Development/Tools +Source0: http://http.debian.net/debian/pool/main/p/premake/premake_%{version}.orig.tar.gz +# Source0-md5: a328ea385f2bbf65007df36c74cb4f8c +Patch0: %{name}-system-lua.patch +Patch1: %{name}-flags.patch +URL: http://industriousone.com/premake/ +BuildRequires: lua51-devel +BuildRequires: pkgconfig +BuildRequires: readline-devel +BuildRequires: unzip +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Premake is a build configuration tool that can generate project files +for: + - GNU make + - Code::Blocks + - CodeLite + - MonoDevelop + - SharpDevelop + - Apple XCode + - Microsoft Visual Studio + +%description -l pl.UTF-8 +Premake jest narzędziem do budowy projektów, które potrafi wygenerować +pliki projektów dla: + - GNU make + - Code::Blocks + - CodeLite + - MonoDevelop + - SharpDevelop + - Apple XCode + - Microsoft Visual Studio + +%prep +%setup -q -n premake-%{version}.orig +%patch0 -p1 +%patch1 -p1 + +sed -i -e's/@\$(CC/$(CC/g;s/@\$(BLD/$(BLD/' Src/Makefile + +%build +CC="%{__cc}" \ +OPTFLAGS="%{rpmcflags}" \ +LDFLAGS="%{rpmldflags}" \ +%{__make} \ + CONFIG="Release" \ + verbose=true + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_bindir} + +cp -a bin/premake $RPM_BUILD_ROOT%{_bindir} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc CHANGES.txt README.txt +%attr(755,root,root) %{_bindir}/premake diff --git a/premake3-flags.patch b/premake3-flags.patch new file mode 100644 index 0000000..8287289 --- /dev/null +++ b/premake3-flags.patch @@ -0,0 +1,12 @@ +diff -dur premake-3.7.orig.orig/Src/Makefile premake-3.7.orig/Src/Makefile +--- premake-3.7.orig.orig/Src/Makefile 2019-03-11 19:20:03.326684224 +0100 ++++ premake-3.7.orig/Src/Makefile 2019-03-11 19:20:27.591955826 +0100 +@@ -14,7 +14,7 @@ + OBJDIR := obj/Debug + OUTDIR := ../bin + CPPFLAGS := $(DEPFLAGS) -D "_CRT_SECURE_NO_DEPRECATE" -D "USE_POPEN=1" +- CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -g -Wall ++ CFLAGS += $(CPPFLAGS) $(OPTFLAGS) + CXXFLAGS += $(CFLAGS) + LDFLAGS += -L$(BINDIR) -L$(LIBDIR) -lm + LDDEPS := diff --git a/premake3-system-lua.patch b/premake3-system-lua.patch new file mode 100644 index 0000000..f908c01 --- /dev/null +++ b/premake3-system-lua.patch @@ -0,0 +1,52 @@ +diff -dur premake-3.7.orig.orig/Src/Makefile premake-3.7.orig/Src/Makefile +--- premake-3.7.orig.orig/Src/Makefile 2008-09-21 14:11:41.000000000 +0200 ++++ premake-3.7.orig/Src/Makefile 2019-03-11 19:18:27.414616613 +0100 +@@ -29,9 +29,9 @@ + OBJDIR := obj/Release + OUTDIR := ../bin + CPPFLAGS := $(DEPFLAGS) -D "_CRT_SECURE_NO_DEPRECATE" -D "USE_POPEN=1" +- CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -Os -Wall ++ CFLAGS += $(CPPFLAGS) $(shell pkg-config --cflags lua51) $(TARGET_ARCH) -Os -Wall + CXXFLAGS += $(CFLAGS) +- LDFLAGS += -L$(BINDIR) -L$(LIBDIR) -s -lm ++ LDFLAGS += -L$(BINDIR) -L$(LIBDIR) $(shell pkg-config --libs lua51) -s -lm + LDDEPS := + RESFLAGS := -D "_CRT_SECURE_NO_DEPRECATE" -D "USE_POPEN=1" + TARGET := premake +@@ -71,36 +71,6 @@ + $(OBJDIR)/script.o \ + $(OBJDIR)/vs2005.o \ + $(OBJDIR)/codelite.o \ +- $(OBJDIR)/lapi.o \ +- $(OBJDIR)/lstate.o \ +- $(OBJDIR)/lvm.o \ +- $(OBJDIR)/liolib.o \ +- $(OBJDIR)/ldblib.o \ +- $(OBJDIR)/ltablib.o \ +- $(OBJDIR)/lstring.o \ +- $(OBJDIR)/ldebug.o \ +- $(OBJDIR)/lstrlib.o \ +- $(OBJDIR)/lfunc.o \ +- $(OBJDIR)/lauxlib.o \ +- $(OBJDIR)/lgc.o \ +- $(OBJDIR)/ldo.o \ +- $(OBJDIR)/ltests.o \ +- $(OBJDIR)/ltm.o \ +- $(OBJDIR)/lundump.o \ +- $(OBJDIR)/ldump.o \ +- $(OBJDIR)/lmem.o \ +- $(OBJDIR)/lbaselib.o \ +- $(OBJDIR)/loadlib.o \ +- $(OBJDIR)/ltable.o \ +- $(OBJDIR)/lparser.o \ +- $(OBJDIR)/lzio.o \ +- $(OBJDIR)/llex.o \ +- $(OBJDIR)/loslib.o \ +- $(OBJDIR)/lcode.o \ +- $(OBJDIR)/lopcodes.o \ +- $(OBJDIR)/lmathlib.o \ +- $(OBJDIR)/lobject.o \ +- $(OBJDIR)/linit.o \ + $(OBJDIR)/ow.o \ + + MKDIR_TYPE := msdos ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/premake3.git/commitdiff/10cc76a17eeeb658b82d9ae785ca426c7eb1066b _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit