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

file modified
+10 -6
@@ -1,6 +1,6 @@ 

  Name:           perl-Socket6

  Version:        0.29

- Release:        5%{?dist}

+ Release:        6%{?dist}

  Summary:        IPv6 related part of the C socket.h defines and structure manipulators

  License:        BSD

  URL:            https://metacpan.org/release/Socket6
@@ -14,7 +14,7 @@ 

  BuildRequires:  perl-generators

  BuildRequires:  perl-interpreter

  BuildRequires:  perl(Config)

- BuildRequires:  perl(ExtUtils::MakeMaker)

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

  # Module:

  BuildRequires:  perl(base)

  BuildRequires:  perl(Carp)
@@ -40,12 +40,11 @@ 

  %setup -q -n Socket6-%{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' -empty -delete

  %{_fixperms} %{buildroot}

  
@@ -59,6 +58,11 @@ 

  %{_mandir}/man3/Socket6.3*

  

  %changelog

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

+ - Spec file cleanups: Use make_build and make_install macros, 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> - 0.29-5

  - 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

4 years ago