Bump to 1.65 sandbox/perl-DateTime_1.65 accepted/tizen/unified/20240228.013656 accepted/tizen/unified/x/20240229.013814
authorTizenOpenSource <tizenopensrc@samsung.com>
Tue, 13 Feb 2024 04:46:27 +0000 (13:46 +0900)
committerTizenOpenSource <tizenopensrc@samsung.com>
Tue, 13 Feb 2024 04:46:27 +0000 (13:46 +0900)
Signed-off-by: TizenOpenSource <tizenopensrc@samsung.com>
packaging/perl-DateTime.manifest [new file with mode: 0644]
packaging/perl-DateTime.spec [new file with mode: 0644]

diff --git a/packaging/perl-DateTime.manifest b/packaging/perl-DateTime.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/perl-DateTime.spec b/packaging/perl-DateTime.spec
new file mode 100644 (file)
index 0000000..ad590ea
--- /dev/null
@@ -0,0 +1,53 @@
+Name:           perl-DateTime
+Version:        1.65
+Release:        0
+License:        Artistic License 2.0
+Summary:        A date and time object for Perl
+Url:            https://metacpan.org/pod/DateTime
+Group:          Development/Libraries
+Source0:        DateTime-%{version}.tar.gz
+Source1001:    perl-DateTime.manifest
+BuildRequires:  perl
+BuildRequires:  perl(MIME::Base64)
+BuildArch:      noarch
+
+%description
+DateTime is a class for the representation of date/time 
+combinations, and is part of the Perl DateTime project.
+It represents the Gregorian calendar, extended backwards 
+in time before its creation (in 1582). This is sometimes 
+known as the "proleptic Gregorian calendar". In this calendar, 
+the first day of the calendar (the epoch), 
+is the first day of year 1, which corresponds to the date which 
+was (incorrectly) believed to be the birth of Jesus Christ.
+The calendar represented does have a year 0, and in that way differs
+from how dates are often written using "BCE/CE" or "BC/AD".
+For infinite datetimes, please see the DateTime::Infinite module.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+#make %#{?_smp_mflags}
+%make_build
+
+%install
+%perl_make_install
+##perl_process_packlist
+{
+#!/bin/bash
+if test -n "$RPM_BUILD_ROOT" -a -d $RPM_BUILD_ROOT%perl_vendorarch/auto; then
+ find $RPM_BUILD_ROOT%perl_vendorarch/auto -name .packlist -print0 | xargs -0 -r rm
+  if [ %{_target_cpu} == noarch ]; then
+   find $RPM_BUILD_ROOT%perl_vendorarch/auto -depth -type d -print0 | xargs -0 -r rm -rf
+  fi
+fi
+rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
+}
+
+%perl_gen_filelist
+
+%files -f %{name}.files
+%license LICENSE