9
0

- specfile cleanup

- require Module::Metadata for build: fixes build on SLE 11

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DateTime-Format-Mail?expand=0&rev=10
This commit is contained in:
Lars Vogdt
2013-05-11 22:17:54 +00:00
committed by Git OBS Bridge
parent 43657892b7
commit 11131f5cf3
2 changed files with 34 additions and 16 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat May 11 22:16:54 UTC 2013 - lars@linux-schulserver.de
- specfile cleanup
- require Module::Metadata for build: fixes build on SLE 11
-------------------------------------------------------------------
Mon Dec 20 12:24:51 UTC 2010 - vcizek@novell.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-DateTime-Format-Mail
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,43 +20,55 @@
Name: perl-%cpan_name
Version: 0.3001
Release: 1
Provides: %cpan_name
Requires: perl-DateTime perl-DateTime-Locale perl-DateTime-TimeZone perl-Params-Validate
Release: 0
Provides: %cpan_name = %{version}-%{release}
Summary: Convert between DateTime and RFC2822/822 formats
License: GPL-1.0+
Group: Development/Libraries/Perl
License: GPL
Url: http://search.cpan.org/dist/DateTime-Format-Mail/
Summary: DateTime::Format::Mail - Convert between DateTime and RFC2822/822 formats
Source: %cpan_name-%{version}.tar.gz
BuildRequires: perl-DateTime
BuildRequires: perl-DateTime-Locale
BuildRequires: perl-DateTime-TimeZone
BuildRequires: perl-File-Find-Rule
BuildRequires: perl-Module-Build
BuildRequires: perl-Params-Validate
BuildRequires: perl-Test-Signature
BuildRequires: perl-macros
BuildRequires: perl(Module::Metadata)
Requires: perl-DateTime
Requires: perl-DateTime-Locale
Requires: perl-DateTime-TimeZone
Requires: perl-Params-Validate
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl-macros
BuildRequires: perl-DateTime perl-DateTime-Locale perl-DateTime-TimeZone perl-File-Find-Rule perl-Module-Build perl-Params-Validate perl-Test-Signature
%description
RFCs 2822 and 822 specify date formats to be used by email. This module parses and emits such dates.
RFCs 2822 and 822 specify date formats to be used by email. This module parses
and emits such dates.
RFC2822 (April 2001) introduces a slightly different format of date than that used by RFC822 (August 1982). The main correction is that the preferred format is more limited, and thus easier to parse programmatically.
RFC2822 (April 2001) introduces a slightly different format of date than that
used by RFC822 (August 1982). The main correction is that the preferred format
is more limited, and thus easier to parse programmatically.
%prep
%setup -q -n %cpan_name-%{version}
%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make
perl Makefile.PL OPTIMIZE="%{optflags} -Wall"
make %{?_smp_mflags}
%check
make test
%install
export DESTDIR=$RPM_BUILD_ROOT
export DESTDIR=%{buildroot}
/usr/bin/perl Build --makefile_env_macros 1 install --installdirs vendor
#%perl_process_packlist
%clean
# clean up the hard disc after build
rm -rf $RPM_BUILD_ROOT
rm -rf %{buildroot}
%files
%defattr(-,root,root)