File make.spec of Package make

#
# spec file for package make (Version 3.81)
#
# Copyright (c) 2008 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:           make
Url:            http://www.gnu.org/software/make/make.html
License:        GPL v2 or later
Group:          Development/Tools/Building
Provides:       gmake
PreReq:         %install_info_prereq
AutoReqProv:    on
Version:        3.81
Release:        128
Summary:        GNU make
Source:         make-3.81.tar.bz2
Patch1:         make-memory-hog-2.diff
Patch2:         make-slowdown-parallelism.diff
Patch64:        make-library-search-path.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The GNU make command with extensive documentation.



Authors:
--------
    Richard Stallman
    Roland McGrath
    Paul Smith

%prep
%setup
#%patch1 -p1
%patch2
if [ %_lib == lib64 ]; then
%patch64
fi

%build
CFLAGS=$RPM_OPT_FLAGS \
./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
make
make check

%install
make DESTDIR=$RPM_BUILD_ROOT install
ln -s make $RPM_BUILD_ROOT/usr/bin/gmake
%find_lang %name

%files -f %name.lang
%defattr(-,root,root)
/usr/bin/make
/usr/bin/gmake
%doc /usr/share/info/make.info-*.gz
%doc /usr/share/info/make.info.gz
%doc /usr/share/man/man1/make.1.gz

%clean
rm -rf $RPM_BUILD_ROOT

%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%changelog
* Mon May 14 2007 coolo@suse.de
- use %%find_lang
* Tue Oct 31 2006 mhopf@suse.de
- Reducing race probability in test case features/parallelism even more.
* Wed Jun 07 2006 mhopf@suse.de
- Improving occasional build failures due to races in test cases.
* Mon May 29 2006 mhopf@suse.de
- Update to 3.81
  - Bug fixes
  - New functions: lastword, abspath, realpath, info, flavor, or, and
  - New variables: .INCLUDE_DIRS, .FEATURES, .DEFAULT_GOAL, MAKE_RESTARTS, $|
  - Some new features
  - More POSIX compatibility
- memory-hog-2.diff doesn't apply any longer
* Wed Feb 01 2006 kssingvo@suse.de
- fix for memory-hog.diff (bugzilla#147229)
* Wed Feb 01 2006 kssingvo@suse.de
- disabled memory-hog.diff due to crashes (bugzilla#147229)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 19 2006 aj@suse.de
- Reduce memory usage.
* Fri Jan 09 2004 adrian@suse.de
- do not strip binaries during install
* Tue Sep 30 2003 stepan@suse.de
- fix "virtual memory exhausted" bug (backport from mainline)
* Thu Apr 24 2003 ro@suse.de
- fix install_info --delete call and move from preun to postun
* Wed Apr 16 2003 coolo@suse.de
- use BuildRoot
* Fri Feb 07 2003 ro@suse.de
- added install_info macros
* Mon Dec 30 2002 aj@suse.de
- Update to version 3.80:
  - number of bug fixes
  - new features as mentioned in the NEWS file:
  * New functions $(value ...), $(eval ...)
  * New feature: order-only prerequesites.
  * Argument to ifdef can now be a variable.
  * new option --always-make
* Tue Sep 17 2002 ro@suse.de
- removed bogus self-provides
* Thu May 23 2002 meissner@suse.de
- Made %%_lib fix generic, do not use ifarch.
* Mon Apr 22 2002 meissner@suse.de
- x86_64 needs /*/lib64 as search path too.
* Fri Apr 19 2002 ke@suse.de
- Update German translation from
  http://www.iro.umontreal.ca/contrib/po/teams/PO/de/ [# 15851].
* Tue Dec 11 2001 froh@suse.de
- s390x, sparc64 and ia64: extended the 'Dynamic Library Search'
  default path to search /lib64 and /usr/lib64 as well.
* Wed Nov 28 2001 fehr@suse.de
- add mo-files for translations of messages
* Wed May 09 2001 cstein@suse.de
- repacked source files with bzip2
* Fri Nov 17 2000 fehr@suse.de
- set group tag
* Mon Jun 26 2000 fehr@suse.de
- change to new version 3.79.1
* Wed Apr 19 2000 fehr@suse.de
- change to new version 3.79
* Mon Feb 14 2000 fehr@suse.de
- add compatibility link gmake -> make, needed for oracle install
* Thu Jan 20 2000 fehr@suse.de
- security fix for files created in /tmp when using -j
* Mon Jan 17 2000 schwab@suse.de
- Update to 3.78.1.
- Get rid of Makefile.Linux.
- Run testsuite.
* Fri Jan 14 2000 schwab@suse.de
- Fix glob problem.
* Wed Oct 13 1999 schwab@suse.de
- Fix file list.
- Add autoconf to needforbuild
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Tue Feb 23 1999 ro@suse.de
- updated to 3.77 using fixes by c. gafton
* Wed Sep 23 1998 ro@suse.de
- downgrade to 3.76.1 (works at least)
* Tue Sep 22 1998 ro@suse.de
- update to 3.77
* Thu Oct 09 1997 florian@suse.de
- prepare for autobuild
  Mon Sep  2 02:48:35 MET DST 1996
  update to version 3.75