]> Pileus Git - ~andy/fetchmail/blob - specgen.sh
Build under local root.
[~andy/fetchmail] / specgen.sh
1 cat <<EOF
2 Name:           fetchmail
3 Version:        ${1}
4 Release:        1
5 Vendor:         Eric Conspiracy Secret Labs
6 Source:         locke.ccil.org:/pub/esr/fetchmail/fetchmail-${1}.tar.gz
7 URL:            http://earthspace.net/~esr/fetchmail
8 Group:          Applications/Mail
9 Copyright:      GPL
10 Icon:           fetchmail.gif
11 Requires:       smtpdaemon
12 BuildRoot:      /tmp/fetchmail-%{version}-root
13
14 %description
15 fetchmail is a free, full-featured, robust, and well-documented remote
16 mail retrieval and forwarding utility intended to be used over
17 on-demand TCP/IP links (such as SLIP or PPP connections).  It
18 retrieves mail from remote mail servers and forwards it to your local
19 (client) machine's delivery system, so it can then be be read by
20 normal mail user agents such as mutt, elm, pine, or mailx.
21
22 %prep
23 %setup
24
25 %build
26 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr
27 make
28
29 %install
30 rm -rf $RPM_BUILD_ROOT
31 mkdir -p $RPM_BUILD_ROOT/usr/{bin,man/man1}
32 make prefix=$RPM_BUILD_ROOT/usr install
33
34 %clean
35 rm -rf $RPM_BUILD_ROOT
36
37 %files
38 %attr(-,root,root) %doc README NEWS NOTES fetchmail-FAQ.html FAQ COPYING INSTALL
39 sample.rcfile
40 %attr(-,root,root) /usr/bin/fetchmail
41 %attr(-,root,root) /usr/man/man1/fetchmail.1
42 EOF