[perl-Data-Structure-Util] 0.16 bump

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 669c037484e18ca664f2cb5600a92f644c0d6734
Author: Petr Šabata <contyk@xxxxxxxxxx>
Date:   Thu Mar 19 18:20:42 2015 +0100

    0.16 bump
    
    - Remove bundled libs, drop the patch
    - Modernize spec file and fix the dep list

 .gitignore                                         |  1 +
 ...ucture-Util-0.15-Remove-failed-test-cases.patch | 21 ------
 perl-Data-Structure-Util.spec                      | 74 +++++++++++-----------
 sources                                            |  2 +-
 4 files changed, 39 insertions(+), 59 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index cf3bc51..4dc6526 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 Data-Structure-Util-0.15.tar.gz
+/Data-Structure-Util-0.16.tar.gz
diff --git a/perl-Data-Structure-Util.spec b/perl-Data-Structure-Util.spec
index a0bf853..9767d60 100644
--- a/perl-Data-Structure-Util.spec
+++ b/perl-Data-Structure-Util.spec
@@ -1,31 +1,38 @@
 Name:           perl-Data-Structure-Util
-Version:        0.15
-Release:        19%{?dist}
+Version:        0.16
+Release:        1%{?dist}
 Summary:        Change nature of data within a structure
 License:        GPL+ or Artistic
-Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Data-Structure-Util/
 Source0:        http://www.cpan.org/authors/id/A/AN/ANDYA/Data-Structure-Util-%{version}.tar.gz
-# Fix for RT#88257
-Patch0:         Data-Structure-Util-0.15-Remove-failed-test-cases.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires:  perl(ExtUtils::MakeMaker)
-
+# Build
+BuildRequires:  perl
+BuildRequires:  perl(Devel::CheckLib)
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
+BuildRequires:  perl(lib)
+BuildRequires:  perl(strict)
+# Runtime
 BuildRequires:  perl(AutoLoader)
-BuildRequires:  perl(CPAN::Meta)
-BuildRequires:  perl(Data::Dumper)
-BuildRequires:	perl(Devel::CheckLib)
 BuildRequires:	perl(Digest::MD5)
 BuildRequires:  perl(DynaLoader)
-BuildRequires:  perl(Encode)
 BuildRequires:  perl(Exporter)
-BuildRequires:  perl(File::Find::Rule)
-BuildRequires:  perl(Scalar::Util)
 BuildRequires:  perl(Storable)
+BuildRequires:  perl(vars)
+BuildRequires:  perl(warnings::register)
+# Tests only
+BuildRequires:  perl(blib)
+BuildRequires:  perl(bytes)
+BuildRequires:  perl(Data::Dumper)
 BuildRequires:  perl(Test::More)
+BuildRequires:  perl(utf8)
+BuildRequires:  perl(warnings)
+# Optional tests only
+BuildRequires:  perl(Encode)
+BuildRequires:  perl(File::Find::Rule)
+BuildRequires:  perl(Scalar::Util)
 BuildRequires:  perl(Test::Pod)
-BuildRequires:  perl(XML::Simple)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+# Unused if Encode is available BuildRequires:  perl(XML::Simple)
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
 
 %description
 Data::Structure::Util is a toolbox to manipulate the data inside a data
@@ -34,42 +41,35 @@ requested on each appropriate element.
 
 %prep
 %setup -q -n Data-Structure-Util-%{version}
-%patch0 -p1
-
-chmod 644 CHANGES README bin/packages.pl
+chmod 644 -c CHANGES README bin/packages.pl
+rm -r inc && sed -e '/^inc.*$/d' -i MANIFEST
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-
-rm -f $RPM_BUILD_ROOT%{_bindir}/packages.pl \
-    $RPM_BUILD_ROOT%{_mandir}/man1/packages.pl*
-
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+make pure_install DESTDIR=%{buildroot}
+rm -f %{buildroot}%{_bindir}/packages.pl \
+      %{buildroot}%{_mandir}/man1/packages.pl*
+find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} +
+%{_fixperms} %{buildroot}/*
 
 %check
 make test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
 %doc CHANGES README bin/packages.pl
 %{perl_vendorarch}/auto/*
-%{perl_vendorarch}/Data*
+%{perl_vendorarch}/*
 %{_mandir}/man3/*
 
 %changelog
+* Thu Mar 19 2015 Petr Šabata <contyk@xxxxxxxxxx> - 0.16-1
+- 0.16 bump
+- Remove bundled libs, drop the patch
+- Modernize spec file and fix the dep list
+
 * Fri Aug 29 2014 Jitka Plesnikova <jplesnik@xxxxxxxxxx> - 0.15-19
 - Perl 5.20 rebuild
 
diff --git a/sources b/sources
index c4d083b..93f34b7 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-e12ba777c0abfbd79a131de28d542359  Data-Structure-Util-0.15.tar.gz
+ada3241ff14e895e26e9a112bd5c3431  Data-Structure-Util-0.16.tar.gz
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux