]> Pileus Git - ~andy/fetchmail/blob - specgen.sh
ObiTuarY <obituary@freshmeat.net>'s change to support fetchmailconf.
[~andy/fetchmail] / specgen.sh
1 cat <<EOF
2 %define name fetchmail
3 %define version ${1}
4 %define release 1
5 %define builddir \$RPM_BUILD_DIR/%{name}-%{version}
6 Name:           %{name}
7 Version:        %{version}
8 Release:        1
9 Vendor:         Eric Conspiracy Secret Labs
10 URL:            http://www.tuxedo.org/~esr/fetchmail
11 Source:         %{name}-%{version}.tar.gz
12 Group:          Applications/Mail
13 Copyright:      GPL
14 Icon:           fetchmail.gif
15 Requires:       smtpdaemon
16 Summary:        Full-featured POP/IMAP mail retrieval daemon
17 Summary(fr):    Collecteur (POP/IMAP) de courrier électronique
18
19 %description
20 fetchmail is a free, full-featured, robust, and well-documented remote
21 mail retrieval and forwarding utility intended to be used over
22 on-demand TCP/IP links (such as SLIP or PPP connections).  It
23 retrieves mail from remote mail servers and forwards it to your local
24 (client) machine's delivery system, so it can then be be read by
25 normal mail user agents such as mutt, elm, pine, or mailx.
26 Comes with an interactive GUI configurator suitable for end-users.
27
28 %description -l fr
29 Fetchmail est un programme qui permet d'aller
30 rechercher du courrier électronique sur un
31 serveur de mail distant. Fetchmail connait 
32 les protocoles POP (Post Office Protocol),
33 IMAP (Internet Mail Access Protocol) et 
34 délivre le courrier électronique a travers
35 le serveur SMTP local (habituellement sendmail).
36
37 %prep
38 %setup
39
40 %build
41 CFLAGS="\$RPM_OPT_FLAGS" ./configure --prefix=/usr
42 make
43
44 %install
45 if [ -d \$RPM_BUILD_ROOT ]; then rm -rf \$RPM_BUILD_ROOT; fi
46 mkdir -p \$RPM_BUILD_ROOT/{etc/X11/wmconfig,usr/lib/rhs/control-panel}
47 make install prefix=\$RPM_BUILD_ROOT/usr
48 cp %{builddir}/rh-config/*.{xpm,init} \$RPM_BUILD_ROOT/usr/lib/rhs/control-panel
49 cp %{builddir}/fetchmail.man \$RPM_BUILD_ROOT/usr/man/man1/fetchmail.1
50 gzip -9f \$RPM_BUILD_ROOT/usr/man/man1/fetchmail.1
51 cd \$RPM_BUILD_ROOT/usr/man/man1
52 ln -s fetchmail.1.gz fetchmailconf.1.gz
53 chmod 644 %{builddir}/contrib/*
54 cp %{builddir}/rh-config/fetchmailconf.wmconfig \$RPM_BUILD_ROOT/etc/X11/wmconfig/fetchmailconf
55
56 %clean
57 rm -rf \$RPM_BUILD_ROOT
58 rm -rf %{builddir}
59
60 %files
61 %doc README NEWS NOTES FAQ COPYING FEATURES sample.rcfile contrib
62 %doc fetchmail-features.html fetchmail-FAQ.html design-notes.html
63 %attr(644,root,root) /etc/X11/wmconfig/fetchmailconf
64 %attr(755,root,root) /usr/bin/fetchmail
65 %attr(755,root,root) /usr/bin/fetchmailconf
66 %attr(644,root,root) /usr/man/man1/*.1.gz
67 %attr(644,root,root) /usr/lib/rhs/control-panel/fetchmailconf.xpm
68 %attr(644,root,root) /usr/lib/rhs/control-panel/fetchmailconf.init
69 EOF