3609612
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
3609612
3609612
Name:           offlineimap
Christoph Höger 4eaed28
Version:        6.3.4
b4c2508
Release:        2%{?dist}
3609612
Summary:        Powerful IMAP/Maildir synchronization and reader support
3609612
660f86d
License:        GPLv2+
3609612
Group:          Applications/Internet
3609612
URL:            http://software.complete.org/offlineimap/
Christoph Höger 1ea4a5a
Source0:        %{name}-v%{version}.tar.gz
Christoph Höger b40d26c
Christoph Höger b40d26c
Patch0:         0001-Fix-manpage-build-failures-from-inconsistent-heading.patch
Christoph Höger b40d26c
3609612
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3609612
8be4905
BuildRequires:  python-devel
Christoph Höger 3de035c
BuildRequires:  python-docutils
Christoph Höger 3de035c
BuildRequires:  make
Christoph Höger 3de035c
BuildRequires:  gzip
Christoph Höger b2fba1c
BuildRequires:  git
Christoph Höger 23b6b50
BuildRequires:  python-sphinx
8be4905
3609612
BuildArch:      noarch
3609612
3609612
%description
3609612
OfflineIMAP is a tool to simplify your e-mail reading. With OfflineIMAP,
3609612
you can read the same mailbox from multiple computers.  You get a
3609612
current copy of your messages on each computer, and changes you make one
3609612
place will be visible on all other systems. For instance, you can delete
3609612
a message on your home computer, and it will appear deleted on your work
3609612
computer as well. OfflineIMAP is also useful if you want to use a mail
3609612
reader that does not have IMAP support, has poor IMAP support, or does
3609612
not provide disconnected operation.
3609612
3609612
%prep
Christoph Höger 6182ee5
%setup -q -n %name-v%version
Christoph Höger 6182ee5
# Create a git repo within the expanded tarball.
Christoph Höger 6182ee5
# Credits to: 
Christoph Höger 6182ee5
git init
Christoph Höger 6182ee5
git config user.email "offlineimap-owner@fedoraproject.org"
Christoph Höger 6182ee5
git config user.name "Offlineimap Maintainer"
Christoph Höger 6182ee5
git add .
Christoph Höger 6182ee5
git commit -a -q -m "%{version} baseline."
Christoph Höger 6182ee5
# Apply all the patches on top.
Christoph Höger 6182ee5
git am %{patches}
0d26180
3609612
%build
Christoph Höger 3de035c
make build
Christoph Höger 3de035c
make man
Christoph Höger 3de035c
make doc
Christoph Höger 3de035c
gzip -c docs/offlineimap.1 > docs/offlineimap.1.gz
3609612
3609612
%install
3609612
rm -rf $RPM_BUILD_ROOT
aa930e2
mkdir $RPM_BUILD_ROOT
aa930e2
3609612
python setup.py install --root=$RPM_BUILD_ROOT --prefix=%{_prefix}
3609612
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
Christoph Höger 3de035c
install -p docs/offlineimap.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1/
3609612
0d26180
3609612
%clean
3609612
rm -rf $RPM_BUILD_ROOT
3609612
0d26180
3609612
%files
3609612
%defattr(-,root,root,-)
Christoph Höger 3de035c
%doc COPY* offlineimap.conf* docs/*.html
3609612
%{_bindir}/offlineimap
3609612
%{python_sitelib}/offlineimap/
95ff5cd
%{python_sitelib}/offlineimap-%{version}-py*.egg-info
3609612
%{_mandir}/man1/offlineimap.1.gz
3609612
3609612
%changelog
b4c2508
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.3.4-2
b4c2508
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b4c2508
Christoph Höger 4eaed28
* Sun Oct 16 2011 Christoph Höger <choeger@umpa-net.de> - 6.3.4-1
Christoph Höger 4eaed28
- Upgrade to latest stable version
Christoph Höger 4eaed28
- Fixes #708898
Christoph Höger 4eaed28
Christoph Höger 3de035c
* Tue May 10 2011 Christoph Höger <choeger@umpa-net.de> - 6.3.3-1
Christoph Höger 3de035c
- Upgrade to latest stable version
Christoph Höger 3de035c
75ec92a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.2.0-3
75ec92a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
75ec92a
Christoph Höger 92c306e
* Sun Sep 19 2010 Christoph Höger <choeger@cs.tu-berlin.de> - 6.2.0-1
Christoph Höger 92c306e
- Update to the last (not latest, last!) released stable version
Christoph Höger 92c306e
- This release fixed some bugs by removing IDLE support
Christoph Höger 92c306e
- fixes #525824
Christoph Höger 92c306e
18a71e4
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 6.1.2-3
18a71e4
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
18a71e4
972cc38
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.1.2-2
972cc38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
972cc38
023d9af
* Fri Jul 17 2009 Christoph Höger <choeger@cs.tu-berlin.de> - 6.1.2-1
023d9af
- Update to latest version
023d9af
- remove patch -> upstream
023d9af
- fixes #510036 
023d9af
46f8a10
* Thu Jul 02 2009 Christoph Höger <choeger@cs.tu-berlin.de> - 6.1.0-1
46f8a10
- Update to latest version
46f8a10
- Add a temporary patch for socket.ssl deprecation
46f8a10
51ca2fc
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.3-3
51ca2fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
51ca2fc
86908f5
* Thu Dec 18 2008 Christoph Höger <choeger@cs.tu-berlin.de> 6.0.3-1
86908f5
- Update to latest version
86908f5
- use own tarball instead of debian ftp
86908f5
ebd2f72
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 6.0.0-2
ebd2f72
- Rebuild for Python 2.6
ebd2f72
8cbb8fc
* Wed Jun 18 2008 Till Maas <opensource till name> - 6.0.0-1
8cbb8fc
- Update to latest release
8cbb8fc
1f6d9f8
* Tue Mar 04 2008 Till Maas <opensource till name> - 5.99.7-1
1f6d9f8
- Update to latest version
1f6d9f8
ba974e5
* Tue Mar 04 2008 Till Maas <opensource till name> - 5.99.6-1
ba974e5
- Update to latest version
ba974e5
95ff5cd
* Mon Jan 07 2008 Till Maas <opensource till name> - 5.99.4-2
95ff5cd
- add egg-info to %%files
95ff5cd
541549a
* Sun Oct 21 2007 Till Maas <opensource till name> - 5.99.4-1
541549a
- update to new version
541549a
0a6a2e5
* Tue Sep 04 2007 Till Maas <opensource till name> - 5.99.2-1
660f86d
- update to new version
660f86d
- update license Tag
67832a9
- add unclosed listitem in offlineimap.sgml
0a6a2e5
- add missing BR: docbook-utils
0d26180
- build manpage
a4442bb
- remove todo and manual files from %%doc
660f86d
8be4905
* Sat Dec 09 2006 Till Maas <opensource till name> - 4.0.16-3
8be4905
- rebuild for python2.5
8be4905
- added BR: python-devel, which is needed now
8be4905
1170b13
* Mon Dec 04 2006 Till Maas <opensource till name> - 4.0.16-2
1170b13
- added -p to cp to preserve timestamp of ChangeLog
1170b13
3609612
* Sun Dec 03 2006 Till Maas <opensource till name> - 4.0.16-1
3609612
- version bump
3609612
- added one more %%{version} to Source0
3609612
- added FAQ.html, todo to %%doc
3609612
- added debian/changelog as ChangeLog to %%doc
3609612
3609612
* Sat Dec 02 2006 Till Maas <opensource till name> - 4.0.15-1
3609612
- added %%{?dist} tag
3609612
- made Source0 a valid URL
3609612
- rearranged tag order and changed whitespace
3609612
- added -q -n %%name to %%setup
3609612
- removed ChangeLog* from %%doc (not in archive)
3609612
- added offlineimap.conf* to %%doc
3609612
- Use %%{_bindir} and %%{python_sitelib}
3609612
- removed directory docs from %%doc
3609612
- added BuildArch: noarch
3609612
- added manpage
3609612
3609612
* Tue May 16 2006 Adam Spiers <adam@spiers.net> 4.0.13-3
3609612
- Force prefix to /usr
3609612
3609612
* Mon May 15 2006 Adam Spiers <adam@spiers.net> 4.0.13-2
3609612
- Finally get savemessage_searchforheader right?
3609612
3609612
* Sun May 14 2006 Adam Spiers <adam@spiers.net> 4.0.13-1
3609612
- Updated for 4.0.13
3609612
3609612
* Sat Apr 29 2006 Adam Spiers <offlineimap@adamspiers.org> 4.0.11-2
3609612
- Add patch for Groupwise IMAP servers.
3609612
3609612
* Fri Apr 28 2006 Adam Spiers <offlineimap@adamspiers.org> 4.0.11-1
3609612
- Initial build.