a5cdbba
Summary:       The NetBSD make(1) tool
a5cdbba
Name:          bmake
b8bcdab
Version:       20220928
40c1338
Release:       %autorelease
6b6f8be
License:       BSD
fc0f243
URL:           https://ftp.netbsd.org/pub/NetBSD/misc/sjg/
fc0f243
Source0:       %{url}/bmake-%{version}.tar.gz
e946e65
Source1:       %{url}/bmake-%{version}.tar.gz.asc
e946e65
Source2:       https://www.crufty.net/ftp/pub/sjg/Crufty.pub.asc
43bfe0b
Requires:      mk-files
0dfa5f9
b8bcdab
#Patch1:       
6ad11c8
0dfa5f9
BuildRequires: gcc
1a2dabd
BuildRequires: sed
c1d6703
BuildRequires: util-linux
b755638
# Required by tests
b755638
BuildRequires: tcsh ksh
e946e65
%if 0%{?fedora}
e946e65
# source verification
e946e65
BuildRequires: gnupg2
e946e65
%endif
c1d6703
c1d6703
%description
soporte c36af2c
bmake, the NetBSD make tool, is a program designed to simplify the
c1d6703
maintenance of other programs.  The input of bmake is a list of specifications
c1d6703
indicating the files upon which the targets (programs and other files) depend.
c1d6703
bmake then detects which targets are out of date based on their dependencies
c1d6703
and triggers the necessary commands to bring them up to date when that happens.
c1d6703
c1d6703
bmake is similar to GNU make, even though the syntax for the advanced features
c1d6703
supported in Makefiles is very different.
c1d6703
1a2dabd
%package -n mk-files
1a2dabd
Summary:   Support files for bmake, the NetBSD make(1) tool
1a2dabd
BuildArch: noarch
1a2dabd
1a2dabd
%description -n mk-files
1a2dabd
The mk-files package provides some bmake macros derived from the NetBSD
1a2dabd
bsd.*.mk macros.  These macros allow the creation of simple Makefiles to
1a2dabd
build all kinds of targets, including, for example, C/C++ programs and/or
1a2dabd
shared libraries.
1a2dabd
c1d6703
%prep
e946e65
%if 0%{?fedora}
e946e65
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
e946e65
%endif
8e7a42b
%autosetup -n %{name} -p1
1a2dabd
sed -i.python -e '1 s|^#!/usr/bin/env python|#!/usr/bin/python3|' mk/meta2deps.py
c1d6703
c1d6703
%build
c1d6703
%configure --with-default-sys-path=%{_datadir}/mk
Julio Merino 2047444
sh ./make-bootstrap.sh
c1d6703
c1d6703
%install
ac872d6
./bmake -m mk install DESTDIR="%{buildroot}" INSTALL='install -p' STRIP_FLAG=''
1a2dabd
chmod a-x %{buildroot}%{_datadir}/mk/mkopt.sh
c1d6703
c1d6703
%files
c1d6703
%doc ChangeLog README
6b6f8be
%license LICENSE
e946e65
%{_bindir}/%{name}*
e946e65
%{_mandir}/man1/%{name}*
c1d6703
1a2dabd
%files -n mk-files
6b6f8be
%license LICENSE
1a2dabd
%doc mk/README
1a2dabd
%{_datadir}/mk
1a2dabd
c1d6703
%changelog
40c1338
%autochangelog