120 lines
3.4 KiB
RPMSpec
120 lines
3.4 KiB
RPMSpec
Name: make
|
|
Epoch: 1
|
|
Version: 4.4.1
|
|
Release: 2
|
|
Summary: A tool which controls the generation of executables and non-source files of a program
|
|
License: GPLv3+
|
|
URL: http://www.gnu.org/software/make/
|
|
Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: gcc git autoconf automake procps
|
|
BuildRequires: guile-devel perl-interpreter make
|
|
Requires(post): /sbin/install-info
|
|
Requires(preun): /sbin/install-info
|
|
Provides: %{name}-devel = %{epoch}:%{version}-%{release}
|
|
Obsoletes: %{name}-devel < %{epoch}:%{version}-%{release}
|
|
|
|
%description
|
|
GNU Make is a tool which controls the generation of executables and other
|
|
non-source files of a program from the program's source files.
|
|
|
|
Make gets its knowledge of how to build your program from a file called
|
|
the makefile, which lists each of the non-source files and how to compute
|
|
it from other files. When you write a program, you should write a makefile
|
|
for it, so that it is possible to use Make to build and install the program.
|
|
|
|
%package_help
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
%build
|
|
touch configure aclocal.m4 Makefile.in
|
|
|
|
%configure --with-guile
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
ln -sf make %{buildroot}/%{_bindir}/gmake
|
|
ln -sf make.1 %{buildroot}/%{_mandir}/man1/gmake.1
|
|
rm -f %{buildroot}/%{_infodir}/dir
|
|
|
|
%find_lang %{name}
|
|
|
|
%check
|
|
# check will fail if running the test with -j2
|
|
# http://savannah.gnu.org/bugs/?func=detailitem&item_id=53152
|
|
if [ "%{_smp_mflags}" = "-j2" ]; then
|
|
echo "test will fail with make -j2 check"
|
|
else
|
|
/usr/bin/env LANG=C make check || {
|
|
for f in tests/work/*/*.diff; do
|
|
test -f "$f" || continue
|
|
printf "++++++++++++++ %s ++++++++++++++\n" "${f##*/}"
|
|
cat "$f"
|
|
done
|
|
}
|
|
fi
|
|
|
|
%post
|
|
if [ -f %{_infodir}/make.info.gz ]; then
|
|
/sbin/install-info %{_infodir}/make.info.gz %{_infodir}/dir --entry="* Make: (make). The GNU make utility." || :
|
|
fi
|
|
|
|
%preun
|
|
if [ $1 = 0 ]; then
|
|
if [ -f %{_infodir}/make.info.gz ]; then
|
|
/sbin/install-info --delete %{_infodir}/make.info.gz %{_infodir}/dir --entry="* Make: (make). The GNU make utility." || :
|
|
fi
|
|
fi
|
|
|
|
%files -f %{name}.lang
|
|
%license COPYING AUTHORS
|
|
%doc README
|
|
%{_bindir}/*
|
|
%{_includedir}/*
|
|
|
|
%files help
|
|
%doc NEWS
|
|
%{_mandir}/*/*
|
|
%{_infodir}/*
|
|
|
|
%changelog
|
|
* Sun Jan 26 2025 fuanan <fuanan3@h-partners.com> - 1:4.4.1-2
|
|
- Obsolete useless devel package
|
|
|
|
* Mon Jul 17 2023 fuanan <fuanan3@h-partners.com> - 1:4.4.1-1
|
|
- update version to 4.4.1
|
|
|
|
* Wed Jan 11 2023 fuanan <fuanan3@h-partners.com> - 1:4.4-2
|
|
- Continue build when test-case(features/output-sync) failed
|
|
- Handle SIGPIPE as a fatal signal
|
|
|
|
* Wed Nov 09 2022 fuanan <fuanan3@h-partners.com> - 1:4.4-1
|
|
- update version to 4.4
|
|
|
|
* Wed Oct 19 2022 fuanan <fuanan3@h-partners.com> - 1:4.3-3
|
|
- Fix spelling in spec
|
|
|
|
* Tue Sep 8 2020 wangchen <wangchen137@huawei.com> - 1:4.3-2
|
|
- Modify the URL of Source0
|
|
|
|
* Tue Jul 28 2020 wangchen <wangchen137@huawei.com> - 1:4.3-1
|
|
- Update to 4.3
|
|
|
|
* Mon Feb 24 2020 openEuler Buildteam <buildteam@openeuler.org> - 1:4.2.1-15
|
|
- Revise requires of make-devel
|
|
|
|
* Tue Feb 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1:4.2.1-14
|
|
- Avoid the build failure of test suite that caused by -j2
|
|
|
|
* Wed Jan 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 1:4.2.1-13
|
|
- Resolve compile problems.
|
|
|
|
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1:4.2.1-12
|
|
- Delete redundant files
|
|
|
|
* Wed Oct 30 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:4.2.1-11
|
|
- Package init
|