[perl-DateTime-TimeZone] initial import (rhbz#730657)

Iain Arnell iarnell at fedoraproject.org
Thu Aug 18 15:15:33 UTC 2011


commit 9f8ba06a594ff5e04c471c8629266746bed6c908
Author: Iain Arnell <iarnell at gmail.com>
Date:   Thu Aug 18 17:15:09 2011 +0200

    initial import (rhbz#730657)

 .gitignore                  |    1 +
 perl-DateTime-TimeZone.spec |   87 +++++++++++++++++++++++++++++++++++++++++++
 sources                     |    1 +
 3 files changed, 89 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..00755f6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/DateTime-TimeZone-1.35.tar.gz
diff --git a/perl-DateTime-TimeZone.spec b/perl-DateTime-TimeZone.spec
new file mode 100644
index 0000000..077a87f
--- /dev/null
+++ b/perl-DateTime-TimeZone.spec
@@ -0,0 +1,87 @@
+# for initial import only; must be removed and rebuilt once perl-DateTime has been unbundled
+%global perl_bootstrap 1
+
+Name:           perl-DateTime-TimeZone
+Version:        1.35
+Release:        2%{?dist}
+Summary:        Time zone object base class and factory
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/DateTime-TimeZone/
+Source0:        http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-TimeZone-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl(Class::Load)
+BuildRequires:  perl(Class::Singleton) >= 1.03
+BuildRequires:  perl(constant)
+BuildRequires:  perl(Cwd) >= 3
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(File::Compare)
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(List::Util)
+BuildRequires:  perl(Params::Validate) >= 0.72
+BuildRequires:  perl(parent)
+BuildRequires:  perl(Pod::Man) >= 1.14
+BuildRequires:  perl(Test::More) >= 0.88
+BuildRequires:  perl(Test::Output)
+# not automatically detected
+Requires:       perl(Cwd) >= 3
+Requires:       perl(File::Compare)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%{?filter_setup:
+%filter_from_requires /^perl(Win32/d
+%if 0%{?perl_bootstrap}
+%filter_from_requires /^perl(DateTime\(::Duration\)?)/d
+%endif
+%?perl_default_filter}
+
+%if 0%{?perl_bootstrap}
+# avoid circular dependencies - DateTime strictly requires DateTime::TimeZone
+%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(DateTime\\)
+%global __requires_exclude %{__requires_exclude}|perl\\(DateTime::Duration\\)
+# perl-DateTime-TimeZone used to be bundled with perl-DateTime
+# when bootstrapping, we can't require the unbundled version, so
+# need to conflict with the old package
+Conflicts:      perl-DateTime <= 1:0.7000-3.fc16
+%else
+# explicitly require the unbundled perl-DateTime to avoid implicit conflicts
+Requires:       perl-DateTime >= 2:0.70-1
+# and BR perl(DateTime) to enable testing
+BuildRequires:  perl(DateTime)
+%endif
+
+%description
+This class is the base class for all time zone objects. A time zone is
+represented internally as a set of observances, each of which describes the
+offset from GMT for a given time period.
+
+%prep
+%setup -q -n DateTime-TimeZone-%{version}
+
+%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} -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} %{buildroot}/*
+
+%check
+make test
+
+%files
+%doc Changes LICENSE README
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Mon Aug 15 2011 Iain Arnell <iarnell at gmail.com> 1.35-2
+- additional explicit (build)requires for core modules
+
+* Mon Aug 15 2011 Iain Arnell <iarnell at gmail.com> 1.35-1
+- Specfile autogenerated by cpanspec 1.78.
+- Add bootstrapping logic
diff --git a/sources b/sources
index e69de29..8ecf991 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5866f392d011f2579168c427231cc569  DateTime-TimeZone-1.35.tar.gz



More information about the perl-devel mailing list