Compare commits
10 Commits
7498b015c8
...
0b82abd818
Author | SHA256 | Date | |
---|---|---|---|
0b82abd818 | |||
d5bd5b9b0b | |||
7ad99a97fa | |||
|
dbcb5ac75e | ||
|
0af730fbf8 | ||
|
cdcd64d536 | ||
|
7e48516e16 | ||
|
b3c4c673b2 | ||
|
46b208aee3 | ||
|
0b14f3d3f3 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:aab2fca9c2c5ed19eedc149cb8bee00728e0dcfd6df41990854bd4e3298e7be9
|
||||
size 617339
|
3
Mail-Box-3.011.tar.gz
Normal file
3
Mail-Box-3.011.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0fdb5683c0b15fe95f50a6d5db6801e212797f0025a00f97460b75e8e96ed7ff
|
||||
size 295217
|
20
cpanspec.yml
Normal file
20
cpanspec.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
#description_paragraphs: 3
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
#patches:
|
||||
# foo.patch: -p1
|
||||
# bar.patch:
|
||||
#preamble: |-
|
||||
# BuildRequires: gcc-c++
|
||||
#post_prep: |-
|
||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||
#post_install: |-
|
||||
# sed on %{name}.files
|
||||
#license: SUSE-NonFree
|
||||
#skip_noarch: 1
|
||||
#custom_build: -
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
@@ -1,3 +1,234 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Apr 20 05:34:28 UTC 2025 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
- updated to 3.11.0 (3.011)
|
||||
see /usr/share/doc/packages/perl-Mail-Box/ChangeLog
|
||||
|
||||
version 3.011: Fri 18 Apr 18:33:17 CEST 2025
|
||||
|
||||
Fixes:
|
||||
- url use for folder requires % decoding. [Gabrielle Schmidt]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 8 22:42:13 UTC 2024 - Tina Müller <tina.mueller@suse.com>
|
||||
|
||||
- Fix disabling of __perllib_provides
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 19 03:07:34 UTC 2023 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
- updated to 3.010
|
||||
see /usr/share/doc/packages/perl-Mail-Box/ChangeLog
|
||||
|
||||
version 3.010: Tue 18 Jul 09:24:24 CEST 2023
|
||||
|
||||
Fixes:
|
||||
- upgrade tests to match Mail::Message 3.013
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 19 03:10:57 UTC 2020 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
- updated to 3.009
|
||||
see /usr/share/doc/packages/perl-Mail-Box/ChangeLog
|
||||
|
||||
version 3.009: Tue 18 Aug 09:49:44 CEST 2020
|
||||
|
||||
Improvements:
|
||||
- for file-per-message based folders, you can now address the message
|
||||
via its filename. rt.cpan.org#132823 [Alexander Adolf]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 7 10:35:47 UTC 2019 - <timueller+perl@suse.de>
|
||||
|
||||
- updated to 3.008
|
||||
see /usr/share/doc/packages/perl-Mail-Box/ChangeLog
|
||||
|
||||
version 3.008: Fri 4 Oct 08:34:32 CEST 2019
|
||||
|
||||
Fixes:
|
||||
- MH reading message did not unlock after processing.
|
||||
rt.cpan.org#130193 [Sergey Poznyakoff]
|
||||
|
||||
Improvements:
|
||||
- test suite can now run in parallel [Corion, Max Maischein]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat May 4 05:34:48 UTC 2019 - Stephan Kulow <coolo@suse.com>
|
||||
|
||||
- updated to 3.007
|
||||
see /usr/share/doc/packages/perl-Mail-Box/ChangeLog
|
||||
|
||||
version 3.007: Fri 3 May 09:38:17 CEST 2019
|
||||
|
||||
Improvements:
|
||||
- recognize imap4s
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 3 07:08:35 UTC 2019 - Stephan Kulow <coolo@suse.com>
|
||||
|
||||
- updated to 3.006
|
||||
see /usr/share/doc/packages/perl-Mail-Box/ChangeLog
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 22 05:38:23 UTC 2016 - coolo@suse.com
|
||||
|
||||
- updated to 2.120
|
||||
see /usr/share/doc/packages/perl-Mail-Box/ChangeLog
|
||||
|
||||
version 2.120: Wed 21 Sep 16:41:23 CEST 2016
|
||||
|
||||
Fixes:
|
||||
- revert change of parts(), because it breaks code/the tests.
|
||||
rt.cpan.org#118016 [Tom Callaway]
|
||||
|
||||
version 2.119: Mon Sep 19 22:49:50 CEST 2016
|
||||
|
||||
Fixes:
|
||||
- Mail::Message::parts() did not return the $msg itself when
|
||||
there are multiparts. [Peter Gunn]
|
||||
- Cygwin is not windows. rt.cpan.org#115286
|
||||
- include examples in the man-pages
|
||||
|
||||
Improvements:
|
||||
- require perl 5.8.5
|
||||
- ::MailDir scans faster with tainting off
|
||||
- larger Mail::Message::build() example in SYNOPSIS [Andrew Beverley]
|
||||
- $msg->build options file and files now exactly the same.
|
||||
- indicate what ::Field::attributes() may return dupplicated
|
||||
keys. rt.cpan.org #114589 [Randy Diffenderfer]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 16 21:35:37 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 2.118
|
||||
see /usr/share/doc/packages/perl-Mail-Box/ChangeLog
|
||||
|
||||
version 2.118: Thu Feb 26 12:52:42 CET 2015
|
||||
|
||||
Fixes:
|
||||
- imap: reconstruction of foldername from url should be kept
|
||||
in folderdir.
|
||||
rt.cpan.org#82983 [Rotkraut]
|
||||
- ::Body::Scalar::file() did not construct ::FastScalar correctly
|
||||
[Andrew Beverley]
|
||||
- fix attribute continuations
|
||||
rt.cpan.org#90342 [Claus Jeppesen]
|
||||
|
||||
Improvements:
|
||||
- accept blanks in some Content-* fields
|
||||
rt.cpan.org#99183 [Randy Diffenderfer]
|
||||
|
||||
version 2.117: Sun Aug 24 15:19:01 CEST 2014
|
||||
|
||||
Fixes:
|
||||
- missed a line from the patch of
|
||||
rt.cpan.org#98225 [Andrew Beverley]
|
||||
|
||||
version 2.116: Sat Aug 23 11:27:16 CEST 2014
|
||||
|
||||
Improvements:
|
||||
- add Mail::Transport::SMTP->new(esmtp_options) and
|
||||
trySend(esmtp_options)
|
||||
rt.cpan.org#97630 [Andrew Beverley]
|
||||
- add Mail::Transport::SMTP->new(from)
|
||||
rt.cpan.org#97636 [Andrew Beverley]
|
||||
- ::Field::Date parse support for numeric months (format used
|
||||
by some broken clients/Yahoo auto-responder)
|
||||
rt.cpan.org#98225 [Andrew Beverley]
|
||||
|
||||
version 2.115: Wed May 28 15:27:48 CEST 2014
|
||||
|
||||
Improvements:
|
||||
- All regression tests pass on Windows!
|
||||
[Markus Spann]
|
||||
|
||||
version 2.114: Thu May 8 10:49:17 CEST 2014
|
||||
|
||||
Fixes:
|
||||
- check for Test::Pod on Windows [cpantesters]
|
||||
- do not break PATH in test.pl on Windows [Markus Spann]
|
||||
- fix ::Locker::POSIX "read-only" error in Perl >5.18.2 [Jim In Aus]
|
||||
|
||||
version 2.113: Wed Apr 16 14:07:37 CEST 2014
|
||||
|
||||
Fixes:
|
||||
- revert change which replaced IO::File by open($fh), because it
|
||||
does not support tell in Perl 5.10 [Scott Smedley]
|
||||
|
||||
version 2.112: Fri Mar 14 13:18:57 CET 2014
|
||||
|
||||
Changes:
|
||||
- do not attempt POSIX lock on Windows [Christian Walde]
|
||||
|
||||
Fixes:
|
||||
- ::Field::Date do not attempt to restore TZ with undef.
|
||||
[Andrew Beverley]
|
||||
- many regression test fixes for Windows [Christian Walde]
|
||||
|
||||
Improvements:
|
||||
- Mail::Transport::SMTP uses Net::SMTP which sometimes needs
|
||||
Net::STMPS being installed. [Scott Smedley]
|
||||
|
||||
version 2.111: Fri Jan 24 11:21:30 CET 2014
|
||||
|
||||
Fixes:
|
||||
- do not explicitly clean-up head and body during DESTROY of a
|
||||
message, because those may be reused in other messages.
|
||||
Fix for rebuild bug, reported by [Andrew Beverley]
|
||||
- open files in ::Body::File with :raw, not to corrupt line-
|
||||
endings on Windows. rt.cpan.org#92374 [Joseph Strom]
|
||||
|
||||
Improvements:
|
||||
- add dispositionFilename to replacement text of deleted parts
|
||||
[Mark Nienberg]
|
||||
- change documentation syntax
|
||||
|
||||
version 2.110: Sun Jan 5 18:50:59 CET 2014
|
||||
|
||||
Fixes:
|
||||
- ::Field::Date must compute in UTC [Andrew Beverley]
|
||||
- ::Field::Date negated -0600 timestamp [Andrew Beverley]
|
||||
- ::Field::Attribute should allow blanks around the '='
|
||||
rt.cpan.org#90035 [Max Bowsher]
|
||||
- ::dispositionFilename() should use a study()d header
|
||||
rt.cpan.org#90342 [Claus Jeppesen]
|
||||
- begin :html in ::Box-Index
|
||||
|
||||
Improvements:
|
||||
- add Mail::Message::Construct::Rebuild::removeExtraAlternativeText()
|
||||
Implemented by [Andrew Beverley]
|
||||
|
||||
version 2.109: Mon Aug 19 12:55:30 CEST 2013
|
||||
|
||||
Fixes:
|
||||
- ::Field::Date format may lack leading 0 in the hour.
|
||||
rt.cpan.org#86716 [Andrew Beverley]
|
||||
- ::Field::Date format, rare time formats use dots in time, not
|
||||
colon. It is illegal, but safe to support.
|
||||
rt.cpan.org#86864 [Andrew Beverley]
|
||||
- ::MBox, pass non-default subfolder extension to siblings.
|
||||
rt.cpan.org#87912 [James Wright]
|
||||
|
||||
Improvements:
|
||||
- spell fixes rt.cpan.org#86450 [Salvatore Bonaccorso]
|
||||
|
||||
version 2.108: Tue Jun 25 09:21:59 CEST 2013
|
||||
|
||||
Fixes:
|
||||
- Mail::Box::Locker::FcntlLock cannot set l_pid, read only
|
||||
|
||||
Improvements:
|
||||
- use Devel::GlobalDestruction
|
||||
rt.cpan.org#80611 [Ribasushi]
|
||||
|
||||
- imap4: support TLS
|
||||
rt.cpan.org#82990 [Rolf Krahl]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 13 22:54:27 UTC 2013 - chris@computersalat.de
|
||||
|
||||
- fix build for SLE_11
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 25 19:51:34 UTC 2013 - chris@computersalat.de
|
||||
|
||||
|
@@ -1,11 +1,7 @@
|
||||
# vim: set sw=4 ts=4 et nu:
|
||||
#
|
||||
# spec file for package perl-Mail-Box
|
||||
#
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
|
||||
# Copyright (c) 2010 chris@computersalat.de
|
||||
# Copyright (c) 2008 Richard Bos <rbos@opensuse.org>
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,197 +12,118 @@
|
||||
# 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/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: perl-Mail-Box
|
||||
Version: 2.107
|
||||
Release: 0
|
||||
%define cpan_name Mail-Box
|
||||
Summary: Manage a mailbox, a folder with messages
|
||||
License: GPL-2.0+ or Artistic-1.0
|
||||
Group: Development/Libraries/Perl
|
||||
Source: http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/Mail-Box-%{version}.tar.gz
|
||||
Patch1: %{name}-fix_use_lib_in_scripts.patch
|
||||
Url: http://search.cpan.org/dist/Mail-Box
|
||||
Name: perl-Mail-Box
|
||||
Version: 3.11.0
|
||||
Release: 0
|
||||
# 3.011 -> normalize -> 3.11.0
|
||||
%define cpan_version 3.011
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Complete E-mail handling suite
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/M/MA/MARKOV/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{perl_requires}
|
||||
BuildRequires: make
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Pod::Man) >= 2.2.0
|
||||
#
|
||||
BuildRequires: perl(Date::Format)
|
||||
BuildRequires: perl(Date::Parse)
|
||||
BuildRequires: perl(Digest::HMAC_MD5)
|
||||
BuildRequires: perl(Encode) >= 2.26
|
||||
BuildRequires: perl(Errno)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(File::Remove) >= 0.20
|
||||
BuildRequires: perl(File::Spec) >= 0.7
|
||||
BuildRequires: perl(Devel::GlobalDestruction) >= 0.90.0
|
||||
BuildRequires: perl(File::Remove) >= 0.200
|
||||
BuildRequires: perl(IO::Scalar)
|
||||
BuildRequires: perl(MIME::Base64)
|
||||
BuildRequires: perl(MIME::Types) >= 1.004
|
||||
BuildRequires: perl(Mail::Address)
|
||||
BuildRequires: perl(Mail::IMAPClient)
|
||||
BuildRequires: perl(Object::Realize::Later) >= 0.14
|
||||
BuildRequires: perl(Scalar::Util) >= 1.13
|
||||
BuildRequires: perl(Sys::Hostname)
|
||||
BuildRequires: perl(TAP::Harness) >= 3.00
|
||||
BuildRequires: perl(Test::More) >= 0.47
|
||||
BuildRequires: perl(Test::Pod) >= 1.00
|
||||
BuildRequires: perl(Time::Zone)
|
||||
BuildRequires: perl(URI) >= 1.23
|
||||
BuildRequires: perl(User::Identity) >= 0.93
|
||||
Requires: perl(Date::Format)
|
||||
BuildRequires: perl(Mail::Message) >= 3.13.0
|
||||
BuildRequires: perl(Mail::Transport) >= 3.3.0
|
||||
BuildRequires: perl(Object::Realize::Later) >= 0.190
|
||||
Requires: perl(Date::Parse)
|
||||
Requires: perl(Digest::HMAC_MD5)
|
||||
Requires: perl(Encode) >= 2.26
|
||||
Requires: perl(Errno)
|
||||
Requires: perl(File::Remove) >= 0.20
|
||||
Requires: perl(File::Spec) >= 0.7
|
||||
Requires: perl(Devel::GlobalDestruction) >= 0.90.0
|
||||
Requires: perl(File::Remove) >= 0.200
|
||||
Requires: perl(IO::Scalar)
|
||||
Requires: perl(MIME::Base64)
|
||||
Requires: perl(MIME::Types) >= 1.004
|
||||
Requires: perl(Mail::Address)
|
||||
Requires: perl(Object::Realize::Later) >= 0.14
|
||||
Requires: perl(Scalar::Util) >= 1.13
|
||||
Requires: perl(Sys::Hostname)
|
||||
Requires: perl(TAP::Harness) >= 3.00
|
||||
Requires: perl(Time::Zone)
|
||||
Requires: perl(URI) >= 1.23
|
||||
Requires: perl(User::Identity) >= 0.93
|
||||
Recommends: perl(Mail::IMAPClient)
|
||||
# only for testing:
|
||||
BuildRequires: perl(Email::Abstract)
|
||||
BuildRequires: perl(Email::Simple)
|
||||
BuildRequires: perl(HTML::FormatPS)
|
||||
BuildRequires: perl(HTML::FormatText)
|
||||
BuildRequires: perl(MIME::Entity)
|
||||
BuildRequires: perl(Text::Autoformat)
|
||||
Requires: perl(Mail::Message) >= 3.13.0
|
||||
Requires: perl(Mail::Transport) >= 3.3.0
|
||||
Requires: perl(Object::Realize::Later) >= 0.190
|
||||
Provides: perl(Mail::Box) = %{version}
|
||||
Provides: perl(Mail::Box::Collection) = %{version}
|
||||
Provides: perl(Mail::Box::Dir) = %{version}
|
||||
Provides: perl(Mail::Box::Dir::Message) = %{version}
|
||||
Provides: perl(Mail::Box::File) = %{version}
|
||||
Provides: perl(Mail::Box::File::Message) = %{version}
|
||||
Provides: perl(Mail::Box::Identity) = %{version}
|
||||
Provides: perl(Mail::Box::Locker) = %{version}
|
||||
Provides: perl(Mail::Box::Locker::DotLock) = %{version}
|
||||
Provides: perl(Mail::Box::Locker::FcntlLock) = %{version}
|
||||
Provides: perl(Mail::Box::Locker::Flock) = %{version}
|
||||
Provides: perl(Mail::Box::Locker::Multi) = %{version}
|
||||
Provides: perl(Mail::Box::Locker::Mutt) = %{version}
|
||||
Provides: perl(Mail::Box::Locker::NFS) = %{version}
|
||||
Provides: perl(Mail::Box::Locker::POSIX) = %{version}
|
||||
Provides: perl(Mail::Box::MH) = %{version}
|
||||
Provides: perl(Mail::Box::MH::Index) = %{version}
|
||||
Provides: perl(Mail::Box::MH::Labels) = %{version}
|
||||
Provides: perl(Mail::Box::MH::Message) = %{version}
|
||||
Provides: perl(Mail::Box::Maildir) = %{version}
|
||||
Provides: perl(Mail::Box::Maildir::Message) = %{version}
|
||||
Provides: perl(Mail::Box::Manage::User) = %{version}
|
||||
Provides: perl(Mail::Box::Manager) = %{version}
|
||||
Provides: perl(Mail::Box::Mbox) = %{version}
|
||||
Provides: perl(Mail::Box::Mbox::Message) = %{version}
|
||||
Provides: perl(Mail::Box::Message) = %{version}
|
||||
Provides: perl(Mail::Box::Message::Destructed) = %{version}
|
||||
Provides: perl(Mail::Box::Net) = %{version}
|
||||
Provides: perl(Mail::Box::Net::Message) = %{version}
|
||||
Provides: perl(Mail::Box::Search) = %{version}
|
||||
Provides: perl(Mail::Box::Search::Grep) = %{version}
|
||||
Provides: perl(Mail::Box::Search::SpamAssassin) = %{version}
|
||||
Provides: perl(Mail::Box::Test) = %{version}
|
||||
Provides: perl(Mail::Box::Thread::Manager) = %{version}
|
||||
Provides: perl(Mail::Box::Thread::Node) = %{version}
|
||||
Provides: perl(Mail::Box::Tie) = %{version}
|
||||
Provides: perl(Mail::Box::Tie::ARRAY) = %{version}
|
||||
Provides: perl(Mail::Box::Tie::HASH) = %{version}
|
||||
Provides: perl(Mail::Message::Body::Delayed) = %{version}
|
||||
Provides: perl(Mail::Message::Dummy) = %{version}
|
||||
Provides: perl(Mail::Message::Head::Delayed) = %{version}
|
||||
Provides: perl(Mail::Message::Head::Subset) = %{version}
|
||||
Provides: perl(Mail::Message::Wrapper::SpamAssassin) = %{version}
|
||||
Provides: perl(Mail::Server) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
A Mail::Box::Manager creates "Mail::Box" objects. But you already knew,
|
||||
A Mail::Box::Manager creates 'Mail::Box' objects. But you already knew,
|
||||
because you started with the Mail::Box-Overview manual page. That page is
|
||||
obligatory reading, sorry!
|
||||
"Mail::Box" is the base class for accessing various types of mailboxes
|
||||
|
||||
'Mail::Box' is the base class for accessing various types of mailboxes
|
||||
(folders) in a uniform manner. The various folder types vary on how they
|
||||
store their messages, but when some effort those differences could be
|
||||
hidden behind a general API. For example, some folders store many messages
|
||||
in one single file, where other store each message in a separate file
|
||||
withing the same directory.
|
||||
within the same directory.
|
||||
|
||||
%package doc
|
||||
Summary: Perl Module for Mailbox Handling
|
||||
Group: Development/Libraries/Perl
|
||||
Requires: %{name} = %{version}
|
||||
No object in your program will be of type 'Mail::Box': it is only used as
|
||||
base class for the real folder types. 'Mail::Box' is extended by
|
||||
|
||||
%description doc
|
||||
Documentation for 'Manage a mailbox, a folder with messages'
|
||||
|
||||
%package -n lsmail
|
||||
Summary: List contents of Mailboxes
|
||||
Group: Productivity/Networking/Email/Utilities
|
||||
Requires: %{name} = %{version}
|
||||
Requires: perl(Getopt::Long)
|
||||
|
||||
%description -n lsmail
|
||||
List the contents of one or more mailboxes. Specifying more than one name is
|
||||
only useful when you read in threads, in which case the messages of both
|
||||
folders are merged.
|
||||
|
||||
%package -n mailbox2html
|
||||
Summary: Convert Mail Folders into an HTML Structure
|
||||
Group: Productivity/Networking/Email/Utilities
|
||||
Requires: %{name} = %{version}
|
||||
Requires: perl(File::Basename)
|
||||
Requires: perl(Getopt::Long)
|
||||
|
||||
%description -n mailbox2html
|
||||
Convert various kinds of mail folders to HTML, permitting them to be read by a
|
||||
web browser.
|
||||
|
||||
%package -n takemail
|
||||
Summary: Walk through Mailboxes and grep for something
|
||||
Group: Productivity/Networking/Email/Utilities
|
||||
Requires: %{name} = %{version}
|
||||
Requires: perl(Getopt::Long)
|
||||
|
||||
%description -n takemail
|
||||
Dump mails applying to regular expressions either to stdout or into a newly
|
||||
created mailbox.
|
||||
Extends "DESCRIPTION" in Mail::Reporter.
|
||||
|
||||
%prep
|
||||
%setup -q -n "Mail-Box-%{version}"
|
||||
%patch1
|
||||
%__sed -i '/^auto_install/d' Makefile.PL
|
||||
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||
|
||||
%build
|
||||
%__perl Makefile.PL PREFIX="%{_prefix}"
|
||||
%__make %{?_smp_flags}
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
%make_build
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
F="$PWD/files.lst"
|
||||
echo -n >"$F"
|
||||
D="$PWD/docfiles.lst"
|
||||
echo -n >"$D"
|
||||
p="Mail"
|
||||
pushd "%{buildroot}%{perl_vendorlib}"
|
||||
find "$p/" -type f -name '*.pod' | while read pod; do
|
||||
echo "%doc %{perl_vendorlib}/$pod" >>"$D"
|
||||
done
|
||||
find "$p/" -type f -name '*.pm' | while read pm; do
|
||||
echo "%{perl_vendorlib}/$pm" >>"$F"
|
||||
done
|
||||
find "$p/" -mindepth 1 -type d | while read d; do
|
||||
echo "%dir %{perl_vendorlib}/$d" >>"$F"
|
||||
done
|
||||
popd
|
||||
|
||||
%__install -d "%{buildroot}%{_bindir}"
|
||||
%__install -m0755 scripts/* "%{buildroot}%{_bindir}/"
|
||||
%__install -d "%{buildroot}%{_mandir}/man1"
|
||||
for f in scripts/*; do
|
||||
#if 0%{?suse_version} >= 1140
|
||||
pod2man --utf8 "$f" > "%{buildroot}%{_mandir}/man1/${f##*/}.1"
|
||||
#else
|
||||
# pod2man "$f" > "%{buildroot}%{_mandir}/man1/${f##*/}.1"
|
||||
#endif
|
||||
done
|
||||
|
||||
%check
|
||||
%__make test
|
||||
|
||||
%clean
|
||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||
|
||||
%files -f files.lst
|
||||
%defattr(-,root,root)
|
||||
%doc README.FAQ README.todo LICENSE README
|
||||
%dir %{perl_vendorlib}/Mail
|
||||
|
||||
%files -n lsmail
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/lsmail
|
||||
%doc %{_mandir}/man1/lsmail.1*
|
||||
|
||||
%files -n mailbox2html
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/mailbox2html
|
||||
%doc %{_mandir}/man1/mailbox2html.1*
|
||||
|
||||
%files -n takemail
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/takemail
|
||||
%doc %{_mandir}/man1/takemail.1*
|
||||
|
||||
%files doc -f docfiles.lst
|
||||
%defattr(-,root,root)
|
||||
%doc %{perl_vendorlib}/Mail/Box.pod
|
||||
%doc %{perl_man3dir}/Mail::*.%{perl_man3ext}*
|
||||
%files -f %{name}.files
|
||||
%doc ChangeLog examples MANIFEST.extra README README.md README.todo
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user