Эх сурвалжийг харах

added support for building RPMS

Michael Elkins 24 жил өмнө
parent
commit
37c2379bde
2 өөрчлөгдсөн 39 нэмэгдсэн , 0 устгасан
  1. 6 0
      Makefile.am
  2. 33 0
      isync.spec.in

+ 6 - 0
Makefile.am

@@ -2,9 +2,15 @@ bin_PROGRAMS=isync
 isync_SOURCES=main.c imap.c sync.c maildir.c isync.h list.c
 man_MANS=isync.1
 EXTRA_DIST=sample.isyncrc $(man_MANS)
+CPPFLAGS=$(RPM_OPT_FLAGS)
 
 log:
 	rcs2log -h sigipe.org | sed 's;/home/cvs/isync/;;g' > ChangeLog
 
 isync.html: isync.1
 	groff -Thtml -man isync.1 > isync.html
+
+rpm:
+	make dist
+	cp isync-$(VERSION).tar.gz /usr/src/RPM/SOURCES
+	rpm -ba --target=i586 --clean isync.spec

+ 33 - 0
isync.spec.in

@@ -0,0 +1,33 @@
+Summary: Utility to synchronize IMAP mailboxes with local maildir folders
+Name: isync
+Version: 0.3
+Release: 1
+Copyright: GPL
+Group: Applications/Internet
+Source: http://www.sigpipe.org/isync/isync-0.3.tar.gz
+URL: http://www.sigpipe.org/isync/
+Packager: Michael Elkins <me@mutt.org>
+BuildRoot: /var/tmp/%{name}-buildroot
+
+%description
+isync is a command line utility for synchronizing a remote IMAP mailbox with a
+local maildir-style mailbox.  This is useful for working in disconnected mode,
+such as on a laptop.  Modifications made locally and remotely are synchronized
+so that no message status flags are lost.
+
+%prep
+%setup
+%build
+./configure --prefix=/usr
+make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
+
+%install
+make DESTDIR=$RPM_BUILD_ROOT install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%doc COPYING README TODO ChangeLog
+/usr/bin/isync
+/usr/man/man1/isync.1.bz2