SPECS: perl-Email-Date-Format.spec (NEW) - derived from perl-Email-Date.spec
gotar
gotar at pld-linux.org
Thu Jul 24 17:35:52 CEST 2008
Author: gotar Date: Thu Jul 24 15:35:52 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- derived from perl-Email-Date.spec
---- Files affected:
SPECS:
perl-Email-Date-Format.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/perl-Email-Date-Format.spec
diff -u /dev/null SPECS/perl-Email-Date-Format.spec:1.1
--- /dev/null Thu Jul 24 17:35:52 2008
+++ SPECS/perl-Email-Date-Format.spec Thu Jul 24 17:35:47 2008
@@ -0,0 +1,83 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Email
+%define pnam Date-Format
+Summary: Email::Date::Format - format Date headers
+Summary(pl.UTF-8): Email::Date::Format - formatowanie nagłówków Date
+Name: perl-%{pdir}-%{pnam}
+Version: 1.002
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 7ae25275da6ab272aa8b40141eac9f82
+URL: http://search.cpan.org/dist/Email-Date-Format/
+BuildRequires: perl-devel >= 1:5.8.0
+%if %{with tests}
+BuildRequires: perl-Test-Pod >= 1.14
+BuildRequires: perl-Test-Pod-Coverage >= 1.08
+%endif
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+RFC 2822 defines the Date: header. It declares the header a required
+part of an email message. The syntax for date headers is clearly laid
+out. Still, even a perfectly planned world has storms. The truth is,
+many programs get it wrong. Very wrong. Or, they don't include a Date:
+header at all. This often forces you to look elsewhere for the date,
+and hoping to find something.
+
+For this reason, the tedious process of looking for a valid date has
+been encapsulated in this software. Further, the process of creating
+RFC compliant date strings is also found in this software.
+
+%description -l pl.UTF-8
+RFC 2822 definiuje nagłówek Date: (zawierający datę). Określa ten
+nagłówek jako obowiązkową część listu. Składnia nagłówków daty jest
+jasno opisana. Mimo to wiele programów źle tworzy ten nagłówek. Bardzo
+źle. Albo nie dołącza go w ogóle. Zwykle zmusza to do szukania daty
+gdzieś indziej z nadzieją znalezienia czegoś.
+
+Z tego powodu nudny proces poszukiwania poprawnej daty został
+opakowany w ten pakiet. Co więcej, proces tworzenia łańcuchów daty
+zgodnych z RFC także można tu znaleźć.
+
+%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} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Email/Date/*.pm
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2008/07/24 15:35:47 gotar
+- derived from perl-Email-Date.spec
================================================================
More information about the pld-cvs-commit
mailing list