forked from pool/perl-Email-Simple
cpanspec, noarch pkg, changes file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Email-Simple?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
9c09f5e75c
commit
2bb2f8a7c7
@@ -1,49 +1,83 @@
|
||||
%define modname Email-Simple
|
||||
Name: perl-%{modname}
|
||||
#
|
||||
# spec file for package perl-Email-Simple (Version 2.100)
|
||||
#
|
||||
# Copyright (c) 2010 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
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
Name: perl-Email-Simple
|
||||
%define cpan_name Email-Simple
|
||||
Summary: simple parsing of RFC2822 message format and headers
|
||||
Version: 2.100
|
||||
Release: 1
|
||||
Summary: Simple Parsing of RFC2822 Message Format and Headers
|
||||
Requires: perl = %{perl_version}
|
||||
BuildRequires: perl
|
||||
License: GPL/Artistic
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries/Perl
|
||||
Source: %{modname}-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-root
|
||||
Url: http://search.cpan.org/dist/Email-Simple/
|
||||
#Source: http://www.cpan.org/authors/id/R/RJ/RJBS/Email-Simple-2.100.tar.gz
|
||||
Source: %{cpan_name}-%{version}.tar.bz2
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
%if 0%{?suse_version} < 1120
|
||||
BuildRequires: perl-macros
|
||||
%endif
|
||||
BuildRequires: perl(Email::Date::Format)
|
||||
Requires: perl = %{perl_version}
|
||||
Requires: perl(Email::Date::Format)
|
||||
|
||||
%description
|
||||
Email::Simple is the first deliverable of the "Perl Email Project." The Email::
|
||||
namespace was begun as a reaction against the increasing complexity and
|
||||
bugginess of Perl's existing email modules. Email::* modules are meant to be
|
||||
simple to use and to maintain, pared to the bone, fast, minimal in their
|
||||
external dependencies, and correct.
|
||||
'Email::Simple' is the first deliverable of the "Perl Email Project." The
|
||||
Email:: namespace was begun as a reaction against the increasing complexity
|
||||
and bugginess of Perl's existing email modules. 'Email::*' modules are
|
||||
meant to be simple to use and to maintain, pared to the bone, fast, minimal
|
||||
in their external dependencies, and correct.
|
||||
|
||||
Authors:
|
||||
--------
|
||||
sorry, no author found
|
||||
|
||||
%prep
|
||||
%setup -q -n %{modname}-%{version}
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
||||
make
|
||||
make test
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||||
%perl_make_install
|
||||
### since 11.4 perl_process_packlist
|
||||
### removes .packlist, perllocal.pod files
|
||||
%if 0%{?suse_version} > 1130
|
||||
%perl_process_packlist
|
||||
%else
|
||||
# do not perl_process_packlist
|
||||
# remove .packlist file
|
||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
||||
# remove perllocal.pod file
|
||||
%{__rm} -f $RPM_BUILD_ROOT%perl_archlib/perllocal.pod
|
||||
%endif
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes LICENSE README
|
||||
%doc %{_mandir}/man?/*
|
||||
%{perl_vendorlib}/Email
|
||||
%{perl_vendorarch}/auto/Email
|
||||
/var/adm/perl-modules/%{name}
|
||||
|
||||
%changelog
|
||||
|
||||
* Fri Sep 14 2007 - James Oakley <jfunk@funktronics.ca> - 2.003-1
|
||||
- Initial release
|
||||
|
||||
Reference in New Issue
Block a user