diff --git a/.gitignore b/.gitignore index e7c069d..cea9ec2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ Time-Piece-MySQL-0.05.tar.gz +/Time-Piece-MySQL-0.06.tar.gz diff --git a/perl-Time-Piece-MySQL.spec b/perl-Time-Piece-MySQL.spec index 0b8022d..a805ea1 100644 --- a/perl-Time-Piece-MySQL.spec +++ b/perl-Time-Piece-MySQL.spec @@ -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 - 0.06-1 +- 0.06 bump +- Modernize spec + * Thu Jun 18 2015 Fedora Release Engineering - 0.05-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild diff --git a/sources b/sources index 7b07ade..0a62cb0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -59eb18c952f61cf2481c38c0f43c37c8 Time-Piece-MySQL-0.05.tar.gz +be66a577f8790c16947d8e3e5a0e65a2 Time-Piece-MySQL-0.06.tar.gz