|
@@ -2,17 +2,30 @@
|
|
|
|
|
|
Summary: A Perl module containing a wide variety of date manipulation routines.
|
|
Summary: A Perl module containing a wide variety of date manipulation routines.
|
|
Name: perl-Date-Manip
|
|
Name: perl-Date-Manip
|
|
-Version: 5.54
|
|
|
|
-Release: 2%{?_dist_release}
|
|
|
|
|
|
+Version: 6.31
|
|
|
|
+Release: 1%{?_dist_release}
|
|
License: GPL+ or Artistic
|
|
License: GPL+ or Artistic
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
Source0: Date-Manip-%{version}.tar.gz
|
|
Source0: Date-Manip-%{version}.tar.gz
|
|
URL: http://search.cpan.org/~sbeck/DateManip/
|
|
URL: http://search.cpan.org/~sbeck/DateManip/
|
|
|
|
|
|
|
|
+BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root/
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root/
|
|
BuildRequires: perl >= 5.8.2
|
|
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
|
|
# This package was formerly known as perl-DateManip
|
|
Provides: perl-DateManip = %{version}-%{release}
|
|
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
|
|
calculating a time a given amount of time from another, or parsing
|
|
international times are all easily done.
|
|
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
|
|
%prep
|
|
%setup -q -n Date-Manip-%{version}
|
|
%setup -q -n Date-Manip-%{version}
|
|
|
|
+chmod -x examples/*
|
|
|
|
|
|
%build
|
|
%build
|
|
-CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
|
+%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
make %{?_smp_mflags}
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%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
|
|
%check
|
|
make test
|
|
make test
|
|
|
|
|
|
%clean
|
|
%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
|
|
%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
|
|
* Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 5.54-2vl6
|
|
- build with perl 5.12.3
|
|
- build with perl 5.12.3
|
|
- defined __find_{provides,requires} with vl4 and vl5
|
|
- defined __find_{provides,requires} with vl4 and vl5
|