From: Adam Spiers Date: Mon, 15 May 2006 01:59:52 +0000 (+0100) Subject: add .spec file and Makefile rule for building an rpm X-Git-Tag: DEBIAN_offlineimap_4.0.13-0.1~11 X-Git-Url: https://code.delx.au/offlineimap/commitdiff_plain/8642a73caaa47049d47cfd37a6653ea72201836b add .spec file and Makefile rule for building an rpm --- diff --git a/Makefile b/Makefile index a2e3529..1e7938d 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,9 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +VERSION=4.0.13 +TARGZ=offlineimap_$(VERSION).tar.gz SHELL=/bin/bash clean: @@ -40,3 +43,13 @@ doc: groff -Tascii -man offlineimap.1 | sed $$'s/.\b//g' > manual.txt -rm manpage.links manpage.refs +targz: ../$(TARGZ) +../$(TARGZ): + if ! pwd | grep -q "/offlineimap-$(VERSION)$$"; then \ + echo "Containing directory must be called offlineimap-$(VERSION)"; \ + exit 1; \ + fi; \ + pwd && cd .. && pwd && tar -zhcv --exclude '_darcs' -f $(TARGZ) offlineimap-$(VERSION) + +rpm: targz + cd .. && sudo rpmbuild -ta $(TARGZ) diff --git a/offlineimap.spec b/offlineimap.spec new file mode 100644 index 0000000..dee97da --- /dev/null +++ b/offlineimap.spec @@ -0,0 +1,51 @@ +Name: offlineimap +Summary: Powerful IMAP/Maildir synchronization and reader support +Version: 4.0.13 +Release: 1 +License: GPL +Group: Applications/Internet +URL: http://quux.org:70/devel/offlineimap +Source0: %{name}_%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot +Requires: python >= 2.2.1 + +%description +OfflineIMAP is a tool to simplify your e-mail reading. With +OfflineIMAP, you can read the same mailbox from multiple computers. +You get a current copy of your messages on each computer, and changes +you make one place will be visible on all other systems. For instance, +you can delete a message on your home computer, and it will appear +deleted on your work computer as well. OfflineIMAP is also useful if +you want to use a mail reader that does not have IMAP support, has poor +IMAP support, or does not provide disconnected operation. + +%prep +%setup + +%build +python setup.py build + +%install +rm -rf $RPM_BUILD_ROOT +python setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc docs manual.* README COPY* ChangeLog* UPGRADING +/usr/bin/* +/usr/lib/python* + +%changelog +* Sun May 14 2006 Adam Spiers 4.0.13-1 +- Updated for 4.0.13 + +* Sat Apr 29 2006 Adam Spiers 4.0.11-2 +- Add patch for Groupwise IMAP servers. + +* Fri Apr 28 2006 Adam Spiers 4.0.11-1 +- Initial build. + +