File kbuild.spec of Package kbuild

# spec file for package kbuild (Version 0.1.5svn2336)
# Copyright (c) 2009 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

# norootforbuild


Name:           kbuild
BuildRequires:  bison flex libacl-devel
License:        GPL v2 or later
Group:          Development/Tools/Building
Summary:        framework for writing simple makefiles for complex tasks
Version:        0.1.5svn2336
Release:        3
%define _svnrev 2336
Source0:        %{name}-%{version}.tar.bz2
Patch0:         kbuild-man.diff
Patch1:         warnings.diff
Patch2:         kbuild-dummy_noreturn.diff
Patch3:         kbuild-func_missing_args.diff
Patch4:         glibc-2.10.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

The goals of the kBuild framework: - Similar behavior across all
   supported platforms

- Flexibility, don't create unnecessary restrictions preventing
   ad-hoc solutions

- Makefiles can be simple to write and maintain

- One configuration file for a subtree automatically included

- Target configuration templates as the primary mechanism for
   makefile simplification

- Tools and SDKs for helping out the templates with flexibility

- Non-recursive makefile method by using sub-makefiles

    Knut St. Osmundsen <>

%setup -q

%__cat > SvnInfo.kmk << EOF
KBUILD_SVN_REV := %{_svnrev}
kBuild/ --full make -f bootstrap.gmk SRCDIR=`pwd`
kBuild/ kmk rebuild PATH_INS=`pwd`
pod2man -c 'kBuild for SUSE Linux' -r kBuild-%version kmk.pod > kmk.1

kBuild/ kmk NIX_INSTALL_DIR=/usr BUILD_TYPE=release PATH_INS=%{buildroot} LDFLAGS=-Wl,--as-needed
%__install -m 644 -D kmk.1 %buildroot/%_mandir/man1/kmk.1
%__chmod a-x %buildroot/usr/share/kBuild/*/*kmk
%__rm -r %{buildroot}%{_datadir}/doc/kBuild-0.1.5

%__rm -rf $RPM_BUILD_ROOT

%defattr(-, root, root)
%doc kBuild/doc/QuickReference-kmk.*