#1 Spec file cleanups: Use make_build, make_install macros, and use NO_PACKLIST=1
Closed 2 years ago by pghmcfc. Opened 2 years ago by tstellar.
rpms/ tstellar/perl-Unix-Syslog spec-cleanup  into  master

file modified
+10 -6
@@ -3,7 +3,7 @@ 

  

  Name:           perl-Unix-Syslog

  Version:        1.1

- Release:        35%{?dist}

+ Release:        36%{?dist}

  Summary:        Perl interface to the UNIX syslog(3) calls

  License:        Artistic 2.0

  URL:            https://metacpan.org/release/Unix-Syslog
@@ -16,7 +16,7 @@ 

  BuildRequires:  perl-interpreter

  BuildRequires:  perl-devel

  BuildRequires:  perl-generators

- BuildRequires:  perl(ExtUtils::MakeMaker)

+ BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76

  # Module Runtime

  BuildRequires:  perl(DynaLoader)

  BuildRequires:  perl(Exporter)
@@ -43,12 +43,11 @@ 

  %setup -q -n Unix-Syslog-%{version}

  

  %build

- perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"

- make %{?_smp_mflags}

+ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="%{optflags}"

+ %{make_build}

  

  %install

- make pure_install DESTDIR=%{buildroot}

- find %{buildroot} -type f -name .packlist -delete

+ %{make_install}

  find %{buildroot} -type f -name '*.bs' -a -empty -delete

  %{_fixperms} %{buildroot}

  
@@ -69,6 +68,11 @@ 

  %{_mandir}/man3/Unix::Syslog.3*

  

  %changelog

+ * Thu Feb 06 2020 Tom Stellard <tstellar@redhat.com> - 1.1-36

+ - Spec file cleanups: Use make_build, make_install macros, and use NO_PACKLIST=1

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

+ - https://fedoraproject.org/wiki/Perl/Tips#ExtUtils::MakeMake

+ 

  * Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-35

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

  

I merged this locally and fixed the typo in the ExtUtils::MakeMaker reference. It's now pushed and built in Fedora.

Pull-Request has been closed by pghmcfc

2 years ago