make/make.spec

120 lines
3.4 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:03:18 -04:00
Name: make
Epoch: 1
2023-07-17 14:55:58 +08:00
Version: 4.4.1
Release: 2
2019-09-30 11:03:18 -04:00
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/
2020-09-08 16:23:27 +08:00
Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
2019-11-06 19:42:46 +08:00
2019-09-30 11:03:18 -04:00
BuildRequires: gcc git autoconf automake procps
2019-11-06 19:42:46 +08:00
BuildRequires: guile-devel perl-interpreter make
2019-09-30 11:03:18 -04:00
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
Provides: %{name}-devel = %{epoch}:%{version}-%{release}
Obsoletes: %{name}-devel < %{epoch}:%{version}-%{release}
2019-09-30 11:03:18 -04:00
%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.
2019-11-06 19:42:46 +08:00
%package_help
2019-09-30 11:03:18 -04:00
%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
2022-10-19 19:15:36 +08:00
%find_lang %{name}
2019-09-30 11:03:18 -04:00
%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
2019-09-30 11:03:18 -04:00
%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
2019-11-06 19:42:46 +08:00
%license COPYING AUTHORS
%doc README
2019-09-30 11:03:18 -04:00
%{_bindir}/*
%{_includedir}/*
%files help
2019-11-06 19:42:46 +08:00
%doc NEWS
2019-09-30 11:03:18 -04:00
%{_mandir}/*/*
%{_infodir}/*
%changelog
* Sun Jan 26 2025 fuanan <fuanan3@h-partners.com> - 1:4.4.1-2
- Obsolete useless devel package
2023-07-17 14:55:58 +08:00
* 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
2022-11-09 15:32:50 +08:00
* Wed Nov 09 2022 fuanan <fuanan3@h-partners.com> - 1:4.4-1
- update version to 4.4
2022-10-19 19:15:36 +08:00
* Wed Oct 19 2022 fuanan <fuanan3@h-partners.com> - 1:4.3-3
- Fix spelling in spec
2020-09-08 16:23:27 +08:00
* Tue Sep 8 2020 wangchen <wangchen137@huawei.com> - 1:4.3-2
- Modify the URL of Source0
2020-07-28 18:32:58 +08:00
* Tue Jul 28 2020 wangchen <wangchen137@huawei.com> - 1:4.3-1
- Update to 4.3
2020-02-24 09:53:58 +08:00
* 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
2020-01-22 12:21:49 +08:00
* Wed Jan 22 2020 openEuler Buildteam <buildteam@openeuler.org> - 1:4.2.1-13
- Resolve compile problems.
2020-01-22 12:21:49 +08:00
2020-01-11 17:15:22 +08:00
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 1:4.2.1-12
- Delete redundant files
2019-11-06 19:42:46 +08:00
* Wed Oct 30 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:4.2.1-11
2019-09-30 11:03:18 -04:00
- Package init