103 lines
2.6 KiB
RPMSpec
103 lines
2.6 KiB
RPMSpec
Name: make
|
|
Epoch: 1
|
|
Version: 4.2.90
|
|
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: ftp://ftp.gnu.org/gnu/make/%{name}-%{version}.tar.gz
|
|
|
|
Patch0: make-4.0-newlines.patch
|
|
Patch1: make-4.0-noclock_gettime.patch
|
|
Patch2: make-4.0-weird-shell.patch
|
|
Patch3: make-4.2-getcwd.patch
|
|
Patch4: make-4.2-j8k.patch
|
|
|
|
BuildRequires: gcc git autoconf automake procps
|
|
BuildRequires: guile-devel perl-interpreter
|
|
Requires(post): /sbin/install-info
|
|
Requires(preun): /sbin/install-info
|
|
|
|
%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 devel
|
|
Summary: Development files for %{name}
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description devel
|
|
The %{name}-devel package contains libraries and header files for
|
|
developing applications that use %{name}.
|
|
|
|
%package help
|
|
Summary: Doc files for %{name}
|
|
Requires: man
|
|
Buildarch: noarch
|
|
|
|
%description help
|
|
The %{name}-help package contains doc files for %{name}.
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version} -p1
|
|
rm -f tests/scripts/features/parallelism.orig
|
|
|
|
%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
|
|
/usr/bin/env LANG=C make check && true
|
|
|
|
%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
|
|
%doc AUTHORS
|
|
%license COPYING
|
|
%{_bindir}/*
|
|
%{_includedir}/*
|
|
|
|
%files devel
|
|
%{_includedir}/*
|
|
|
|
%files help
|
|
%doc NEWS README
|
|
%{_mandir}/*/*
|
|
%{_infodir}/*
|
|
|
|
%changelog
|
|
* Tue Sep 27 2019 luhuaxin <luhuaxin@huawei.com> - 1:4.2.90-2
|
|
- Type: enhancement
|
|
- ID: NA
|
|
- SUG: NA
|
|
- DESC: move README file to main package, fix last changelog
|
|
|
|
* Tue Sep 10 2019 luhuaxin <luhuaxin@huawei.com> - 1:4.2.90-1
|
|
- Package init
|