]> Pileus Git - ~andy/fetchmail/blobdiff - specgen.sh
Before the IDLE patch.
[~andy/fetchmail] / specgen.sh
index 868ba4dd42583a666b9ac8922d32e08a18ba3ef7..2332e287998a43ba11b8f88d34993b4c4b317c8c 100755 (executable)
@@ -5,11 +5,11 @@ Version:      $1
 Release:       1
 Vendor:                Eric Conspiracy Secret Labs
 Packager:      Eric S. Raymond <esr@thyrsus.com>
-URL:           http://www.tuxedo.org/~esr/fetchmail
+URL:           http://www.tuxedo.org/~esr/fetchmail/
 Source:         %{name}-%{version}.tar.gz
 Group:         Applications/Mail
 Group(pt_BR):   Aplicações/Correio Eletrônico
-Copyright:     GPL
+License:       GPL
 Icon:          fetchmail.xpm
 Requires:      smtpdaemon
 BuildRoot:     /var/tmp/%{name}-%{version}
@@ -115,33 +115,32 @@ GUI konfigurator do fetchmaila napisany w pythonie.
 %setup -q
 
 %build
-CFLAGS="\$RPM_OPT_FLAGS" LDFLAGS="-s"
+LDFLAGS="-s"
 export CFLAGS LDFLAGS
-./configure --prefix=/usr # Add  --enable-nls --without-included-gettext
+./configure --prefix=/usr --disable-nls --without-kerberos --mandir=%{_mandir} --with-ssl --enable-inet6
+                         # Remove --disable-nls, add --without-included-gettext
                          # for internationalization. Also look below.
 make
 
 %install
 if [ -d \$RPM_BUILD_ROOT ]; then rm -rf \$RPM_BUILD_ROOT; fi
 mkdir -p \$RPM_BUILD_ROOT/{etc/X11/wmconfig,usr/lib/rhs/control-panel}
-make install prefix=\$RPM_BUILD_ROOT/usr
+make install prefix=\$RPM_BUILD_ROOT/usr mandir=\$RPM_BUILD_ROOT%{_mandir}/man1
 cp rh-config/*.{xpm,init} \$RPM_BUILD_ROOT/usr/lib/rhs/control-panel
-cp fetchmail.man \$RPM_BUILD_ROOT/usr/man/man1/fetchmail.1
-gzip -9nf \$RPM_BUILD_ROOT/usr/man/man1/fetchmail.1
 rm -rf contrib/RCS
 chmod 644 contrib/*
 cp rh-config/fetchmailconf.wmconfig \$RPM_BUILD_ROOT/etc/X11/wmconfig/fetchmailconf
-cd \$RPM_BUILD_ROOT/usr/man/man1
-ln -sf fetchmail.1.gz fetchmailconf.1.gz
+cd \$RPM_BUILD_ROOT%{_mandir}/man1
+ln -sf fetchmail.1 fetchmailconf.1
 
 %clean
 rm -rf \$RPM_BUILD_ROOT
 
 %files
 %defattr (644, root, root, 755)
-%doc README NEWS NOTES FAQ COPYING FEATURES sample.rcfile contrib
+%doc README NEWS NOTES FAQ COPYING FEATURES contrib
 %doc fetchmail-features.html fetchmail-FAQ.html design-notes.html
-%attr(644, root, man) /usr/man/man1/*.1.gz
+%attr(644, root, man) %{_mandir}/man1/*.1*
 %attr(755, root, root) /usr/bin/fetchmail
 # Uncomment the following to support internationalization
 # %attr(644,root,root) /usr/share/locale/*/LC_MESSAGES/fetchmail.mo