%ifos aix6.1 || %ifos aix7.1 %global p7build 1 %else %global p7build 0 %endif Summary: A GNU tool which simplifies the build process for users Name: make Epoch: 1 Version: 4.3 %if %{p7build} Release: 1.p7 %else Release: 1 %endif License: GPLv2+ Group: Development/Tools URL: http://www.gnu.org/software/make/ Source0: ftp://ftp.gnu.org/gnu/make/%{name}-%{version}.tar.gz Source1: ftp://ftp.gnu.org/gnu/make/%{name}-%{version}.tar.gz.sig BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root # make check on anything below AIX 5.3 produces tons of errors :-( BuildRequires: AIX-rpm >= 5.3.0.0 Requires: AIX-rpm >= 5.3.0.0 %if %{p7build} %ifos aix6.1 Requires: AIX-rpm >= 6.1.8.0 %endif %ifos aix7.1 Requires: AIX-rpm >= 7.1.3.0 %endif %endif BuildRequires: /sbin/install-info, info BuildRequires: gettext Requires: /sbin/install-info, info Requires: gettext %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. %prep %setup -q %build export CC="xlc_r" export RM="/usr/bin/rm -f" ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --infodir=%{_infodir} make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} gmake DESTDIR=${RPM_BUILD_ROOT} install /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : ln -sf make ${RPM_BUILD_ROOT}%{_bindir}/gmake ln -sf make.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/gmake.1 chmod 0755 ${RPM_BUILD_ROOT}%{_bindir}/* gzip --best ${RPM_BUILD_ROOT}%{_infodir}/make.info* rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir cd ${RPM_BUILD_ROOT} mkdir -p usr/linux/bin ln -sf ../../..%{_bindir}/make usr/linux/bin mkdir -p usr/bin ln -sf ../..%{_bindir}/make usr/bin/gmake %post /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir --entry="* Make: (make). The GNU make utility." || : %preun if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir --entry="* Make: (make). The GNU make utility." || : fi %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc NEWS README COPYING AUTHORS %{_bindir}/* %{_mandir}/man?/* %{_infodir}/*.info* %{_datadir}/locale/*/*/* /usr/bin/* /usr/linux/bin/* %changelog * Mon Jan 20 2020 Michael Perzl - 4.3-1 - updated to version 4.3 * Sat Jun 11 2016 Michael Perzl - 4.2.1-1 - updated to version 4.2.1 * Mon May 23 2016 Michael Perzl - 4.2-1 - updated to version 4.2 * Mon Oct 06 2014 Michael Perzl - 4.1-1 - updated to version 4.1 * Wed Oct 09 2013 Michael Perzl - 4.0-1 - updated to version 4.0 * Wed Jul 28 2010 Michael Perzl - 3.82-1 - updated to version 3.82 * Wed Jul 28 2010 Michael Perzl - 3.81-1 - updated to version 3.81 * Thu Jul 01 2010 Michael Perzl - 3.80-3 - removed dependency on gettext * Mon Sep 15 2008 Michael Perzl - 3.80-2 - first version for AIX V5.1 and higher