2008-04-05 02:39:08 +00:00
|
|
|
#
|
2009-04-20 14:30:19 +00:00
|
|
|
# spec file for package kbuild (Version 0.1.5svn2336)
|
2008-04-05 02:39:08 +00:00
|
|
|
#
|
2009-02-11 15:09:12 +00:00
|
|
|
# Copyright (c) 2009 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Url: http://svn.netlabs.org/kbuild
|
|
|
|
|
|
|
|
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
|
2009-04-20 14:30:19 +00:00
|
|
|
Version: 0.1.5svn2336
|
2009-02-11 15:09:12 +00:00
|
|
|
Release: 1
|
2009-04-20 14:30:19 +00:00
|
|
|
%define _svnrev 2336
|
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
|
|
|
|
Patch1: warnings.diff
|
2008-09-26 12:57:02 +00:00
|
|
|
Patch2: kbuild-dummy_noreturn.diff
|
2009-02-11 15:09:12 +00:00
|
|
|
Patch3: kbuild-func_missing_args.diff
|
2008-04-05 02:39:08 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Knut St. Osmundsen <bird-kbuild-spam@anduin.net>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0
|
|
|
|
%patch1
|
2008-05-06 22:29:22 +00:00
|
|
|
%patch2
|
2009-02-11 15:09:12 +00:00
|
|
|
%patch3
|
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
|
|
|
|
kBuild/env.sh kmk NIX_INSTALL_DIR=/usr BUILD_TYPE=release PATH_INS=%{buildroot} LDFLAGS=-Wl,--as-needed
|
2009-02-11 15:09:12 +00:00
|
|
|
%__install -m 644 -D kmk.1 %buildroot/%_mandir/man1/kmk.1
|
|
|
|
%__chmod a-x %buildroot/usr/share/kBuild/*/*kmk
|
2009-04-20 14:30:19 +00:00
|
|
|
%__rm -r %{buildroot}%{_datadir}/doc/kBuild-0.1.5
|
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)
|
2009-02-11 15:09:12 +00:00
|
|
|
%doc kBuild/doc/QuickReference-kmk.*
|
|
|
|
%{_bindir}/*
|
2008-04-05 02:39:08 +00:00
|
|
|
%{_mandir}/*/*
|
2008-09-26 12:57:02 +00:00
|
|
|
%{_datadir}/kBuild
|
2008-04-05 02:39:08 +00:00
|
|
|
|
|
|
|
%changelog
|
2009-04-20 14:30:19 +00:00
|
|
|
* Mon Apr 20 2009 mseben@suse.cz
|
|
|
|
- updated to 0.1.5svn2336
|
|
|
|
- updated Maintenance.kmk with a patch variable.
|
|
|
|
- backported 2320: qt3.kmk: Fixed PATH_SDK_QT3_LIB detection
|
|
|
|
- backported 2318: footer.kmk: No need to apply defpath to 2_OBJS
|
|
|
|
wholesale fashion, the handler(s) will do this
|
|
|
|
- backported 2316: *WATCOM*: Fixed RC commands.
|
|
|
|
- backported 2283: incdep.c: If we find LD_PRELOAD on linux, assume
|
|
|
|
the worst and disable threading
|
|
|
|
- backported 2277: kmk: Testcase for the $(if-expr 1==2,) crash.
|
|
|
|
- backported 2276: kmk: Do not crash if is missing the 3rd
|
|
|
|
argument, it is supposed to be optional...
|
|
|
|
- backported 2275: TAR.kmk,TARGZ.kmk,TARBZ2.kmk: Fixes and
|
|
|
|
additions (BZ2).
|
|
|
|
- backported 2274: footer.kmk,header.kmk: Enhanced tools inhertiance
|
|
|
|
- backported 2273: VCC80X86: TOOL_VCC80X86_LINK_LIBRARY_OUTPUT_OUTPUT
|
|
|
|
-> TOOL_VCC80X86_LINK_LIBRARY_OUTPUT_MAYBE. oops
|
|
|
|
- backported 2272: qt4.kmk: Look for the QT4 tools in the
|
|
|
|
alternative tools tree (x86) when present (amd64).
|
|
|
|
- backported 2271: header.kmk: KBUILD_DEVTOOLS, KBUILD_DEVTOOLS_TRG,
|
|
|
|
KBUILD_DEVTOOLS_HST, KBUILD_DEVTOOLS_TRG_ALT and KBUILD_DEVTOOLS_HST_ALT.
|
|
|
|
- updated func_missing_args.diff
|
2009-02-11 15:09:12 +00:00
|
|
|
* Wed Feb 11 2009 dmueller@suse.de
|
|
|
|
- merge with openSUSE Factory:
|
|
|
|
* remove macro from Version line again. Although it is nice,
|
|
|
|
it causes other problems
|
|
|
|
* Thu Jan 29 2009 suse-tux@gmx.de
|
|
|
|
- create SvnInfo.kmk before the build starts
|
|
|
|
* Thu Jan 29 2009 suse-tux@gmx.de
|
|
|
|
- updated to 0.1.5svn2270
|
|
|
|
- use macros inside the spec
|
|
|
|
- updated Patch1 (warnings.diff) - some parts are already fixed upstream
|
|
|
|
- removed Patch3 (kbuild-buildfix.diff) because it isn't needed anymore
|
|
|
|
- added Patch3 (kbuild-func_missing_args.diff) to prevent some compiler warnings
|
|
|
|
* Thu Dec 25 2008 suse-tux@gmx.de
|
|
|
|
- updated to 0.1.4svn2112
|
|
|
|
- added kbuild-buildfix.diff
|
2008-10-14 17:36:27 +00:00
|
|
|
* Tue Oct 14 2008 meissner@suse.de
|
|
|
|
- fixed an implicit getcwd()
|
2008-09-26 12:57:02 +00:00
|
|
|
* Thu Sep 25 2008 mkudlvasr@suse.cz
|
|
|
|
- merge into openSUSE Factory
|
|
|
|
* Thu Sep 18 2008 suse-tux@gmx.de
|
|
|
|
- added Patch2 (kbuild-dummy_noreturn.diff) in order to make the build checks happy
|
|
|
|
* Sun Sep 14 2008 suse-tux@gmx.de
|
|
|
|
- update to 0.1.3svn1785
|
2009-04-20 14:30:19 +00:00
|
|
|
* Sun Sep 14 2008 suse-tux@gmx.de
|
2008-09-26 12:57:02 +00:00
|
|
|
- update to 0.1.3svn1775
|
|
|
|
- removed kbuild-r1599_KBUILD_SVN_INFO_KMK-fix.diff
|
2009-02-11 15:09:12 +00:00
|
|
|
* Tue May 06 2008 dmueller@suse.de
|
2008-05-06 22:29:22 +00:00
|
|
|
- fix uninit return values
|
2008-06-22 05:47:58 +00:00
|
|
|
* Sun May 04 2008 suse-tux@gmx.de
|
|
|
|
- update to svn1599 in order to build virtualbox-ose 1.6.0
|
|
|
|
- added kbuild-r1599_KBUILD_SVN_INFO_KMK-fix.diff
|
|
|
|
- start the bootstrap with kBuild/env.sh --full because this sets all required
|
|
|
|
variables automagically
|
2008-04-08 21:50:22 +00:00
|
|
|
* Mon Apr 07 2008 dmueller@suse.de
|
|
|
|
- fix crash on x86_64
|
2008-04-05 02:39:08 +00:00
|
|
|
* Wed Apr 02 2008 dmueller@suse.de
|
|
|
|
- Initial package (0.1.2svn1480)
|