Summary: The BSD 4.4 version of make.
Name: pmake
Version: 1.45
Release: 10
Serial: 1
License: BSD
Group: Development/Tools
Patch0: pmake-1.45-mktemp.patch
Patch1: pmake-1.45-groffpath.patch
Obsoletes: pmake-customs
BuildRoot: %{_tmppath}/%{name}-root
Requires: /bin/mktemp

Make is a GNU tool which allows users to build and install programs
without any significant knowledge of the build process. Details about
how the program should be built are included in the program's
Makefile. Pmake is a particular version (BSD 4.4) of make. Pmake
supports some additional syntax which is not in the standard make
program. Some Berkeley programs have Makefiles written for pmake.

%setup -q
%patch0 -p1 -b .mktemp
%patch1 -p1

make -f Makefile.boot CFLAGS="${RPM_OPT_FLAGS} -D__COPYRIGHT\(x\)= -D__RCSID\(x\)= \
    -I. -DMACHINE=\\\"redhat\\\" -DMACHINE_ARCH=\\\"`arch`\\\"" CC=gcc
touch build

rm -rf %{buildroot}

mkdir -p %{buildroot}
mkdir -p %{buildroot}/{%{_bindir},%{_mandir}/man1}
install bmake %{buildroot}/%{_bindir}/pmake
install -m 755 mkdep %{buildroot}/%{_bindir}
install make.1 %{buildroot}/%{_mandir}/man1/pmake.1
install mkdep.1 %{buildroot}/%{_mandir}/man1

mkdir -p %{buildroot}/%{_datadir}/mk
rm mk/*~
for file in mk/*; do
    install -m 644 $file %{buildroot}/%{_datadir}/mk

rm -rf %{buildroot}

%doc PSD.doc/

* Wed Jan 22 2003 Tim Powers <>
- rebuilt

* Thu Nov 21 2002 Florian La Roche <>
- adjust to groff-1.18.1

* Sat Aug 10 2002 Florian La Roche <>
- adjust to new groff 1.18 release

* Fri Jun 21 2002 Tim Powers <>
- automated rebuild

* Thu May 23 2002 Tim Powers <>
- automated rebuild

* Wed Jan 09 2002 Tim Powers <>
- automated rebuild

* Tue Aug 21 2001 Florian La Roche <>
- bad. Hardcoded path including a version number for groff.

* Fri May 11 2001 Preston Brown <>
- use mktemp in mkdep script

* Mon Jan 08 2001 Preston Brown <>
- report newer pmake from Debian who got it from 4.4BSD