From ad183f039e6f3dd757ef7b8d5456ef9eb30bd698 Mon Sep 17 00:00:00 2001 From: Chris Grau Date: Wed, 24 Aug 2005 21:38:58 +0000 Subject: [PATCH] auto-import perl-Time-Piece-MySQL-0.05-2 on branch devel from perl-Time-Piece-MySQL-0.05-2.src.rpm --- .cvsignore | 1 + perl-Time-Piece-MySQL.spec | 64 ++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 66 insertions(+) create mode 100644 perl-Time-Piece-MySQL.spec diff --git a/.cvsignore b/.cvsignore index e69de29..e7c069d 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Time-Piece-MySQL-0.05.tar.gz diff --git a/perl-Time-Piece-MySQL.spec b/perl-Time-Piece-MySQL.spec new file mode 100644 index 0000000..b4a0dc6 --- /dev/null +++ b/perl-Time-Piece-MySQL.spec @@ -0,0 +1,64 @@ +Name: perl-Time-Piece-MySQL +Version: 0.05 +Release: 2%{?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: perl(Time::Piece) >= 1.03 +BuildRequires: perl(Test::More) >= 0.47 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(Time::Piece) >= 1.03 + +%description +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} +perldoc -t perlartistic > Artistic +perldoc -t perlgpl > COPYING + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + + +%install +rm -rf $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 d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + + +%check +make test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc Artistic COPYING Changes README +%{perl_vendorlib}/Time/ +%{_mandir}/man3/*.3* + + +%changelog +* Wed Aug 24 2005 Chris Grau 0.05-2 +- Removed redundant perl BR. +- Added license texts. +- Fixed directory ownership (perl-Time-Piece doesn't really own those dirs). + +* Tue Aug 23 2005 Chris Grau 0.05-1 +- Initial build. diff --git a/sources b/sources index e69de29..7b07ade 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +59eb18c952f61cf2481c38c0f43c37c8 Time-Piece-MySQL-0.05.tar.gz