Procházet zdrojové kódy

added perl-DateTime-Format-HTTP perl-DateTime-Format-Strptime perl-DateTime-Format-Builder

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@7292 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi před 12 roky
rodič
revize
fa483f706b

+ 174 - 0
p/perl-DateTime-Format-Builder/perl-DateTime-Format-Builder-vl.spec

@@ -0,0 +1,174 @@
+# Note:  Some tests for this package are disabled by default, as they
+# require network access and would thus fail in the buildsys' mock
+# environments.  To build locally while enabling tests, either:
+#
+#   rpmbuild ... --define '_with_network_tests 1' ...
+#   rpmbuild ... --with network_tests ...
+#   define _with_network_tests 1 in your ~/.rpmmacros
+#
+# Note that right now, the only way to run tests locally from a cvs sandbox
+# "make noarch" type scenario is the third one.
+%define real_version   0.80
+
+Name:           perl-DateTime-Format-Builder
+# 0.80 in reality, but rpm can't get it
+Version:        0.8000
+Release:        1%{?_dist_release}
+Summary:        Create DateTime parser classes and objects        
+
+Group:          Development/Libraries
+License:        GPL+ or Artistic
+URL:            http://search.cpan.org/dist/DateTime-Format-Builder            
+Source0:        http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-Format-Builder-%{real_version}.tar.gz        
+
+BuildArch: noarch
+Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+## core
+BuildRequires:  perl(Test::More)
+## non-core
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(Class::ISA)
+BuildRequires:  perl(Class::Factory::Util)
+BuildRequires:  perl(DateTime)
+BuildRequires:  perl(DateTime::Format::Strptime)
+BuildRequires:  perl(Params::Validate) >= 0.73
+# note -- listed as a BR but _not_ needed with Fedora perl
+#BuildRequires:  perl(Task::Weaken)
+BuildRequires:  perl(Test::Pod)
+## For extended testing
+BuildRequires:  perl(DateTime::Format::HTTP)
+BuildRequires:  perl(DateTime::Format::Mail)
+BuildRequires:  perl(DateTime::Format::IBeat)
+Provides:       perl(DateTime::Format::Builder) = %{version}
+
+# for signature checking
+%{?_with_network_tests:BuildRequires: perl(Module::Signature) }
+
+# not explicitly picked up
+Requires:       perl(DateTime::Format::Strptime)
+
+%{?perl_default_filter}
+
+%description
+DateTime::Format::Builder creates DateTime parsers. Many string formats of
+dates and times are simple and just require a basic regular expression to
+extract the relevant information. Builder provides a simple way to do this
+without writing reams of structural code.
+
+Builder provides a number of methods, most of which you'll never need, or at
+least rarely need. They're provided more for exposing of the module's innards
+to any subclasses, or for when you need to do something slightly beyond what
+is expected.
+
+
+%prep
+%setup -q -n DateTime-Format-Builder-%{real_version}
+
+cat << \EOF > %{name}-req
+#!/bin/sh
+%{__perl_requires} $* |\
+   sed -e '/perl(DateTime::Format::HTTP)/d;/perl(DateTime::Format::IBeat)/d' \
+       -e '/perl(DateTime::Format::Mail)/d'
+EOF
+
+%define __perl_requires %{_builddir}/DateTime-Format-Builder-%{real_version}/%{name}-req
+chmod +x %{__perl_requires}
+
+# digital signature checking.  Not essential, but nice
+%{?_with_network_tests: cpansign -v }
+
+# POD doesn't like E<copy> very much...
+perl -pi -e 's/E<copy>/(C)/' `find lib/ -type f`
+
+# American English
+mv LICENCE LICENSE
+
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor 
+make %{?_smp_mflags}
+
+
+%install
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} +
+find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
+
+%{_fixperms} %{buildroot}/*
+
+
+%check
+make test
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING Artistic Changes AUTHORS CREDITS LICENSE README examples/ t/
+%{perl_vendorlib}/*
+%{_mandir}/man3/*.3*
+
+
+%changelog
+* Sun Jan  6 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.8000-1
+- initial build based on Fedora development package
+
+* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8000-10
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
+
+* Wed Jun 20 2012 Petr Pisar <ppisar@redhat.com> - 0.8000-9
+- Perl 5.16 rebuild
+
+* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8000-8
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 0.8000-7
+- Perl mass rebuild
+
+* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 0.8000-6
+- Perl mass rebuild
+
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8000-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.8000-4
+- 661697 rebuild for fixing problems with vendorach/lib
+
+* Sun Dec 12 2010 Iain Arnell <iarnell@gmail.com> 0.8000-3
+- use perl_default_filter
+- clean up spec for modern rpmbuild
+
+* Fri May 14 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.8000-2
+- add provides with rpm version for other packages
+
+* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.8000-1
+- Mass rebuild with perl-5.12.0
+
+* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.7901-5
+- rebuild against perl 5.10.1
+
+* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7901-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7901-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Tue Mar  4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.7901-2
+- rebuild for new perl
+
+* Sat Jan 26 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.7901-1
+- update to 0.7901
+- additional docs
+- some spec rework
+
+* Thu Aug 31 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.7807-4
+- bump for mass rebuild
+
+* Tue Aug 08 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.7807-3
+- bump for release & build, not in that order
+
+* Tue Aug 08 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.7807-2
+- additional br's
+
+* Fri Aug 04 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.7807-1
+- Initial spec file for F-E

+ 124 - 0
p/perl-DateTime-Format-HTTP/perl-DateTime-Format-HTTP-vl.spec

@@ -0,0 +1,124 @@
+Name:           perl-DateTime-Format-HTTP
+Version:        0.40
+Release:        1%{?_dist_release}
+Summary:        HTTP protocol date conversion routines
+
+Group:          Development/Libraries
+License:        GPL+ or Artistic
+URL:            http://search.cpan.org/dist/DateTime-Format-HTTP
+Source0:        http://search.cpan.org/CPAN/authors/id/C/CK/CKRAS/DateTime-Format-HTTP-%{version}.tar.gz
+
+BuildArch:      noarch
+BuildRequires:  perl(Class::ISA)
+BuildRequires:  perl(DateTime) >= 0.17
+BuildRequires:  perl(HTTP::Date) => 1.44
+BuildRequires:  perl(Test::More) >= 0.47
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(File::Find::Rule)
+
+Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+This module provides functions that deal with the date formats used by the
+HTTP protocol (and then some).
+
+
+%prep
+%setup -q -n DateTime-Format-HTTP-%{version}
+
+# fix up crlf
+sed -i -e 's/\r//' LICENSE README Changes CREDITS
+
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+
+%install
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
+%{_fixperms} %{buildroot}/*
+
+
+%check
+# These will be VERY noisy.  Don't Panic.
+make test
+
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE Changes CREDITS README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*.3*
+
+
+%changelog
+* Sun Jan  6 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.40-1
+- initial build based on Fedora development package
+
+* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.40-7
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
+
+* Wed Jun 20 2012 Petr Pisar <ppisar@redhat.com> - 0.40-6
+- Perl 5.16 rebuild
+
+* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.40-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 0.40-4
+- Perl mass rebuild
+
+* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 0.40-3
+- Perl mass rebuild
+
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.40-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Sat Dec 18 2010 Iain Arnell <iarnell@gmail.com> 0.40-1
+- update to latest upstream version
+- clean up spec for modern rpmbuild
+- PERL_INSTALL_ROOT -> DESTDIR
+- fix up crlf in docs
+
+* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.38-6
+- 661697 rebuild for fixing problems with vendorach/lib
+
+* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.38-5
+- Mass rebuild with perl-5.12.0
+
+* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.38-4
+- rebuild against perl 5.10.1
+
+* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.38-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Sun May 17 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.38-2
+- rearrange the files in doc as the tarball has changed contents
+
+* Sun May 17 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.38-1
+- auto-update to 0.38 (by cpan-spec-update 0.01)
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.37-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Tue Mar  4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.37-3
+- rebuild for new perl
+
+* Thu Aug 31 2006 Chris Weyl <cweyl.drew.edu> 0.37-2
+- bump for mass rebuild
+
+* Wed Aug 09 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.37-1
+- update to 0.37
+- nix the SIGNATURE checking bits of the spec file as the author has dropped
+  it from this version
+
+* Sun Aug 06 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.36-3
+- bump for build & release
+
+* Sun Aug 06 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.36-2
+- add missing buildrequires: perl(File::Find::Rule)
+
+* Fri Aug 04 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.36-1
+- Initial spec file for F-E

+ 136 - 0
p/perl-DateTime-Format-Strptime/perl-DateTime-Format-Strptime-vl.spec

@@ -0,0 +1,136 @@
+Name:           perl-DateTime-Format-Strptime
+Version:        1.5000
+Release:        1%{?_dist_release}
+Summary:        Parse and format strp and strf time patterns
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/DateTime-Format-Strptime/
+Source0:        http://www.cpan.org/authors/id/R/RI/RICKM/DateTime-Format-Strptime-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:      noarch
+BuildRequires:  perl(Class::ISA)
+BuildRequires:  perl(DateTime) >= 0.44
+BuildRequires:  perl(DateTime::Locale) >= 0.45
+BuildRequires:  perl(DateTime::TimeZone) >= 0.79
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Params::Validate) >= 0.64
+BuildRequires:  perl(Test::More)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+This module implements most of strptime(3), the POSIX function that is the
+reverse of strftime(3), for DateTime. While strftime takes a DateTime and a
+pattern and returns a string, strptime takes a string and a pattern and
+returns the DateTime object associated.
+
+%prep
+%setup -q -n DateTime-Format-Strptime-%{version}
+
+%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 -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc Changes LICENSE README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Sun Jan  6 2013 Munehiro Yamamoto <munepi@vinelinux.org> 1.5000-1
+- initial build based on Fedora development package
+
+* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5000-7
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
+
+* Wed Jun 20 2012 Petr Pisar <ppisar@redhat.com> - 1.5000-6
+- Perl 5.16 rebuild
+
+* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5000-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 1.5000-4
+- Perl mass rebuild
+
+* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1.5000-3
+- Perl mass rebuild
+
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5000-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Wed Dec 22 2010 Steven Pritchard <steve@kspei.com> 1.5000-1
+- Update to 1.5000.
+
+* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.2000-3
+- 661697 rebuild for fixing problems with vendorach/lib
+
+* Tue Jun 15 2010 Petr Sabata <psabata@redhat.com> - 1.2000-1
+- Update to the latest upstream release
+
+* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.1000-2
+- Mass rebuild with perl-5.12.0
+
+* Tue Feb 16 2010 Paul Howarth <paul@city-fan.org> 1.1000-1
+- Fix FTBFS (#564718) by bumping buildreq version of perl(DateTime) from 0.4304
+  to 0.44 (RPM considers 0.4304 > 0.44, unlike perl) and bumping version to
+  1.1000 for compatibility with DateTime::Locale 0.43 (upstream ticket 19)
+- Update buildreq version requirement for perl(DateTime::Locale) to 0.43
+- Drop test patch, no longer needed
+- Run additional tests for full locale coverage
+
+* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> 1.0800-4
+- Rebuild against perl 5.10.1
+
+* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 1.0800-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 1.0800-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Fri Aug 29 2008 Steven Pritchard <steve@kspei.com> 1.0800-1
+- Update to 1.0800.
+- Update versions on build dependencies.
+
+* Tue Jul 08 2008 Steven Pritchard <steve@kspei.com> 1.0702-3
+- Patch t/004_locale_defaults.t to work around change in DateTime::Locale.
+
+* Tue Mar 04 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.0702-2
+- Rebuild for new perl
+
+* Thu Jan 03 2008 Steven Pritchard <steve@kspei.com> 1.0702-1
+- Update to 1.0702.
+- Drop charset patch.
+- Update License tag.
+- BR Test::More.
+
+* Tue Apr 17 2007 Steven Pritchard <steve@kspei.com> 1.0700-3
+- Use fixperms macro instead of our own chmod incantation.
+- BR ExtUtils::MakeMaker.
+
+* Sat Sep 16 2006 Steven Pritchard <steve@kspei.com> 1.0700-2
+- Fix find option order.
+
+* Mon Jul 03 2006 Steven Pritchard <steve@kspei.com> 1.0700-1
+- Specfile autogenerated by cpanspec 1.66.
+- Fix License.
+- Remove versioned DateTime deps (0.1402 > 0.30 according to rpm).
+- Remove versioned explicit dependencies that rpmbuild picks up.
+- Substitute literal "©" for E<169> in pod documentation.  (The result
+  should be the same, but apparently the man page conversion is generating
+  something that rpmlint doesn't like.)