#3 Spec file cleanups
Merged a year ago by mhonek. Opened a year ago by tstellar.
rpms/ tstellar/openldap spec-cleanups  into  master

file modified
+13 -4
@@ -5,7 +5,7 @@ 

  

  Name: openldap

  Version: 2.4.47

- Release: 4%{?dist}

+ Release: 5%{?dist}

  Summary: LDAP support libraries

  License: OpenLDAP

  URL: http://www.openldap.org/
@@ -44,6 +44,7 @@ 

  

  BuildRequires: cyrus-sasl-devel, openssl-devel, krb5-devel, unixODBC-devel

  BuildRequires: glibc-devel, libtool, libtool-ltdl-devel, groff, perl-interpreter, perl-devel, perl-generators, perl(ExtUtils::Embed)

+ BuildRequires: gcc

  

  %description

  OpenLDAP is an open source suite of LDAP (Lightweight Directory Access
@@ -182,11 +183,11 @@ 

  	\

  	--libexecdir=%{_libdir}

  

- make %{_smp_mflags}

+ %make_build

  popd

  

  pushd ltb-project-openldap-ppolicy-check-password-%{check_password_version}

- make LDAP_INC="-I../openldap-%{version}/include \

+ %make_build LDAP_INC="-I../openldap-%{version}/include \

   -I../openldap-%{version}/servers/slapd \

   -I../openldap-%{version}/build-servers/include"

  popd
@@ -196,7 +197,7 @@ 

  mkdir -p %{buildroot}%{_libdir}/

  

  pushd openldap-%{version}

- make install DESTDIR=%{buildroot} STRIP=""

+ %make_install STRIP=""

  popd

  

  # install check_password module
@@ -485,6 +486,14 @@ 

  %{_mandir}/man3/*

  

  %changelog

+ * Tue Jun 16 2020 Tom Stellard <tstellar@redhat.com> - 2.4.47-5

+ - Spec file cleanups

+ - Add BuildRequres: gcc [1]

+ - make_build [2] and make_install [3]

+ - [1] https://docs.fedoraproject.org/en-US/packaging-guidelines/C_and_C++/#_buildrequires_and_requires

+ - [2] https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make

+ - [3] https://docs.fedoraproject.org/en-US/packaging-guidelines/#_why_the_makeinstall_macro_should_not_be_used

+ 

  * Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.47-4

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild