rpms/mbox2eml/F-13 mbox2eml-0.1.1-gcc43.patch, NONE, 1.1 mbox2eml.spec, NONE, 1.1 set-eml-mtimes.pl, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Ville Skyttä
scop at fedoraproject.org
Fri Mar 19 20:39:14 UTC 2010
- Previous message: rpms/mbox2eml/devel import.log, NONE, 1.1 mbox2eml-0.1.1-gcc43.patch, NONE, 1.1 mbox2eml.spec, NONE, 1.1 set-eml-mtimes.pl, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message: rpms/kernel/F-12 ssb_check_for_sprom.patch,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: scop
Update of /cvs/pkgs/rpms/mbox2eml/F-13
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv22672
Modified Files:
.cvsignore sources
Added Files:
mbox2eml-0.1.1-gcc43.patch mbox2eml.spec set-eml-mtimes.pl
Log Message:
Initial import (#574249).
mbox2eml-0.1.1-gcc43.patch:
cmdparser.cpp | 1 +
1 file changed, 1 insertion(+)
--- NEW FILE mbox2eml-0.1.1-gcc43.patch ---
diff -up mbox2eml-0.1.1/src/cmdparser.cpp~ mbox2eml-0.1.1/src/cmdparser.cpp
--- mbox2eml-0.1.1/src/cmdparser.cpp~ 2005-02-02 02:11:36.000000000 +0200
+++ mbox2eml-0.1.1/src/cmdparser.cpp 2009-11-06 00:37:34.000000000 +0200
@@ -1,4 +1,5 @@
#include "cmdparser.hpp"
+#include <cstring>
namespace fs = boost::filesystem;
--- NEW FILE mbox2eml.spec ---
Name: mbox2eml
Version: 0.1.1
Release: 3%{?dist}
Summary: Split mbox mailboxes into single .eml files
Group: Applications/Internet
License: GPL+
URL: http://sourceforge.net/projects/mbox2eml/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1: set-eml-mtimes.pl
# http://sf.net/tracker/?func=detail&aid=2892908&group_id=127642&atid=709064
Patch0: %{name}-0.1.1-gcc43.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: boost-devel
BuildRequires: popt-devel
%description
Mbox2eml splits mbox mailboxes into single .eml files. It is highly
configurable and written in C++ to gain maximum performance using a
minimum of RAM.
%prep
%setup -q
%patch0 -p1
sed -i -e 's/\r//g' AUTHORS ChangeLog
install -pm 644 %{SOURCE1} .
%build
%configure LIBS="-lboost_system"
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README set-eml-mtimes.pl
%{_bindir}/mbox2eml
%changelog
* Sun Mar 7 2010 Ville Skyttä <ville.skytta at iki.fi> - 0.1.1-3
- Fix build with ld --no-add-needed.
* Fri Nov 6 2009 Ville Skyttä <ville.skytta at iki.fi> - 0.1.1-2
- Add script for setting mtimes to dates of .eml in docs.
* Fri Nov 6 2009 Ville Skyttä <ville.skytta at iki.fi> - 0.1.1-1
- First build.
--- NEW FILE set-eml-mtimes.pl ---
#!/usr/bin/perl -w
# http://sf.net/tracker/?func=detail&aid=2892923&group_id=127642&atid=709065
# mbox2eml 0.1.1 does not set the modification time of the extracted
# .eml files to the timestamp of the message; this script does that.
# Run it on a directory containing .eml files.
use strict;
use Date::Parse qw(str2time);
use File::Spec::Functions qw(catfile);
use Mail::Internet qw();
if (!@ARGV) {
print STDERR "Usage: $0 DIR\n";
exit 1;
}
opendir(DIR, $ARGV[0]) || die("Can't open dir '$ARGV[0]': $!");
for my $eml (grep { /^.+\.eml$/ && -f catfile($ARGV[0], $_) } readdir(DIR)) {
$eml = catfile($ARGV[0], $eml);
if (!open(EML, $eml)) {
warn("Can't open file '$eml' for reading: $!\n");
next;
}
my $mail = Mail::Internet->new(*EML, Body => []);
close(EML) || warn("Can't close file '$eml': $!\n");
my $date = $mail->head->get("Date");
if (!$date) {
warn("No Date found in file '$eml', skipped\n");
next;
}
$date = str2time($date);
if (!$date) {
warn("Can't parse date '$date', skipped\n");
next;
}
utime($date, $date, $eml) || warn("Can't set times for file '$eml': $!\n");
}
closedir(DIR) || warn("Can't close dir $ARGV[0]: $!");
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/mbox2eml/F-13/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore 19 Mar 2010 20:09:23 -0000 1.1
+++ .cvsignore 19 Mar 2010 20:39:14 -0000 1.2
@@ -0,0 +1 @@
+mbox2eml-0.1.1.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/mbox2eml/F-13/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 19 Mar 2010 20:09:23 -0000 1.1
+++ sources 19 Mar 2010 20:39:14 -0000 1.2
@@ -0,0 +1 @@
+56b179d06576c48e4d91f827ef5a1ef6 mbox2eml-0.1.1.tar.gz
- Previous message: rpms/mbox2eml/devel import.log, NONE, 1.1 mbox2eml-0.1.1-gcc43.patch, NONE, 1.1 mbox2eml.spec, NONE, 1.1 set-eml-mtimes.pl, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message: rpms/kernel/F-12 ssb_check_for_sprom.patch,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list