summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-12-27 19:01:41 -0800
committerHyunjee Kim <hj0426.kim@samsung.com>2019-01-30 16:21:01 +0900
commit48ebdcc907a04491db22c992e882dde69ebffe05 (patch)
treec4501cdf117cfd3e77967518b5cd3f52c33f4688
parentf6fd8e11e50cddbc0ca52c672a1bee2a34ec7de3 (diff)
downloadperl-TimeDate-48ebdcc907a04491db22c992e882dde69ebffe05.tar.gz
perl-TimeDate-48ebdcc907a04491db22c992e882dde69ebffe05.tar.bz2
perl-TimeDate-48ebdcc907a04491db22c992e882dde69ebffe05.zip
Rebase for perl-TimeDate 2.30
Change-Id: I1a3505f0bb7f0252abcbb0355dbca381660e1258 Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
-rw-r--r--packaging/perl-TimeDate.manifest5
-rw-r--r--packaging/perl-TimeDate.spec51
2 files changed, 56 insertions, 0 deletions
diff --git a/packaging/perl-TimeDate.manifest b/packaging/perl-TimeDate.manifest
new file mode 100644
index 0000000..017d22d
--- /dev/null
+++ b/packaging/perl-TimeDate.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/perl-TimeDate.spec b/packaging/perl-TimeDate.spec
new file mode 100644
index 0000000..c1c1030
--- /dev/null
+++ b/packaging/perl-TimeDate.spec
@@ -0,0 +1,51 @@
+#
+
+Name: perl-TimeDate
+Version: 1.20
+Release: 1
+Summary: A Perl module for time and date manipulation
+
+License: GPL+ or Artistic
+Url: http://search.cpan.org/dist/TimeDate/
+Group: Development/Libraries
+Source0: http://www.cpan.org/authors/id/G/GB/GBARR/TimeDate-%{version}.tar.gz
+Source1001: perl-TimeDate.manifest
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
+BuildRequires: perl(ExtUtils::MakeMaker)
+Requires: perl
+BuildArch: noarch
+
+%description
+This module includes a number of smaller modules suited for
+manipulation of time and date strings with Perl. In particular, the
+Date::Format and Date::Parse modules can display and read times and
+dates in various formats, providing a more reliable interface to
+textual representations of points in time.
+
+%prep
+%setup -q -n TimeDate-%{version}
+cp %{SOURCE1001} .
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%check
+make test
+
+%install
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
+%{_fixperms} %{buildroot}/*
+
+
+%files
+%manifest %{name}.manifest
+%defattr(-,root,root,-)
+%{perl_vendorlib}/Date/*
+%{perl_vendorlib}/Time/*
+%doc %{_mandir}/man3/*.3*
+
+