]> code.delx.au - offlineimap/commitdiff
add .spec file and Makefile rule for building an rpm
authorAdam Spiers <darcs@adamspiers.org>
Mon, 15 May 2006 01:59:52 +0000 (02:59 +0100)
committerAdam Spiers <darcs@adamspiers.org>
Mon, 15 May 2006 01:59:52 +0000 (02:59 +0100)
Makefile
offlineimap.spec [new file with mode: 0644]

index a2e3529cac3f10abe9780d7b78807905b085e666..1e7938d64fef6527e37340b3276d750ffe588414 100644 (file)
--- 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 (file)
index 0000000..dee97da
--- /dev/null
@@ -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 <adam@spiers.net> 4.0.13-1
+- Updated for 4.0.13
+
+* Sat Apr 29 2006 Adam Spiers <offlineimap@adamspiers.org> 4.0.11-2
+- Add patch for Groupwise IMAP servers.
+
+* Fri Apr 28 2006 Adam Spiers <offlineimap@adamspiers.org> 4.0.11-1
+- Initial build.
+
+