File premake4.spec of Package premake4
#
# spec file for package premake4
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: premake4
Summary: Powerfully simple build configuration
License: BSD-3-Clause
Group: Development/Tools/Building
Version: 4.4beta4
Release: 0
Url: http://industriousone.com/premake
Source: http://downloads.sourceforge.net/project/premake/Premake/4.4/premake-4.4-beta4-src.zip
# PATCH-FIX-OPENSUSE premake-4.4.patch mailaender@opensuse.org -- use shared lua;
Patch0: premake-4.4.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1210
BuildRequires: lua51-devel
%else
BuildRequires: lua-devel
%endif
BuildRequires: pkg-config
BuildRequires: unzip
%description
Premake is a build configuration tool. Describe your C, C++, or C# software project
using a simple, easy to read syntax and let Premake generate the project files for:
* Microsoft Visual Studio including the Express editions
* GNU Make, including Cygwin and MinGW
* Apple Xcode
* Code::Blocks
* CodeLite
* IC#Code SharpDevelop
* MonoDevelop
%prep
%setup -q -n premake-4.4-beta4
%patch0 -p1
rm -rf src/host/lua-5.1.4
%build
pushd build/gmake.unix
make Premake4 config=debug DEFINES="-DNDEBUG" INCLUDES="" CFLAGS="\`pkg-config lua --cflags\` \$(CPPFLAGS) \$(ARCH) \$(RPM_OPT_FLAGS)" LDFLAGS="-rdynamic" LIBS="\`pkg-config lua --libs\`" verbose=1 %{?_smp_mflags}
popd
%install
install -D -m755 bin/debug/premake4 %{buildroot}%{_bindir}/%{name}
%files
%defattr(-,root,root)
%{_bindir}/%{name}
%doc CHANGES.txt LICENSE.txt README.txt
%changelog