From 28c0cbc1882307727b462280c1b9994b576d8c3d Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Fri, 11 Aug 2006 03:48:30 +0000 Subject: [PATCH] auto-import perl-DateTime-Format-MySQL-0.04-1.fc5 on branch devel from perl-DateTime-Format-MySQL-0.04-1.fc5.src.rpm --- .cvsignore | 1 + perl-DateTime-Format-MySQL.spec | 79 +++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 81 insertions(+) create mode 100644 perl-DateTime-Format-MySQL.spec diff --git a/.cvsignore b/.cvsignore index e69de29..4dce178 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +DateTime-Format-MySQL-0.04.tar.gz diff --git a/perl-DateTime-Format-MySQL.spec b/perl-DateTime-Format-MySQL.spec new file mode 100644 index 0000000..514e152 --- /dev/null +++ b/perl-DateTime-Format-MySQL.spec @@ -0,0 +1,79 @@ +# Note: Some tests for this package are disabled by default, as they +# require network access and would thus fail in the buildsys' mock +# environments. To build locally while enabling tests, either: +# +# rpmbuild ... --define '_with_network_tests 1' ... +# rpmbuild ... --with network_tests ... +# define _with_network_tests 1 in your ~/.rpmmacros +# +# Note that right now, the only way to run tests locally from a cvs sandbox +# "make noarch" type scenario is the third one. + + +Name: perl-DateTime-Format-MySQL +Version: 0.04 +Release: 1%{?dist} +Summary: Parse and format MySQL dates and times + +Group: Development/Libraries +License: Artistic or GPL +URL: http://search.cpan.org/dist/DateTime-Format-MySQL +Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-Format-MySQL-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl(Module::Build), perl(DateTime) +BuildRequires: perl(DateTime::Format::Builder) >= 0.60 + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +# for signature checking +%{?_with_network_tests:BuildRequires: perl(Module::Signature) } + + +%description +This module understands the formats used by MySQL for its DATE, DATETIME, +TIME, and TIMESTAMP data types. It can be used to parse these formats in order +to create DateTime objects, and it can take a DateTime object and produce a +string representing it in the MySQL format. + + +%prep +%setup -q -n DateTime-Format-MySQL-%{version} + +# digital signature checking. Not essential, but nice +%{?_with_network_tests: cpansign -v } + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + + +%install +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 +make test + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc Changes LICENSE README +%{perl_vendorlib}/* +%{_mandir}/man3/*.3* + + +%changelog +* Fri Aug 04 2006 Chris Weyl 0.04-1 +- Initial spec file for F-E diff --git a/sources b/sources index e69de29..b53fc1e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f52377ecdeb19055ae64037fb1ef530e DateTime-Format-MySQL-0.04.tar.gz