From f84d83d0c6ec63fb8e21236d6bec4c434f249bdf Mon Sep 17 00:00:00 2001 From: Andrew Bauer <zonexpertconsult...@outlook.com> Date: Thu, 2 Mar 2017 09:09:46 -0600 Subject: update to 0.19, update specfile to modern fedora standards
--- perl-Sys-Mmap.spec | 40 +++++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/perl-Sys-Mmap.spec b/perl-Sys-Mmap.spec index d9e96b1..aa9e4bd 100644 --- a/perl-Sys-Mmap.spec +++ b/perl-Sys-Mmap.spec @@ -1,14 +1,18 @@ Name: perl-Sys-Mmap -Version: 0.17 -Release: 7%{?dist} +Version: 0.19 +Release: 1%{?dist} Summary: Use mmap to map in a file as a Perl variable License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Sys-Mmap/ -Source0: http://www.cpan.org/authors/id/T/TO/TODDR/Sys-Mmap-%{version}.tar.gz -BuildRequires: perl-devel +Source0: http://www.cpan.org/authors/id/S/SW/SWALTERS/Sys-Mmap-%{version}.tar.gz + +BuildRequires: perl BuildRequires: perl-generators -BuildRequires: perl(ExtUtils::MakeMaker) perl(Test::More) +BuildRequires: findutils +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) + Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %{?perl_default_filter} @@ -16,36 +20,38 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $versi The Mmap module lets you use mmap to map in a file as a perl variable rather than reading the file into dynamically allocated memory. Multiple programs may map the same file into memory, and immediately see changes by each other. -Memory may be allocated not attached to a file, and shared with subprocesses. +Memory may be allocated not attached to a file, and shared with sub-processes. %prep -%setup -q -n Sys-Mmap-%{version} +%autosetup -n Sys-Mmap-%{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 PERL_INSTALL_ROOT=%{buildroot} +%make_build pure_install DESTDIR=%{buildroot} -find %{buildroot} -type f -name .packlist -exec rm -f {} \; -find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \; -find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; +find %{buildroot} -type f -name .packlist -delete +find %{buildroot} -type f -name '*.bs' -empty -delete +find %{buildroot} -type d -empty -delete %{_fixperms} %{buildroot}/* %check -make test +%make_build test %files -%doc Artistic Changes Copying README +%license Copying Artistic +%doc Changes README %{perl_vendorarch}/auto/* %{perl_vendorarch}/Sys* %{_mandir}/man3/* %changelog -* Sat Feb 11 2017 Fedora Release Engineering <rel...@fedoraproject.org> - 0.17-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild +* Thu Mar 02 2017 Andrew Bauer <zonexpertconsult...@outlook.com> - 0.19-1 +- Update specfile to modern Fedora packaging guidelines +- Update to 0.19 * Sun May 15 2016 Jitka Plesnikova <jples...@redhat.com> - 0.17-6 - Perl 5.24 rebuild -- cgit v1.1 https://src.fedoraproject.org/cgit/perl-Sys-Mmap.git/commit/?h=master&id=f84d83d0c6ec63fb8e21236d6bec4c434f249bdf _______________________________________________ perl-devel mailing list -- perl-devel@lists.fedoraproject.org To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org