[meego-commits] 6789: Changes to Trunk/perl-Date-Manip
Peter Zhu
peter.j.zhu at intel.com
Wed Aug 18 08:52:57 UTC 2010
Hi,
I have made the following changes to perl-Date-Manip in project Trunk. Please review and accept ASAP.
Thank You,
Peter Zhu
[This message was auto-generated]
---
Request #6789:
submit: Trunk:Testing/perl-Date-Manip(r4) -> Trunk/perl-Date-Manip
Message:
Move to Trunk
State: new 2010-08-17T20:43:35 peter
Comment: None
changes files:
--------------
--- perl-Date-Manip.changes
+++ perl-Date-Manip.changes
@@ -0,0 +1,3 @@
+* Fri Aug 6 2010 Quanxian Wang <quanxian.wang at intel.com> - 5.54-2
+- Yaml Enable
+
new:
----
perl-Date-Manip.yaml
spec files:
-----------
--- perl-Date-Manip.spec
+++ perl-Date-Manip.spec
@@ -1,24 +1,25 @@
+#
+# Do not Edit! Generated by:
+# spectacle version 0.18
+#
+# >> macros
+# << macros
+
Name: perl-Date-Manip
+Summary: A Perl module containing a wide variety of date manipulation routines
Version: 5.54
Release: 2
-Summary: A Perl module containing a wide variety of date manipulation routines
-
Group: Development/Libraries
License: GPL+ or Artistic
+BuildArch: noarch
URL: http://search.cpan.org/dist/Date-Manip/
Source0: http://www.cpan.org/authors/id/S/SB/SBECK/Date-Manip-%{version}.tar.gz
-# Mailed to sbeck at cpan.org on 2008-11-26:
+Source100: perl-Date-Manip.yaml
Patch0: perl-Date-Manip-5.48-datez-rhbz248500.patch
-
-BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
-
-BuildArch: noarch
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildRequires: perl(ExtUtils::MakeMaker) perl(Test::More)
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}
Obsoletes: perl-DateManip < 5.48-1
@@ -30,31 +31,62 @@
international times are all easily done.
+
+
%prep
%setup -q -n Date-Manip-%{version}
+
+# perl-Date-Manip-5.48-datez-rhbz248500.patch
%patch0 -p1
+# >> setup
+# << setup
%build
+# >> build pre
+# << build pre
+
+if test -f Makefile.PL; then
%{__perl} Makefile.PL INSTALLDIRS=vendor
-make %{?_smp_mflags}
+make %{?jobs:-j%jobs}
+else
+%{__perl} Build.PL --installdirs vendor
+./Build
+fi
+# >> build post
+# << build post
%install
-rm -rf $RPM_BUILD_ROOT
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-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/*
+rm -rf %{buildroot}
+# >> install pre
+# << install pre
+if test -f Makefile.PL; then
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
+else
+./Build install --installdirs vendor
+fi
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
+find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
+%{_fixperms} %{buildroot}/*
+# >> install post
+# << install post
%check
+# >> check
make test
+# << check
+
+
+
-%clean
-rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
+# >> files
%doc README TODO HISTORY
%{perl_vendorlib}/Date/
%doc %{_mandir}/man3/*.3*
+# << files
+
other changes:
--------------
++++++ perl-Date-Manip.yaml (new)
--- perl-Date-Manip.yaml
+++ perl-Date-Manip.yaml
+Name: perl-Date-Manip
+Summary: A Perl module containing a wide variety of date manipulation routines
+Version: 5.54
+Release: 2
+Group: Development/Libraries
+License: GPL+ or Artistic
+URL: http://search.cpan.org/dist/Date-Manip/
+Sources:
+ - http://www.cpan.org/authors/id/S/SB/SBECK/Date-Manip-%{version}.tar.gz
+Patches:
+ - perl-Date-Manip-5.48-datez-rhbz248500.patch
+Description: |
+ This is a set of routines designed to make any common date/time
+ 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.
+
+PkgBR:
+ - perl(ExtUtils::MakeMaker) perl(Test::More)
+ - perl(Test::Pod) >= 1.00
+ - perl(Test::Pod::Coverage) >= 1.00
+Provides:
+ - perl-DateManip = %{version}-%{release}
+Obsoletes:
+ - perl-DateManip < 5.48-1
+Configure: none
+Builder: perl
+BuildArch: noarch
+Check: yes
More information about the MeeGo-commits
mailing list