You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
perl-DateTime-Format-MySQL/perl-DateTime-Format-MySQL....

83 lines
2.3 KiB

# 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
19 years ago
Release: 2%{?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
19 years ago
* Thu Aug 10 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.04-2
- bump for build & release
* Fri Aug 04 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.04-1
- Initial spec file for F-E