#6 Spec file cleanup
Opened 3 years ago by robert. Modified 3 years ago
rpms/ robert/mlocate cleanup  into  rawhide

file modified
+7 -6
@@ -1,12 +1,12 @@ 

  %global _hardened_build 1

  

- Summary: An utility for finding files by name

+ Summary: Utility for finding files by name

  Name: mlocate

  Version: 0.26

  Release: 27%{?dist}

  License: GPLv2

- URL: https://fedorahosted.org/mlocate/

- Source0: https://fedorahosted.org/releases/m/l/mlocate/mlocate-%{version}.tar.xz

+ URL: https://pagure.io/mlocate

+ Source0: https://releases.pagure.org/mlocate/mlocate-%{version}.tar.xz

  Source1: updatedb.conf

  Source2: mlocate-run-updatedb

  Source3: mlocate-updatedb.service
@@ -34,10 +34,10 @@ 

  

  %build

  %configure --localstatedir=%{_localstatedir}/lib

- make %{?_smp_mflags} groupname=slocate

+ %make_build groupname=slocate

  

  %install

- make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' groupname=slocate

+ %make_install INSTALL='install -p' groupname=slocate

  

  mkdir -p $RPM_BUILD_ROOT{%{_sysconfdir},/etc/cron.daily}

  install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/updatedb.conf
@@ -82,7 +82,8 @@ 

  /usr/bin/systemctl start mlocate-updatedb.timer

  

  %files -f mlocate.lang

- %doc AUTHORS COPYING NEWS README

+ %license COPYING

+ %doc AUTHORS NEWS README

  %config(noreplace) %{_sysconfdir}/updatedb.conf

  %attr(2711,root,slocate) %{_bindir}/locate

  %{_unitdir}/mlocate-updatedb.service

no initial comment

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci