]> git.pld-linux.org Git - packages/perl-HTTP-Date.git/commitdiff
- new
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 12 Mar 2011 11:28:13 +0000 (11:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-HTTP-Date.spec -> 1.1

perl-HTTP-Date.spec [new file with mode: 0644]

diff --git a/perl-HTTP-Date.spec b/perl-HTTP-Date.spec
new file mode 100644 (file)
index 0000000..3bbee6f
--- /dev/null
@@ -0,0 +1,58 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%define                pdir    HTTP
+%define                pnam    Date
+%include       /usr/lib/rpm/macros.perl
+Summary:       HTTP::Date - date conversion routines
+Summary(pl.UTF-8):     HTTP::Date - funkcje do konwersji dat
+Name:          perl-HTTP-Date
+Version:       6.00
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/HTTP/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 41b875ac89c14d7f66515b52cdd12acd
+URL:           http://search.cpan.org/dist/HTTP-Date/
+BuildRequires: perl-devel >= 1:5.8.8
+BuildRequires: rpm-perlprov >= 4.1-13
+Conflicts:     perl-libwww < 6
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module provides functions that deal the date formats used by the
+HTTP protocol (and then some more).  Only the first two functions,
+time2str() and str2time(), are exported by default.
+
+%description -l pl.UTF-8
+Ten moduł udostępnia funkcje obsługujące formaty danych używane w
+protokole HTTP (i paru innych). Domyślnie eksportowane są tylko dwie
+funkcje: time2str() i str2time().
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/HTTP/Date.pm
+%{_mandir}/man3/HTTP::Date.3pm*
This page took 0.05754 seconds and 4 git commands to generate.