2008-04-05 02:39:08 +00:00
|
|
|
#
|
2011-08-26 13:13:53 +00:00
|
|
|
# spec file for package kbuild
|
2008-04-05 02:39:08 +00:00
|
|
|
#
|
2014-01-20 08:34:07 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-04-05 02:39:08 +00:00
|
|
|
#
|
2008-09-26 12:57:02 +00:00
|
|
|
# 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.
|
|
|
|
|
2008-04-05 02:39:08 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2012-09-29 13:23:14 +00:00
|
|
|
|
|
|
|
|
2008-04-05 02:39:08 +00:00
|
|
|
Url: http://svn.netlabs.org/kbuild
|
|
|
|
|
|
|
|
Name: kbuild
|
2011-12-02 20:23:13 +00:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: libacl-devel
|
2013-04-29 13:07:35 +00:00
|
|
|
%if %suse_version >= 1230
|
|
|
|
BuildRequires: makeinfo
|
|
|
|
%endif
|
2012-01-03 15:08:37 +00:00
|
|
|
Summary: Framework for writing simple makefiles for complex tasks
|
2011-12-02 20:23:13 +00:00
|
|
|
License: GPL-2.0+
|
2008-04-05 02:39:08 +00:00
|
|
|
Group: Development/Tools/Building
|
2014-01-20 08:34:07 +00:00
|
|
|
%define _svnrev 2720
|
|
|
|
Version: 0.1.9998svn%{_svnrev}
|
2011-12-02 20:23:13 +00:00
|
|
|
Release: 0
|
2008-09-26 12:57:02 +00:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2008-04-05 02:39:08 +00:00
|
|
|
Patch0: kbuild-man.diff
|
2014-01-20 08:34:07 +00:00
|
|
|
# PATCH-FIX-UPSTREAM speilicke@suse.com: Import local implementation if KMK
|
|
|
|
Patch1: kbuild-glob.patch
|
2008-09-26 12:57:02 +00:00
|
|
|
Patch2: kbuild-dummy_noreturn.diff
|
2014-01-20 08:34:07 +00:00
|
|
|
# PATCH-FIX-UPSTREAM speilicke@suse.com: Fix filelist
|
|
|
|
Patch3: kbuild-kmk-makefile-am.patch
|
2011-08-26 13:13:43 +00:00
|
|
|
Patch5: kbuild-pthread.diff
|
|
|
|
Patch6: kbuild-timestamps.diff
|
2011-10-04 08:25:04 +00:00
|
|
|
Patch7: kbuild-armv7l.diff
|
2012-01-03 15:08:37 +00:00
|
|
|
Patch8: kbuild-wrong-memset.patch
|
2013-12-04 20:50:26 +00:00
|
|
|
Patch9: ppc64le.patch
|
2008-04-05 02:39:08 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2014-01-20 08:34:07 +00:00
|
|
|
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
|
2008-04-05 02:39:08 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0
|
2014-01-20 08:34:07 +00:00
|
|
|
%patch1 -p1
|
2008-05-06 22:29:22 +00:00
|
|
|
%patch2
|
2014-01-20 08:34:07 +00:00
|
|
|
%patch3 -p1
|
2011-08-26 13:13:43 +00:00
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
2011-10-04 08:25:04 +00:00
|
|
|
%patch7 -p1
|
2012-01-03 15:08:37 +00:00
|
|
|
%patch8 -p1
|
2013-12-04 20:50:26 +00:00
|
|
|
%patch9 -p1
|
2008-04-05 02:39:08 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
2009-02-11 15:09:12 +00:00
|
|
|
%__cat > SvnInfo.kmk << EOF
|
|
|
|
KBUILD_SVN_REV := %{_svnrev}
|
|
|
|
KBUILD_SVN_URL := http://svn.netlabs.org/repos/kbuild/trunk
|
|
|
|
EOF
|
2008-06-22 05:47:58 +00:00
|
|
|
kBuild/env.sh --full make -f bootstrap.gmk SRCDIR=`pwd`
|
2008-04-05 02:39:08 +00:00
|
|
|
kBuild/env.sh kmk rebuild PATH_INS=`pwd`
|
|
|
|
pod2man -c 'kBuild for SUSE Linux' -r kBuild-%version kmk.pod > kmk.1
|
|
|
|
|
|
|
|
%install
|
2011-08-26 13:13:43 +00:00
|
|
|
kBuild/env.sh kmk NIX_INSTALL_DIR=/usr BUILD_TYPE=release PATH_INS=%{buildroot} LDFLAGS=-Wl,--as-needed install
|
2009-02-11 15:09:12 +00:00
|
|
|
%__install -m 644 -D kmk.1 %buildroot/%_mandir/man1/kmk.1
|
2011-08-26 13:13:43 +00:00
|
|
|
#remove execute flag, if occurs
|
|
|
|
%__chmod a-x %{buildroot}/%{_datadir}/kBuild/*/*kmk
|
|
|
|
%__rm -r %{buildroot}%{_datadir}/doc/kBuild-0.1.9998
|
2011-08-26 13:13:53 +00:00
|
|
|
|
2008-04-05 02:39:08 +00:00
|
|
|
%clean
|
2009-02-11 15:09:12 +00:00
|
|
|
%__rm -rf $RPM_BUILD_ROOT
|
2008-04-05 02:39:08 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2011-08-26 13:13:43 +00:00
|
|
|
%doc COPYING ChangeLog
|
|
|
|
%doc kBuild/doc/COPYING-FDL-1.3
|
2009-02-11 15:09:12 +00:00
|
|
|
%doc kBuild/doc/QuickReference-kmk.*
|
2011-08-26 13:13:43 +00:00
|
|
|
%{_mandir}/man1/kmk.1.gz
|
2009-02-11 15:09:12 +00:00
|
|
|
%{_bindir}/*
|
2008-09-26 12:57:02 +00:00
|
|
|
%{_datadir}/kBuild
|
2008-04-05 02:39:08 +00:00
|
|
|
|
|
|
|
%changelog
|