3609612
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
3609612
3872d01
%define packagedirprefix OfflineIMAP-offlineimap
1926379
%define packagedirname %{name}-%{version}
3872d01
3609612
Name:           offlineimap
6029d44
Version:        7.1.5
6029d44
Release:        1%{?dist}
3609612
Summary:        Powerful IMAP/Maildir synchronization and reader support
3609612
660f86d
License:        GPLv2+
3609612
Group:          Applications/Internet
6029d44
URL:            https://github.com/OfflineIMAP/offlineimap/archive/v7.1.5.tar.gz
1926379
Source0:        %{packagedirprefix}-v%{version}.tar.gz
3609612
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3609612
6029d44
BuildRequires:  python2-devel
6029d44
BuildRequires:  python2-docutils
Christoph Höger 3de035c
BuildRequires:  make
Christoph Höger 3de035c
BuildRequires:  gzip
Christoph Höger b2fba1c
BuildRequires:  git
6029d44
BuildRequires:  python2-sphinx
fdd5f73
BuildRequires:	asciidoc
8be4905
3609612
BuildArch:      noarch
3609612
6029d44
Requires: python2-kerberos
6029d44
Requires: sqlite
6e9c1a1
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
1926379
%setup -q
0d26180
3609612
%build
Christoph Höger 3de035c
make build
fdd5f73
# 'make docs' builds the man pages and the api documentation.
fdd5f73
make docs
Christoph Höger 3de035c
gzip -c docs/offlineimap.1 > docs/offlineimap.1.gz
fdd5f73
gzip -c docs/offlineimapui.7 > docs/offlineimapui.7.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
fdd5f73
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man7
Christoph Höger 3de035c
install -p docs/offlineimap.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1/
fdd5f73
install -p docs/offlineimapui.7.gz $RPM_BUILD_ROOT/%{_mandir}/man7/
0d26180
3609612
%clean
3609612
rm -rf $RPM_BUILD_ROOT
3609612
0d26180
3609612
%files
3609612
%defattr(-,root,root,-)
3872d01
%doc COPY* offlineimap.conf* docs/html/*.html
3609612
%{_bindir}/offlineimap
3609612
%{python_sitelib}/offlineimap/
c33c2d3
%{python_sitelib}/offlineimap-%{version}-py*.egg-info
3609612
%{_mandir}/man1/offlineimap.1.gz
fdd5f73
%{_mandir}/man7/offlineimapui.7.gz
3609612
3609612
%changelog
6029d44
* Wed Jan 17 2018 Dodji Seketeli <dodji@seketeli.org> - 7.1.5-1
6029d44
- Update to upstream 7.1.5 tarball
6029d44
  - Update the URL
6029d44
  - Droped the patch make-docs-target-be-phony.patch
6029d44
  - Specifically require python2 packages
6029d44
  - Require sqlite at runtime
6029d44
7c90317
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.7.0-4
7c90317
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7c90317
c7d1ef7
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.7.0-3
c7d1ef7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c7d1ef7
83f2cdb
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.7.0-2
83f2cdb
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
83f2cdb
fdd5f73
* Mon Mar 21 2016 Dodji Seketeli <dodji@seketeli.org> - 6.7.0-1
fdd5f73
- Update to upstream 6.7.0 version.
fdd5f73
- Update the URL.
fdd5f73
- Droped the patch 0001-Update-version-to-reflect-6.5.6.patch.
fdd5f73
- Remove comments that had macros in them, making rpm spit out warning
fdd5f73
  during the build.
fdd5f73
- Add a patch to force "make docs" to build the documentation, even
fdd5f73
  though there is a directory named 'docs'.
fdd5f73
- Add asciidoc as a build dependency.  This is useful because the new
fdd5f73
  manpage generation mecanism introduced by upstream needs it.
fdd5f73
- 'make docs' is is the new way to generate the man pages.
fdd5f73
- There is now a new offlineimapui.7 man page.
fdd5f73
433f2be
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 6.5.6-4
433f2be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
433f2be
d5deb25
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.5.6-3
d5deb25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d5deb25
6e9c1a1
* Sat Jan 10 2015 Dodji Seketeli <dodji@seketeli.org> - 6.5.6-2
6e9c1a1
- Add python-kerberos as runtime dependency
6e9c1a1
1926379
* Sun Jan  4 2015  <dodji@seketeli.org> - 6.5.6-1
1926379
- Update to upstream version 6.5.6
1926379
- Adjust the packagedirname macro to the normal naming (non git-pre-release) scheme
1926379
- Adjust the Source0 macro to the normal naming scheme
1926379
- Now that the name of the extracted source director is normal,
1926379
  simplify %%setup rule.
1926379
- Add the 0001-Update-version-to-reflect-6.5.6.patch to make the
1926379
  version of offlineimap as returned by 'offlineimap --version' be
1926379
  6.5.6, as opposed to 6.5.5
1926379
dd8a6f8
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.5.5-2
dd8a6f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
dd8a6f8
c33c2d3
* Sun Dec  1 2013 Dodji Seketeli <dodji@seketeli.org> - 6.5.5-1
c33c2d3
- Update to upstream version 6.5.5-0
c33c2d3
3872d01
* Tue Sep 24 2013 Dodji Seketeli <dodji@seketeli.org> - 6.5.5-rc3-0-g254e848-1
3872d01
- Update to pre-release version 6.5.5-rc3-0-g254e848
3872d01
- Update Release field accordingly.
3872d01
- Remove reference to the previous patch.  According to upstream that
3872d01
  issue should be solved by a folderfilter that filters out empty
3872d01
  directory names.
3872d01
- Update %%setup directive in %%prep section to reflect the new naming
3872d01
  scheme of the package source directory name.
3872d01
- Update html files references.
3872d01
- Update the *.egg-info file name reference.
3872d01
791c579
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.5.2.1-5
791c579
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
791c579
f90041e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.5.2.1-4
f90041e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f90041e
44daa13
* Sat Aug 25 2012 Dodji Seketeli <dodji@seketeli.org> - 6.5.2.1-3
44daa13
- Do away with the (too heavy) use of git to apply patches
44daa13
- Apply 35bccdc7dfab8 - Avoid trying to synchronize folders that have empty names
44daa13
  This is from git://github.com/OfflineIMAP/offlineimap, in the 'pu' branch.
44daa13
  Fixes #835688 - offline fails to sync with 'new' folder in tree created by dovecot
44daa13
891463c
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.5.2.1-2
891463c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
891463c
Christoph Höger 959e4f2
* Tue Feb 14 2012 Christoph Höger <choeger@umpa-net.de> 6.5.2.1-1
Christoph Höger 959e4f2
- Upgrade to latest stable version
Christoph Höger 959e4f2
- Fixes #789805
Christoph Höger 959e4f2
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.