packages: perl-DateTime-Format-SQLite/perl-DateTime-Format-SQLite.spec (NEW...

amateja amateja at pld-linux.org
Mon Sep 14 15:15:41 CEST 2009


Author: amateja                      Date: Mon Sep 14 13:15:41 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial

---- Files affected:
packages/perl-DateTime-Format-SQLite:
   perl-DateTime-Format-SQLite.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/perl-DateTime-Format-SQLite/perl-DateTime-Format-SQLite.spec
diff -u /dev/null packages/perl-DateTime-Format-SQLite/perl-DateTime-Format-SQLite.spec:1.1
--- /dev/null	Mon Sep 14 15:15:41 2009
+++ packages/perl-DateTime-Format-SQLite/perl-DateTime-Format-SQLite.spec	Mon Sep 14 15:15:36 2009
@@ -0,0 +1,78 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	DateTime
+%define	pnam	Format-SQLite
+Summary:	DateTime::Format::SQLite - Parse and format SQLite dates and times
+#Summary(pl.UTF-8):	
+Name:		perl-DateTime-Format-SQLite
+Version:	0.10
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/DateTime/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	93c0849d25498028f18e10816b9b32b8
+URL:		http://search.cpan.org/dist/DateTime-Format-SQLite/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-DateTime >= 0.1
+BuildRequires:	perl-DateTime-Format-Builder >= 0.6
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module understands the formats used by SQLite for its
+date, datetime and time functions.  It can be used to
+parse these formats in order to create DateTime objects, and it
+can take a DateTime object and produce a timestring accepted by
+SQLite.
+
+NOTE: SQLite does not have real date/time types but stores
+everything as strings. This module deals with the date/time
+strings as understood/returned by SQLite's date, time,
+datetime, julianday and strftime SQL functions.
+You will usually want to store your dates in one of these formats.
+
+# %description -l pl.UTF-8
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/DateTime/Format/*.pm
+%{_mandir}/man3/*
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/09/14 13:15:36  amateja
+- initial
+
================================================================


More information about the pld-cvs-commit mailing list