rpms/mb2md/EL-5 mb2md.spec,NONE,1.1 sources,1.1,1.2
Jussi Lehtola
jussilehtola at fedoraproject.org
Wed May 6 21:17:45 UTC 2009
Author: jussilehtola
Update of /cvs/pkgs/rpms/mb2md/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24631/EL-5
Modified Files:
sources
Added Files:
mb2md.spec
Log Message:
Import in Fedora.
--- NEW FILE mb2md.spec ---
Name: mb2md
Version: 3.20
Release: 3%{?dist}
Summary: Mailbox to maildir converter
Group: Applications/Internet
License: Public Domain
URL: http://batleth.sapienti-sat.org/projects/mb2md
Source0: http://batleth.sapienti-sat.org/projects/mb2md/mb2md-%{version}.pl.gz
Source1: http://batleth.sapienti-sat.org/projects/mb2md/changelog.txt
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: noarch
%description
Convert your emails folders in mailbox format to maildirs.
Some of the current features of mb2md.pl are:
* converting the user's main mailbox that is referenced by the $MAIL variable
* converting a single mailbox into corresponding maildir
* converting multiple mailboxes in a directory into corresponding maildirs
* recursive operation on a given directory to convert the complete mail
storage of one user
* replaces all occurrences of dots ('.') in a mailbox name by underscores ('_')
* is able to handle spaces in mailbox names
* converts mbox files in DOS format (CRLF) to Unix file format
* can strip an extension (e.g. ".mbx") from a mailbox name prior to converting
* removal of dummy message that a couple of IMAP servers (e.g. UW-IMAPD) put at
the beginning of a mailbox
* setting the file date of a converted message according to the date found in
the "From " line of the original mail
* setting the flags F,R,S,T (flagged, replied, seen, deleted) on the filename
of the converted message according to the flags found in
"Status:"/"X-Status:"/"X-Mozilla-Status:"/"X-Evolution:" headers of the
original mail
%prep
%setup -q -Tc -n %{name}-%{version}
# Setup executable
gunzip -c %{SOURCE0} > mb2md.pl
touch -r %{SOURCE0} mb2md.pl
# Copy changelog
cp -a %{SOURCE1} .
### Generate documentation
# #--- denotes the end of the documentation section; get everything before
# that, remove the shebang and the hash commentation
grep -B `wc -l mb2md.pl|awk '{print $1}'` "#---------" mb2md.pl | grep -v "#-----" | grep -v "#!/" | \
cut -c3- > readme.txt
touch -r %{SOURCE0} readme.txt
%build
%install
rm -rf %{buildroot}
install -D -p -m 755 mb2md.pl %{buildroot}%{_bindir}/mb2md
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc changelog.txt readme.txt
%{_bindir}/mb2md
%changelog
* Tue May 05 2009 Jussi Lehtola <jussi.lehtola at iki.fi> - 3.20-3
- Changed name of installed script from mb2md.pl to mb2md.
- Added generated readme file to %%doc.
* Mon Apr 27 2009 Jussi Lehtola <jussi.lehtola at iki.fi> - 3.20-2
- Fixed awk argument, trimmed description.
* Mon Apr 27 2009 Jussi Lehtola <jussi.lehtola at iki.fi> - 3.20-1
- First release.
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/mb2md/EL-5/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 6 May 2009 21:04:03 -0000 1.1
+++ sources 6 May 2009 21:17:15 -0000 1.2
@@ -0,0 +1 @@
+b47eaa6ae4231a42f4a15564a08eb439 mb2md-3.20.pl.gz
More information about the fedora-extras-commits
mailing list