0.06 bump; Modernize spec

epel9
Jitka Plesnikova 10 years ago
parent d329406883
commit 7548e18f5a

1
.gitignore vendored

@ -1 +1,2 @@
Time-Piece-MySQL-0.05.tar.gz Time-Piece-MySQL-0.05.tar.gz
/Time-Piece-MySQL-0.06.tar.gz

@ -1,15 +1,17 @@
Name: perl-Time-Piece-MySQL Name: perl-Time-Piece-MySQL
Version: 0.05 Version: 0.06
Release: 24%{?dist} Release: 1%{?dist}
Summary: MySQL-specific methods for Time::Piece Summary: MySQL-specific methods for Time::Piece
Group: Development/Libraries Group: Development/Libraries
License: GPL+ or Artistic License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Time-Piece-MySQL/ 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 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 BuildArch: noarch
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time: # Run-time:
@ -24,6 +26,7 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(Time::Piece) >= 1.03 Requires: perl(Time::Piece) >= 1.03
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Time::Piece\\) %global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Time::Piece\\)
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Time::Piece\\)\s*$
%description %description
The Time::Piece::MySQL module can be used instead of, or in addition to, 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 %prep
%setup -q -n Time-Piece-MySQL-%{version} %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 %build
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
@ -50,10 +43,8 @@ make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT make pure_install DESTDIR=$RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' 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/* chmod -R u+w $RPM_BUILD_ROOT/*
@ -61,18 +52,17 @@ chmod -R u+w $RPM_BUILD_ROOT/*
make test make test
%clean
rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-)
%doc Changes README %doc Changes README
%{perl_vendorlib}/Time/ %{perl_vendorlib}/Time/
%{_mandir}/man3/*.3* %{_mandir}/man3/*.3*
%changelog %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 * 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 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

@ -1 +1 @@
59eb18c952f61cf2481c38c0f43c37c8 Time-Piece-MySQL-0.05.tar.gz be66a577f8790c16947d8e3e5a0e65a2 Time-Piece-MySQL-0.06.tar.gz

Loading…
Cancel
Save