|
|
|
@ -1,15 +1,17 @@
|
|
|
|
|
Name: perl-Time-Piece-MySQL
|
|
|
|
|
Version: 0.05
|
|
|
|
|
Release: 24%{?dist}
|
|
|
|
|
Version: 0.06
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: MySQL-specific methods for Time::Piece
|
|
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
URL: http://search.cpan.org/dist/Time-Piece-MySQL/
|
|
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/K/KA/KASEI/Time-Piece-MySQL-%{version}.tar.gz
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
# Run-time:
|
|
|
|
@ -24,6 +26,7 @@ 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*$
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The Time::Piece::MySQL module can be used instead of, or in addition to,
|
|
|
|
@ -33,16 +36,6 @@ Time::Piece to add MySQL-specific date-time methods to Time::Piece objects.
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Time-Piece-MySQL-%{version}
|
|
|
|
|
|
|
|
|
|
# Filter unwanted Provides:
|
|
|
|
|
cat << \EOF > %{name}-prov
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
%{__perl_provides} $* |\
|
|
|
|
|
sed -e '/perl(Time::Piece)/d'
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
%define __perl_provides %{_builddir}/Time-Piece-MySQL-%{version}/%{name}-prov
|
|
|
|
|
chmod +x %{__perl_provides}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
@ -50,10 +43,8 @@ make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|
|
|
|
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
|
|
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -61,18 +52,17 @@ chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc Changes README
|
|
|
|
|
%{perl_vendorlib}/Time/
|
|
|
|
|
%{_mandir}/man3/*.3*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Jul 27 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.06-1
|
|
|
|
|
- 0.06 bump
|
|
|
|
|
- Modernize spec
|
|
|
|
|
|
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-24
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|