File premake4.spec of Package premake4

#
# spec file for package premake4
#
# Copyright (c) 2011 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/
#

# norootforbuild


Name:           premake4
Summary:        Powerfully simple build configuration
Group:          Development/Tools/Building
Version:        4.3
Release:        1
License:        BSD3c
Url:            http://industriousone.com/premake
# file http://sourceforge.net/projects/premake/files/Premake/4.3/premake-4.3-src.zip/download
# removed src/host/lua-5.1.4
# repacked to tar.bz2
Source:         premake-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE premake-4.3.patch adam@mizerski.pl -- use shared lua; use RPM_OPT_FLAGS; don't strip;
Patch0:         premake-4.3.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  lua-devel pkg-config
#Requires:       

%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 2002, 2003, 2005, and 2008, including the Express editions
    * GNU Make, including Cygwin and MinGW
    * Apple Xcode
    * Code::Blocks
    * CodeLite
    * IC#Code SharpDevelop
    * MonoDevelop

%prep
%setup -q -n premake-%{version}
%patch0 -p1

%build
pushd build/gmake.unix
%__make verbose=1 %{?_smp_mflags}
popd

%install
%__install -D -m755 bin/release/premake4 %buildroot%{_bindir}/%{name}

%clean
%__rm -rf %buildroot

%files
%defattr(-,root,root)
%{_bindir}/%{name}
%doc CHANGES.txt LICENSE.txt README.txt

%changelog
openSUSE Build Service is sponsored by