add .spec file and Makefile rule for building an rpm
This commit is contained in:
parent
8064ee26bd
commit
8642a73caa
13
Makefile
13
Makefile
@ -14,6 +14,9 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
VERSION=4.0.13
|
||||||
|
TARGZ=offlineimap_$(VERSION).tar.gz
|
||||||
SHELL=/bin/bash
|
SHELL=/bin/bash
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@ -40,3 +43,13 @@ doc:
|
|||||||
groff -Tascii -man offlineimap.1 | sed $$'s/.\b//g' > manual.txt
|
groff -Tascii -man offlineimap.1 | sed $$'s/.\b//g' > manual.txt
|
||||||
-rm manpage.links manpage.refs
|
-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)
|
||||||
|
51
offlineimap.spec
Normal file
51
offlineimap.spec
Normal file
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user