Browse Source

2014-12-24 Ryoichi INAGAKI <ryo1@toki.waseda.jp>

	* perl-HTML-{FillInForm, ParseBrowser, Scrubber},
	  perl-IP-Country, perl-IPTables-{ChainMgr, Parse, libiptc},
	  perl-Net-{Appliance-Session, CLI-Interact, NetMask},
	  perl-Time-modules: updated
		  


git-svn-id: http://trac.vinelinux.org/repos/projects/specs@9189 ec354946-7b23-47d6-9f5a-488ba84defc7
inagaki 9 years ago
parent
commit
3a8f25dd30

+ 16 - 16
p/perl-HTML-FillInForm/perl-HTML-FillInForm-vl.spec

@@ -1,16 +1,17 @@
 Summary: Populates HTML Forms with CGI data with Perl
 Name: perl-HTML-FillInForm
-Version: 2.00
-Release: 2%{?_dist_release}
+Version: 2.21
+Release: 1%{?_dist_release}
 License: Artistic
 Group: Development/Libraries
+URL: http://search.cpan.org/author/TJMATHER/HTML-FillInForm/
+
 Source0: http://search.cpan.org/CPAN/authors/id/T/TJ/TJMATHER/HTML-FillInForm-%{version}.tar.gz
-Url: http://search.cpan.org/author/TJMATHER/HTML-FillInForm/
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildArch: noarch
-BuildRequires: perl-HTML-Parser >= 3.26
-Requires: perl-HTML-Parser >= 3.26
+BuildRequires: perl(HTML::Parser) >= 3.26
+Requires: perl(HTML::Parser) >= 3.26
 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 Vendor: Project Vine
@@ -38,15 +39,10 @@ rm -rf $RPM_BUILD_ROOT
 mkdir -p $RPM_BUILD_ROOT%{_prefix}
 make DESTDIR=$RPM_BUILD_ROOT install
 
-find $RPM_BUILD_ROOT%{_prefix} -type f -print | 
-	sed "s@^$RPM_BUILD_ROOT@@g" | 
-	grep -v ^%{_mandir} | 
-	grep -v perllocal.pod | 
-	grep -v "\.packlist" > %{name}.files
-if [ "$(cat %{name}.files)X" = "X" ] ; then
-    echo "ERROR: EMPTY FILE LIST"
-    exit -1
-fi
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
+find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} ';'
+find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
+chmod -R u+w $RPM_BUILD_ROOT/*
 
 %check
 make test
@@ -54,13 +50,17 @@ make test
 %clean 
 rm -rf $RPM_BUILD_ROOT
 
-%files -f %{name}.files
+%files 
 %defattr(-,root,root)
 %doc README Changes
+%{perl_vendorlib}/*
 %{_mandir}/*/*
-%dir %{perl_vendorlib}/HTML
 
 %changelog
+* Wed Dec 24 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 2.21-1
+- updated to 2.21
+- built with perl 5.16.3
+
 * Sun May 22 2011 IWAI, Masaharu <iwai@alib.jp> 2.00-2
 - build with perl 5.12.3
 

+ 27 - 26
p/perl-HTML-ParseBrowser/perl-HTML-ParseBrowser-vl.spec

@@ -1,19 +1,21 @@
-%define perl_vendorlib  %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
-%define	srcver	0_5
-%define	version	0.5
-
 Summary: Simple interface for User Agent string parsing for Perl
 Name: perl-HTML-ParseBrowser
-Version: %{version}
+Version: 1.09
 Release: 1%{?_dist_release}
-License: GPL/Artistic
+License: GPL+ or Artistic
 Group: Development/Libraries
-Source0: http://www.cpan.org/authors/id/D/DO/DODGER/HTML-ParseBrowser-%{srcver}.tar.gz
 URL: http://search.cpan.org/~dodger/HTML-ParseBrowser/
+
+Source0: http://www.cpan.org/authors/id/D/DO/DODGER/HTML-ParseBrowser-%{version}.tar.gz
+
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
-BuildRequires: perl >= 5.8.2
-Requires: perl >= 5.8.2
 BuildArch: noarch
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
+BuildRequires: perl(Test::More)
+Requires:      perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+Vendor:		Project Vine
+Distribution:	Vine Linux
 
 %description
 The HTML::ParseBrowser is an Object-Oriented interface for parsing a User Agent
@@ -22,7 +24,7 @@ values stored in the interpreted (and, so far, correct) information that these
 wildly varying and nonstandardised strings attempt to convey.
 
 %prep
-%setup -q -n HTML/ParseBrowser
+%setup -q -n HTML-ParseBrowser-%{version}
 
 %build
 CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor"
@@ -30,19 +32,14 @@ make
 
 %install
 rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT%{_prefix}
-make DESTDIR=$RPM_BUILD_ROOT install
-
-find $RPM_BUILD_ROOT%{_prefix} -type f -print | 
-	sed "s@^$RPM_BUILD_ROOT@@g" | 
-	grep -v ^%{_mandir} | 
-	grep -v ParseBrowser.pod | 
-	grep -v perllocal.pod | 
-	grep -v "\.packlist" > %{name}.files
-if [ "$(cat %{name}.files)X" = "X" ] ; then
-    echo "ERROR: EMPTY FILE LIST"
-    exit -1
-fi
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+
+# remove unnecessary files.
+find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec %{__rm} -f {} ';'
+find $RPM_BUILD_ROOT -type f -name .packlist -exec %{__rm} -f {} ';'
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} $RPM_BUILD_ROOT
 
 %check
 make test
@@ -50,13 +47,17 @@ make test
 %clean 
 rm -rf $RPM_BUILD_ROOT
 
-%files -f %{name}.files
+%files
 %defattr(-,root,root)
-%doc Changes README test.pl
+%doc Changes README
+%{perl_vendorlib}/HTML
 %{_mandir}/*/*
-%dir %{perl_vendorlib}/HTML
 
 %changelog
+* Wed Dec 24 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.09-1
+- updated to 1.09
+- built with perl 5.16.3
+
 * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.5-1
 - rebuild with perl-5.12.3
 

+ 40 - 28
p/perl-HTML-Scrubber/perl-HTML-Scrubber-vl.spec

@@ -2,26 +2,37 @@
 
 # Basic Information
 Name:		perl-%{pkgname}
-Version:	0.09
+Version:	0.11
 Release:	1%{?_dist_release}
+
+Summary:	HTML::Scrubber - Perl extension for scrubbing/sanitizing html
+Summary(ja):	HTML::Scrubber - html の除去/サニタイジングのための Perl 拡張
+
 License:	Artistic or GPL
 Group:		Development/Libraries
 Source0:	http://search.cpan.org/CPAN/authors/id/N/NI/NIGELM/%{pkgname}-%{version}.tar.gz
+
 BuildRoot:	%{_tmppath}/%{name}-%{version}-root
 BuildArch:	noarch
+# Dependency
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(Test::CPAN::Meta)
+BuildRequires:  perl(Test::More) >= 0.94
+BuildRequires:  perl(Test::NoTabs)
+BuildRequires:  perl(Test::Pod) >= 1.41
+BuildRequires:  perl(HTML::Entities)
+BuildRequires:  perl(HTML::Parser) >= 3.47
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(File::Temp)
+BuildRequires:  perl(IO::Handle)
+BuildRequires:  perl(IPC::Open3)
+BuildRequires:  perl(Scalar::Util)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 Vendor:		Project Vine
 Distribution:	Vine Linux
 Packager:	yasumichi
 
-Summary:	HTML::Scrubber - Perl extension for scrubbing/sanitizing html
-Summary(ja):	HTML::Scrubber - html の除去/サニタイジングのための Perl 拡張
-
-# Dependency
-Requires:       perl
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-
-BuildRequires:  perl
 
 %description
  If you wanna "scrub" or "sanitize" html input in a reliable and flexible
@@ -35,40 +46,41 @@ directly with HTML::Parser.
 
 
 %prep
-%setup -q -n HTML-Scrubber-0.09
+%setup -q -n HTML-Scrubber-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
-%{__make} %{?_smp_mflags}
+%{__perl} Build.PL installdirs=vendor optimize="%{optflags}"
+./Build
 
 %install
-%{__rm} -rf ${RPM_BUILD_ROOT}
-%{__make} pure_install DESTDIR=${RPM_BUILD_ROOT}
+%{__rm} -rf $RPM_BUILD_ROOT
+./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
 
 # remove unnecessary files.
-find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -exec %{__rm} -f {} ';'
-find ${RPM_BUILD_ROOT} -type f -name .packlist -exec %{__rm} -f {} ';'
-find ${RPM_BUILD_ROOT}%{_mandir} -type f -exec %{__rm} -f {} ';'
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
-
-# generate file list
-find $RPM_BUILD_ROOT%{_prefix} -type f -print |
-        sed "s@^$RPM_BUILD_ROOT@@g" > %{name}.files
+find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec %{__rm} -f {} ';'
+find $RPM_BUILD_ROOT -type f -name .packlist -exec %{__rm} -f {} ';'
+#find $RPM_BUILD_ROOT%{_mandir} -type f -exec %{__rm} -f {} ';'
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
 
-if [ "$(cat %{name}.files)X" = "X" ] ; then
-	echo "ERROR: EMPTY FILE LIST"
-	exit -1
-fi
+%{_fixperms} $RPM_BUILD_ROOT
 
 
 %clean
-%{__rm} -rf ${RPM_BUILD_ROOT}
+%{__rm} -rf $RPM_BUILD_ROOT
 
+%check
+./Build test
 
-%files -f %{name}.files
+%files 
 %defattr(-,root,root)
 %doc Changes LICENSE README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
 
 %changelog
+* Wed Dec 24 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.11-1
+- updated to 0.11
+- built with perl 5.16.3
+
 * Thu Oct 04 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.09-1
 - initial build for Vine Linux

+ 12 - 4
p/perl-IP-Country/perl-IP-Country-vl.spec

@@ -2,8 +2,8 @@
 
 Summary: Classes for fast lookup of country codes from IP addresses for Perl
 Name: perl-IP-Country
-Version: 2.26
-Release: 2%{_dist_release}
+Version: 2.28
+Release: 1%{_dist_release}
 License: distributable
 Group: Development/Libraries
 URL: http://search.cpan.org/dist/IP-Country/
@@ -12,9 +12,13 @@ Source: http://search.cpan.org/CPAN/authors/id/N/NW/NWETTERS/%{real_name}-%{vers
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 
 BuildArch: noarch
-BuildRequires: perl >= 0:5.00503
+BuildRequires: perl(ExtUtils::MakeMaker)
 BuildRequires: perl(Geography::Countries)
-Requires: perl >= 0:5.00503
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+Vendor:         Project Vine
+Distribution:   Vine Linux
+
 
 %description
 Finding the home country of a client using only the IP address can be difficult.
@@ -67,6 +71,10 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{perl_vendorlib}/IP
 
 %changelog
+* Wed Dec 24 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 2.28-1
+- updated to 2.28
+- built with perl 5.16.3
+
 * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.26-2
 - rebuild with perl-5.12.3
 

+ 9 - 2
p/perl-IPTables-ChainMgr/perl-IPTables-ChainMgr-vl.spec

@@ -1,5 +1,5 @@
 Name:           perl-IPTables-ChainMgr
-Version:        0.9.9
+Version:        1.2
 Release:        1%{?_dist_release}
 Summary:        Perl extension for manipulating iptables policies
 License:        GPL+ or Artistic
@@ -7,9 +7,12 @@ Group:          Development/Libraries
 URL:            http://www.cipherdyne.org/modules/
 Source0:        http://www.cipherdyne.org/modules/IPTables-ChainMgr-%{version}.tar.bz2
 Source1:        http://www.cipherdyne.org/modules/IPTables-ChainMgr-%{version}.tar.bz2.asc
+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildArch:      noarch
 BuildRequires:  perl(ExtUtils::MakeMaker)
-BuildRequires:  perl(IPTables::Parse), perl(NetAddr::IP)
+BuildRequires:  perl(IPTables::Parse)
+BuildRequires:  perl(NetAddr::IP)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 Vendor:         Project Vine
@@ -55,6 +58,10 @@ rm -rf %{buildroot}
 %{_mandir}/man3/*
 
 %changelog
+* Wed Dec 24 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.2-1
+- updated to 1.2
+- built with perl 5.16.3
+
 * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.9.9-1
 - initial build for Vine Linux
 

+ 7 - 1
p/perl-IPTables-Parse/perl-IPTables-Parse-vl.spec

@@ -1,5 +1,5 @@
 Name:           perl-IPTables-Parse
-Version:        0.9
+Version:        1.1
 Release:        1%{?_dist_release}
 Summary:        Perl extension for parsing iptables firewall rulesets
 License:        GPL+ or Artistic
@@ -7,6 +7,8 @@ Group:          Development/Libraries
 URL:            http://www.cipherdyne.org/modules/
 Source0:        http://www.cipherdyne.org/modules/IPTables-Parse-%{version}.tar.bz2
 Source1:        http://www.cipherdyne.org/modules/IPTables-Parse-%{version}.tar.bz2.asc
+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildArch:      noarch
 BuildRequires:  perl(ExtUtils::MakeMaker)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
@@ -52,6 +54,10 @@ rm -rf %{buildroot}
 %{_mandir}/man3/*
 
 %changelog
+* Wed Dec 24 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.1-1
+- updated to 1.1
+- built with perl 5.16.3
+
 * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.9-1
 - initial build for Vine Linux
 

+ 25 - 25
p/perl-IPTables-libiptc/perl-IPTables-libiptc-vl.spec

@@ -2,16 +2,24 @@
 
 Summary:        Perl extension for iptables libiptc
 Name:           perl-IPTables-libiptc
-Version:        0.51
+Version:        0.52
 Release:        1%{?_dist_release}
 License:        GPLv2+
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/IPTables-libiptc/
-Source:         http://search.cpan.org/CPAN/authors/id/H/HA/HAWK/%{real_name}-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
 
-BuildRequires:  iptables-devel >= 1.4
+Source0:         http://search.cpan.org/CPAN/authors/id/H/HA/HAWK/%{real_name}-%{version}.tar.gz
+# RT#70639
+Patch0:         %{name}-0.51-Support-iptables-1.4.12.patch
+# RT#70639
+Patch1:         IPTables-libiptc-0.52-Support-for-1.4.16.2.patch
+# RT#70639, bug #992659
+Patch2:         IPTables-libiptc-0.52-Support-for-1.4.18.patch
+# croak() expects formatting string, bug #1106081
+Patch3:         IPTables-libiptc-0.52-Fix-GCC-format-security-warning.patch
 
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildRequires:  iptables-devel >= 1.4
 BuildRequires:  perl
 BuildRequires:  perl(AutoLoader)
 BuildRequires:  perl(Carp)
@@ -27,33 +35,21 @@ Requires:       perl(File::Basename)
 Vendor:         Project Vine
 Distribution:   Vine Linux
 
+%{?perl_default_filter}
+
 %description
 This package provides a perl interface to the netfilter/iptables
 C-code and library C<libiptc>.
 
-Advantages of this module: Many rule changes can be done very
-fast. Several rule changes is committed atomically.
-
-This module is heavily inspired by the CPAN module IPTables-IPv4.  The
-CPAN module IPTables-IPv4 could not be used because it has not been
-kept up-to-date, with the newest iptables extensions.  This is a
-result of the module design, as it contains every extension and thus
-needs to port them individually.
-
-This package has another approach, it links with the systems libiptc.a
-library and depend on dynamic loading of iptables extensions available
-on the system.
-
-The module only exports the libiptc chain manipulation functions.  All
-rule manipulations are done through the iptables.c C<do_command>
-function.  As iptables.c is not made as a library, the package
-unfortunately needs to maintain/contain this C file.
-
 %prep
 %setup -q -n %{real_name}-%{version}
+%patch0 -p1 -b .1412
+%patch1 -p1 -b .1416
+%patch2 -p1 -b .1418
+%patch3 -p1
 
 %build
-perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" PREFIX='/usr'
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" PREFIX=%{_prefix}
 make %{?_smp_mflags}
 
 %install
@@ -64,8 +60,7 @@ find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
 %{_fixperms} %{buildroot}
 
 %check
-# skip the tests because you must be root
-#make test
+make test
 
 %clean
 rm -rf %{buildroot}
@@ -77,5 +72,10 @@ rm -rf %{buildroot}
 %{_mandir}/man?/*
 
 %changelog
+* Wed Dec 24 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.52-1
+- updated to 0.52
+- added Patch0, 1, 2 and 3 from Fedora
+- built with perl 5.16.3
+
 * Sun Mar 11 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.51-1
 - initial build for Vine Linux

+ 12 - 5
p/perl-Net-Appliance-Session/perl-Net-Appliance-Session-vl.spec

@@ -1,21 +1,24 @@
 Name:           perl-Net-Appliance-Session
 Summary:        Run command-line sessions to network appliances
-Version:        3.120560
+Version:        3.122530
 Release:        1%{?_dist_release}
 License:        Artistic or GPL+
 Group:          Development/Libraries
-Source:         http://search.cpan.org/CPAN/authors/id/O/OL/OLIVER/Net-Appliance-Session-%{version}.tar.gz
 URL:            http://search.cpan.org/dist/Net-Appliance-Session/
+
+Source:         http://search.cpan.org/CPAN/authors/id/O/OL/OLIVER/Net-Appliance-Session-%{version}.tar.gz
+
 BuildArch:      noarch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
 
-BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.30
 BuildRequires:  perl(Test::More) >= 0.88
 BuildRequires:  perl(strict)
 BuildRequires:  perl(warnings)
 
 Requires:       perl(Moose)
 Requires:       perl(Moose::Role)
-Requires:       perl(Net::CLI::Interact)
+Requires:       perl(Net::CLI::Interact) >= 1.122530
 Requires:       perl(overload)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
@@ -52,5 +55,9 @@ find examples/ -type f -exec %{__chmod} a-x {} \;
 %{_mandir}/man3/*
 
 %changelog
-* Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.36-1
+* Wed Dec 24 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 3.122530-1
+- updated to 3.122530
+- built with perl 5.16.3
+
+* Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.120560-1
 - initial build for Vine Linux

+ 9 - 4
p/perl-Net-CLI-Interact/perl-Net-CLI-Interact-vl.spec

@@ -2,14 +2,15 @@
 
 Summary:        Toolkit for CLI Automation
 Name:           perl-%{real_name}
-Version:        1.120670
+Version:        1.122530
 Release:        1%{?_dist_release}
 License:        GPL+ or Artistic
 Group:          Development/Libraries
-Source0:        http://search.cpan.org/CPAN/authors/id/O/OL/OLIVER/%{real_name}-%{version}.tar.gz
 URL:            http://search.cpan.org/dist/%{real_name}
-BuildArch:      noarch
 
+Source0:        http://search.cpan.org/CPAN/authors/id/O/OL/OLIVER/%{real_name}-%{version}.tar.gz
+
+BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
 
 BuildRequires:  perl(Class::MOP)
@@ -64,5 +65,9 @@ make test
 %{perl_vendorlib}/*
 
 %changelog
-* Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.03-1
+* Wed Dec 24 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.122530-1
+- updated to 1.122530
+- built with perl 5.16.3
+
+* Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.120670-1
 - initial build for Vine Linux

+ 10 - 5
p/perl-Net-Netmask/perl-Net-Netmask-vl.spec

@@ -1,16 +1,17 @@
 Name:           perl-Net-Netmask
-Version:        1.9015
-Release:        2%{?_dist_release}
+Version:        1.9021
+Release:        1%{?_dist_release}
 Summary:        Perl module for manipulation and lookup of IP network blocks
 
 Group:          Development/Libraries
 License:        Copyright only
 URL:            http://search.cpan.org/dist/Net-Netmask/
 Source0:        http://www.cpan.org/authors/id/M/MU/MUIR/modules/Net-Netmask-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildArch:      noarch
-BuildRequires:  perl(ExtUtils::MakeMaker), perl(Test::More)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Test::More)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
@@ -46,12 +47,16 @@ rm -rf %{buildroot}
 
 %files
 %defattr(-,root,root,-)
-%doc CHANGELOG README
+%doc Changes README
 %{perl_vendorlib}/Net/
 %{_mandir}/man3/*.3*
 
 
 %changelog
+* Wed Dec 24 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.9021-1
+- updated to 1.9021
+- built with perl 5.16.3
+
 * Thu Mar 01 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.9015-2
 - rebuild
 

+ 29 - 24
p/perl-Time-modules/perl-Time-modules-vl.spec

@@ -1,15 +1,19 @@
 Summary: Time-modules module for Perl 
 Name: perl-Time-modules
-Version: 2006.0814
-Release: 2%{?_dist_release}
+Version: 2013.1113
+Release: 1%{?_dist_release}
 License: Distributable
 Group: Development/Libraries
-Source0: Time-modules-%{version}.tar.gz
-Url: http://www.cpan.org/dist/Time-modules/
+URL: http://search.cpan.org/~muir/Time-ParseDate/
+
+Source0: http://search.cpan.org/CPAN/authors/id/M/MU/MUIR/modules/Time-ParseDate-%{version}.tar.gz
+
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
-BuildRequires: perl >= 5.004
-Requires: perl >= 5.004
 BuildArch: noarch
+BuildRequires: perl(ExtUtils::MakeMaker)
+Requires: perl >= 5.004
+
+Provides: perl-Time-ParseDate = %{version}-%{release}
 
 %description
 This package contains the following perl5 modules:
@@ -24,40 +28,41 @@ This package contains the following perl5 modules:
         Time::DaysInMonth.pm
 
 %prep
-%setup -q -n Time-modules-%{version} 
+%setup -q -n Time-ParseDate-%{version} 
 
 %build
 CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
 make
 
 %install
-rm -rf %{buildroot}
-mkdir -p %{buildroot}%{_prefix}
-make DESTDIR=$RPM_BUILD_ROOT install
-
-find %{buildroot}%{_prefix} -type f -print | 
-	sed "s@^%{buildroot}@@g" | 
-	grep -v ^%{_mandir} | 
-	grep -v perllocal.pod | 
-	grep -v "\.packlist" > %{name}.files
-if [ "$(cat %{name}.files)X" = "X" ] ; then
-    echo "ERROR: EMPTY FILE LIST"
-    exit -1
-fi
+rm -rf $RPM_BUILD_ROOT
+make pure_install DESTDIR=$RPM_BUILD_ROOT 
+
+# remove unnecessary files.
+find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec %{__rm} -f {} ';'
+find $RPM_BUILD_ROOT -type f -name .packlist -exec %{__rm} -f {} ';'
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} $RPM_BUILD_ROOT
 
 %check
 make test
 
 %clean 
-rm -rf %{buildroot}
+rm -rf $RPM_BUILD_ROOT
 
-%files -f %{name}.files
+%files
 %defattr(-,root,root)
-%doc README CHANGELOG
+%doc README Changes
+%{perl_vendorlib}/Time
 %{_mandir}/*/*
-%dir %{perl_vendorlib}/Time
 
 %changelog
+* Wed Dec 24 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2013.1113-1
+- updated to 2013.1113
+- built with perl 5.16.3
+- updated URL
+
 * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2006.0814-2
 - rebuild with perl-5.12.3