Summary:     A GNU tool which simplifies the build process for users.
Summary(ja): ユーザのビルド手続きを平易にする GNU ツール
Name: make
Epoch: 1
Version: 4.4
Release: 1%{?_dist_release}
Group: programming
Vendor: Project Vine
Distribution: Vine Linux

License: GPL
URL: http://www.gnu.org/software/make/
Source: https://ftp.gnu.org/gnu/make/make-%{version}.tar.gz
Source1: http://translationproject.org/PO-files/ja/make-4.3.92.ja.po
Patch0: make-4.3-getcwd.patch

# Assume we don't have clock_gettime in configure, so that
# make is not linked against -lpthread (and thus does not
# limit stack to 2MB).
Patch2: make-4.0-noclock_gettime.patch

# BZs #142691, #17374
Patch3: make-4.3-j8k.patch

BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: automake >= 1.7.3
BuildRequires: guile30-devel
BuildRequires: perl
BuildRequires: procps
BuildRequires: texinfo

%description
A GNU tool for controlling the generation of executables and other
non-source files of a program from the program's source files.  Make
allows users to build and install packages without any significant
knowledge about the details of the build process.  The details about
how the program should be built are provided for make in the program's
makefile.

The GNU make tool should be installed on your system because it is
commonly used to simplify the process of installing programs.


%description -l ja
プログラムのソースファイルから実行ファイル及びその他のファイルを
生成する GNU ツールです．Make を使うことでユーザは build 時の
細かいプロセスを気にせず build しインストールすることが出来ます．
プログラムがどの様に build されるのかは，プログラムの Makefile に
書かれています．

GNU make ツールは，プログラムのインストールを容易にするのに
非常によく使われますので，このパッケージは是非インストールして下さい．


%debug_package


%prep
%autosetup -p1

rm -f tests/scripts/features/parallelism.orig

cp -f %{SOURCE1} po/ja.po

%build
autoreconf -vfi

%configure --with-guile
make -C po ja.gmo
make %{?_smp_mflags}

%install
rm -rf ${RPM_BUILD_ROOT}
make DESTDIR=$RPM_BUILD_ROOT install
ln -sf make ${RPM_BUILD_ROOT}/%{_bindir}/gmake
ln -sf make.1 ${RPM_BUILD_ROOT}/%{_mandir}/man1/gmake.1
rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir

%find_lang %name

%check
export PATH=$PATH:/bin
echo ============TESTING===============
/usr/bin/env LANG=C make check
echo ============END TESTING===========


%clean
rm -rf ${RPM_BUILD_ROOT}


%files -f %{name}.lang
%defattr(-,root,root)
%doc NEWS README COPYING AUTHORS
%{_bindir}/*
%{_mandir}/man*/*
%{_infodir}/*.info*
%{_includedir}/gnumake.h


%changelog
* Fri Nov 18 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.4-1
- new upstream release.
- updated ja.po.
- dropped install-info scriptlets.
- dropped Patch4: fixed in upstream.
- updated patches.

* Wed Feb 24 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.3-1
- new upstream release.
- updated ja.po.
- dropped Patch1, 4-9.
- updated Patch0 and 3.
- imported Patch4 from rawhide.

* Wed Sep 11 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.2.1-1
- new upstream release.
- updated patches.
- updated ja.po.

* Wed May 25 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.1-1
- new upstream release.
- dropped all patches.
- imported patches from rawhide.
- added Patch1000 to fix ja.po.

* Sun Feb 02 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.82-2
- rebuild with VineSeed environment

* Thu Nov 29 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 3.82-1
- new upstream release

* Wed Apr 13 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 3.81-8
- rebuild for Vine6

* Mon Jun  9 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.81-7
- applied new versioning policy
- added BuildRequires: perl (for %%check)
- spec in UTF-8

* Thu Dec 13 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.81-6vl1
- updated to 3.81 based on Fedora packages
  * Fri Mar 16 2007 Petr Machata <pmachata@redhat.com> - 1:3.81-6
  - Always run testsuite with C locale.
  - Resolves: #232607
  * Thu Feb 22 2007 Petr Machata <pmachata@redhat.com> - 1:3.81-5
  - Fix newline handling for quoted SHELL.
  - Resolves: #219409
  * Tue May 23 2006 Petr Machata <pmachata@redhat.com> - 1:3.81-1
  - Upstream 3.81:
    - Contains several backwards incompatible changes.  See NEWS inside
      the source package to find out more.
  - memory patch and error reporting patch were ported to this version.
- updated ja.po

* Tue Dec 13 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.80-0vl4
- added URL
- s/Copyright/License/
- added some patches from fedora development 3.80-8 
  * Mon Aug 22 2005 Jakub Jelinek <jakub@redhat.com> 3.80-8
  - make sure errno for error reporting is not lost accross _() calls
  - report EOF on read pipe differently from read returning < 0 reporting
  * Mon Dec 13 2004 Jakub Jelinek <jakub@redhat.com> 3.80-6
  - refuse -jN where N is bigger than PIPE_BUF (#142691, #17374)
  * Tue Dec 02 2003 Florian La Roche <Florian.LaRoche@redhat.de>
  - add important bug-fixes from make home-page

* Wed Apr 09 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.80-0vl3
- some patches was included from 3.79.1-17

* Wed Nov 13 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 3.80-0vl2
- update ja.po

* Wed Nov 13 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 3.80-0vl1
- new upstream release

* Fri Dec 22 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
- 3.79.1-5vl1
- based on 3.79.1-5 from Rawhide
- rebuilt for Vine Linux
- added Japanese summary and description

* Mon Aug  7 2000 Tim Waugh <twaugh@redhat.com>
- change info-dir entry so that 'info make' works (#15029).

* Tue Aug  1 2000 Jakub Jelinek <jakub@redhat.com>
- assume we don't have clock_gettime in configure, so that
  make is not linked against -lpthread (and thus does not
  limit stack to 2MB).

* Sat Jul 22 2000 Jeff Johnson <jbj@redhat.com>
- add locale files (#14362).

* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild

* Sat Jun 24 2000 Preston Brown <pbrown@redhat.com>
- 3.79.1 bugfix release

* Mon Jun  5 2000 Jeff Johnson <jbj@redhat.com>
- FHS packaging.

* Sun May  7 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- Fix build for some odd situations, such as
  - previously installed make != GNU make
  - /bin/sh != bash

* Mon Apr 17 2000 Florian La Roche <Florian.LaRoche@redhat.com>
- update to 3.79

* Thu Feb 24 2000 Cristian Gafton <gafton@redhat.com>
- add patch from Andreas Jaeger to fix dtype lookups (for glibc 2.1.3
  builds)

* Mon Feb  7 2000 Jeff Johnson <jbj@redhat.com>
- compress man page.

* Fri Jan 21 2000 Cristian Gafton <gafton@redhat.com>
- apply patch to fix a /tmp race condition from Thomas Biege
- simplify %install

* Sat Nov 27 1999 Jeff Johnson <jbj@redhat.com>
- update to 3.78.1.

* Thu Apr 15 1999 Bill Nottingham <notting@redhat.com>
- added a serial tag so it upgrades right

* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
- auto rebuild in the new build environment (release 5)

* Wed Sep 16 1998 Cristian Gafton <gafton@redhat.com>
- added a patch for large file support in glob
 
* Tue Aug 18 1998 Jeff Johnson <jbj@redhat.com>
- update to 3.77

* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr

* Thu Oct 16 1997 Donnie Barnes <djb@redhat.com>
- udpated from 3.75 to 3.76
- various spec file cleanups
- added install-info support

* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
- built against glibc
