Browse Source

* new upstream release

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@5923 ec354946-7b23-47d6-9f5a-488ba84defc7
shaolin 12 years ago
parent
commit
fc2eb6497e
2 changed files with 45 additions and 36 deletions
  1. 33 30
      p/perl-Date-Manip/perl-Date-Manip-vl.spec
  2. 12 6
      p/perl-Test-Inter/perl-Test-Inter-vl.spec

+ 33 - 30
p/perl-Date-Manip/perl-Date-Manip-vl.spec

@@ -2,17 +2,30 @@
 
 Summary: A Perl module containing a wide variety of date manipulation routines.
 Name: perl-Date-Manip
-Version: 5.54
-Release: 2%{?_dist_release}
+Version: 6.31
+Release: 1%{?_dist_release}
 License: GPL+ or Artistic
 Group: Development/Libraries
 Source0: Date-Manip-%{version}.tar.gz
 URL: http://search.cpan.org/~sbeck/DateManip/
 
+BuildArch: noarch
 BuildRoot: %{_tmppath}/%{name}-%{version}-root/
 BuildRequires: perl >= 5.8.2
-Requires: perl >= 5.8.2
-BuildArch: noarch
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Encode)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(IO::File)
+BuildRequires:  perl(Module::Build) >= 0.3600
+BuildRequires:  perl(Storable)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(YAML::Syck)
+# Tests only
+BuildRequires:  perl(Test::Inter)
+BuildRequires:  perl(Test::Pod) >= 1.00
+BuildRequires:  perl(Test::Pod::Coverage) >= 1.00
+
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 # This package was formerly known as perl-DateManip
 Provides: perl-DateManip = %{version}-%{release}
@@ -24,47 +37,37 @@ manipulation easy to do.  Operations such as comparing two times,
 calculating a time a given amount of time from another, or parsing
 international times are all easily done.
 
-%if %{?_dist_release} == "vl5" || %{?_dist_release} == "vl4"
-# Provide perl-specific find-{provides,requires}.
-%define __find_provides /usr/lib/rpm/find-provides.perl
-%define __find_requires /usr/lib/rpm/find-requires.perl
-%endif
-
 %prep
 %setup -q -n Date-Manip-%{version}
+chmod -x examples/*
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
+%{__perl} Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT%{_prefix}
-make DESTDIR=$RPM_BUILD_ROOT install
-
-[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
-
-find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
-
-find $RPM_BUILD_ROOT/usr -type f -print | 
-	sed "s@^$RPM_BUILD_ROOT@@g" | 
-	grep -v perllocal.pod | 
-	grep -v "\.packlist" > Date-Manip-%{version}-filelist
-if [ "$(cat Date-Manip-%{version}-filelist)X" = "X" ] ; then
-    echo "ERROR: EMPTY FILE LIST"
-    exit -1
-fi
+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}/*
 
 %check
 make test
 
 %clean 
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
-%files -f Date-Manip-%{version}-filelist
-%defattr(-,root,root)
+%files
+%defattr(-,root,root,-)
+%doc HISTORY LICENSE README README.first examples
+%{perl_vendorlib}/Date/
+%{_mandir}/man3/*.3*
 
 %changelog
+* Mon Mar 19 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 6.31-1
+- updated to 6.31
+
 * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 5.54-2vl6
 - build with perl 5.12.3
 - defined __find_{provides,requires} with vl4 and vl5

+ 12 - 6
p/perl-Test-Inter/perl-Test-Inter-vl.spec

@@ -1,6 +1,6 @@
 Name:           perl-Test-Inter
-Version:        1.01
-Release:        4%{?_dist_release}
+Version:        1.03
+Release:        1%{?_dist_release}
 Summary:        Framework for more readable interactive test scripts
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -32,12 +32,15 @@ chmod -x examples/*
 ./Build
 
 %install
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
-./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+./Build install destdir=%{buildroot} create_packlist=0
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
 
-%{_fixperms} $RPM_BUILD_ROOT/*
+%{_fixperms} %{buildroot}/*
+
+%clean
+rm -rf %{buildroot}
 
 %check
 ./Build test
@@ -49,6 +52,9 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
 %{_mandir}/man3/*
 
 %changelog
+* Mon Mar 19 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.03-1
+- updated to 1.03
+
 * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 1.01-4
 - build for Vine Linux