File bmake.spec of Package bmake.20861

# spec file for package bmake
# Copyright (c) 2019 SUSE LINUX 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

Name:           bmake
Version:        20181221
Release:        0
Summary:        The NetBSD make(1) tool
License:        BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause
Group:          Development/Tools/Building
# PATCH-FEATURE-OPENSUSE allow-overriding-compiler-variables.patch -- Based on which was previously shipped with this package
# patch generated using `git diff master opensuse` from
Patch0:         allow-overriding-compiler-variables.patch
# PATCH-FIX-OPENSUSE vs. E: env-script-interpreter /usr/bin/env python
Patch1:         bmake-env-script-interpreter.diff

bmake, the NetBSD make(1) tool, is a program designed to simplify the
maintenance of other programs.  The input of bmake is a list of specifications
indicating the files upon which the targets (programs and other files) depend.
bmake then detects which targets are out of date based on their dependencies
and triggers the necessary commands to bring them up to date when that happens.

bmake is similar to GNU make, even though the syntax for the advanced features
supported in Makefiles is very different.

%setup -q -n %{name}
%patch0 -p1

env CFLAGS="%{optflags}" \
./boot-strap -o Linux \
  --prefix="%{_prefix}" \
  --sysconfdir="%{_sysconfdir}" \
  --with-default-sys-path="%{_datadir}/mk" \
  --without-filemon \

./boot-strap -o Linux \
  --prefix="%{_prefix}" \
  --sysconfdir="%{_sysconfdir}" \
  --with-default-sys-path="%{_datadir}/mk" \
  --install-prefix="%{_prefix}" \
  --install-destdir=%{buildroot} \
mv "%{buildroot}%{_mandir}/cat1" "%{buildroot}%{_mandir}/man1"

./boot-strap op=test

%doc ChangeLog README

openSUSE Build Service is sponsored by