Use make macros
https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
This commit is contained in:
parent
cb289822a1
commit
c3b23b692a
@ -1,7 +1,7 @@
|
||||
Summary: A system tool for maintaining the /etc/rc*.d hierarchy
|
||||
Name: chkconfig
|
||||
Version: 1.14
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPLv2
|
||||
URL: https://github.com/fedora-sysv/chkconfig
|
||||
Source: https://github.com/fedora-sysv/chkconfig/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
@ -38,14 +38,14 @@ system at the same time.
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" %{?_smp_mflags}
|
||||
%make_build RPM_OPT_FLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
|
||||
|
||||
%check
|
||||
make check
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} SBINDIR=%{_sbindir} install
|
||||
%make_install MANDIR=%{_mandir} SBINDIR=%{_sbindir}
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
|
||||
ln -s rc.d/init.d $RPM_BUILD_ROOT/etc/init.d
|
||||
@ -86,6 +86,10 @@ mkdir -p $RPM_BUILD_ROOT/etc/chkconfig.d
|
||||
%dir /var/lib/alternatives
|
||||
|
||||
%changelog
|
||||
* Tue Jul 21 2020 Tom Stellard <tstellar@redhat.com> - 1.14-2
|
||||
- Use make macros
|
||||
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
||||
|
||||
* Fri Jul 17 2020 Jan Macku <jamacku@redhat.com> - 1.14-1
|
||||
- Fix spelling of SELinux
|
||||
- Remove hardcoded systemd path
|
||||
|
||||
Loading…
Reference in New Issue
Block a user