Browse Source

perl-Config-IniFiles-3.000002-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@12176 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 4 years ago
parent
commit
8cc3a16ed7
1 changed files with 43 additions and 28 deletions
  1. 43 28
      p/perl-Config-IniFiles/perl-Config-IniFiles-vl.spec

+ 43 - 28
p/perl-Config-IniFiles/perl-Config-IniFiles-vl.spec

@@ -2,7 +2,7 @@
 
 Summary:	A perl module for reading .ini-style configuration files.
 Name:		perl-%{pkgname}
-Version:	2.83
+Version:	3.000002
 Release:	1%{?_dist_release}
 Group:		Development/Libraries
 License:	GPL+ or Artistic
@@ -10,14 +10,37 @@ URL:		http://config-inifiles.sourceforge.net/
 
 Source0:	%{pkgname}-%{version}.tar.gz
 
+Vendor:		Project Vine
+Distribution:	Vine Linux
+
 BuildRoot:	%{_tmppath}/%{name}-%{version}-root
 BuildArch:	noarch
-BuildRequires:  perl(Module::Build::Compat)
-BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+BuildRequires:  sed
+# Run-time:
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Fcntl)
 BuildRequires:  perl(File::Basename)
 BuildRequires:  perl(File::Temp)
-BuildRequires:  perl(List::MoreUtils) >= 0.33
+BuildRequires:  perl(IO::Scalar)
+BuildRequires:  perl(List::Util)
+BuildRequires:  perl(Symbol)
+BuildRequires:  perl(vars)
+# Tests:
+BuildRequires:  perl(base)
+BuildRequires:  perl(English)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(IO::File)
+BuildRequires:  perl(IO::Handle)
+BuildRequires:  perl(IPC::Open3)
+BuildRequires:  perl(lib)
+BuildRequires:  perl(parent)
+BuildRequires:  perl(Scalar::Util)
 BuildRequires:  perl(Test::More)
+
 BuildArch:      noarch
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
@@ -29,43 +52,35 @@ from a tied hash.
 
 %prep
 %setup -q -n %{pkgname}-%{version} 
+# Normalize end-of-lines
+sed -i -e 's/\r$//' Changes OLD-Changes.txt
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
-make %{?_smp_mflags}
+perl Build.PL installdirs=vendor
+./Build
 
 %install
-rm -rf %{buildroot}
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
-find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
-find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
-chmod -R u+w %{buildroot}/*
-
-[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
-
-find %{buildroot}%{_prefix} -type f -print | \
-	sed "s@^%{buildroot}@@g" | \
-	grep -v perllocal.pod | \
-	grep -v "\.packlist" > %{pkgname}-%{version}-filelist
-if [ "$(cat %{pkgname}-%{version}-filelist)X" = "X" ] ; then
-    echo "ERROR: EMPTY FILE LIST"
-    exit -1
-fi
+./Build install destdir=%{buildroot} create_packlist=0
+%{_fixperms} %{buildroot}/*
 
 %check
-make test
-
-
+./Build test
 %clean
 rm -rf %{buildroot}
 
 
-%files -f %{pkgname}-%{version}-filelist
-%defattr(-,root,root)
-%doc README MANIFEST
+%files
+%license LICENSE
+%doc Changes OLD-Changes.txt README
+%{perl_vendorlib}/Config/
+%{_mandir}/man3/*.3pm*
 
 
 %changelog
+* Tue Sep 03 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.000002-1
+- new upstream release.
+- built with perl-5.26.2.
+
 * Sun Dec  7 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 2.83-1
 - new upstream release
 - added BR: perl(List::MoreUtils)