]> git.pld-linux.org Git - packages/perl-DateTime-Format-Builder.git/commitdiff
- new auto/th/perl-DateTime-Format-Builder-0_7807-1
authorradek <radek@pld-linux.org>
Thu, 29 Mar 2007 17:36:32 +0000 (17:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-DateTime-Format-Builder.spec -> 1.1

perl-DateTime-Format-Builder.spec [new file with mode: 0644]

diff --git a/perl-DateTime-Format-Builder.spec b/perl-DateTime-Format-Builder.spec
new file mode 100644 (file)
index 0000000..de85ae5
--- /dev/null
@@ -0,0 +1,75 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%include       /usr/lib/rpm/macros.perl
+%define        pdir    DateTime
+%define        pnam    Format-Builder
+Summary:       DateTime::Format::Builder - Create DateTime parser classes and objects.
+#Summary(pl.UTF-8):    
+Name:          perl-DateTime-Format-Builder
+Version:       0.7807
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-authors/id/D/DR/DROLSKY/DateTime-Format-Builder-0.7807.tar.gz
+# Source0-md5: 4f6ee670cab944db0492e70ca8df3be3
+URL:           http://search.cpan.org/dist/DateTime-Format-Builder/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl(Class::Factory::Util) >= 1.6
+BuildRequires: perl(DateTime) >= 0.12
+BuildRequires: perl(DateTime::Format::Strptime) >= 1.04
+BuildRequires: perl(Params::Validate) >= 0.72
+BuildRequires: perl(Module::Build)
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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 I
+expected.
+
+# %description -l pl.UTF-8
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Build.PL \
+       destdir=$RPM_BUILD_ROOT \
+       installdirs=vendor
+./Build
+
+%{?with_tests:./Build test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS Changes CREDITS INSTALL README
+%{perl_vendorlib}/DateTime/Format/*.pm
+%{perl_vendorlib}/DateTime/Format/Builder
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
This page took 0.09554 seconds and 4 git commands to generate.