|
|
|
@ -1,18 +1,17 @@
|
|
|
|
|
Name: perl-Time-Piece-MySQL
|
|
|
|
|
Version: 0.06
|
|
|
|
|
Release: 12%{?dist}
|
|
|
|
|
Release: 13%{?dist}
|
|
|
|
|
Summary: MySQL-specific methods for Time::Piece
|
|
|
|
|
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
URL: https://metacpan.org/release/Time-Piece-MySQL
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/K/KA/KASEI/Time-Piece-MySQL-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
Source0: https://cpan.metacpan.org/modules/by-module/Time/Time-Piece-MySQL-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# Build:
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
# Run-time:
|
|
|
|
|
BuildRequires: perl(Time::Piece) >= 1.03
|
|
|
|
@ -22,8 +21,9 @@ BuildRequires: perl(vars)
|
|
|
|
|
# Tests:
|
|
|
|
|
BuildRequires: perl(Test::More) >= 0.47
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
Requires: perl(Time::Piece) >= 1.03
|
|
|
|
|
# Dependencies:
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
Requires: perl(Time::Piece) >= 1.03
|
|
|
|
|
|
|
|
|
|
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Time::Piece\\)
|
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Time::Piece\\)\s*$
|
|
|
|
@ -32,33 +32,34 @@ Requires: perl(Time::Piece) >= 1.03
|
|
|
|
|
The Time::Piece::MySQL module can be used instead of, or in addition to,
|
|
|
|
|
Time::Piece to add MySQL-specific date-time methods to Time::Piece objects.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Time-Piece-MySQL-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|
|
|
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
|
find %{buildroot} -type f -name .packlist -delete
|
|
|
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc Changes README
|
|
|
|
|
%{perl_vendorlib}/Time/
|
|
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
|
|
|
|
|
%{_mandir}/man3/Time::Piece::MySQL.3*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Jan 28 2020 Paul Howarth <paul@city-fan.org> - 0.06-13
|
|
|
|
|
- Spec tidy-up
|
|
|
|
|
- Use author-independent source URL
|
|
|
|
|
- Simplify find command using -delete
|
|
|
|
|
- Fix permissions verbosely
|
|
|
|
|
- Make %%files list more explicit
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.06-12
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|