Hi,
Take a look at the current %install section of the .spec file:
===
%install
make CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=-s prefix=$RPM_BUILD_ROOT/usr \
exec_prefix=$RPM_BUILD_ROOT install
bzip2 -f9 $RPM_BUILD_ROOT/usr/info/ed.info
bzip2 -f9 $RPM_BUILD_ROOT/usr/man/*/*
rm $RPM_BUILD_ROOT/usr/man/man1/red.1
ln -sf /usr/man/man1/ed.1.bz2 $RPM_BUILD_ROOT/usr/man/man1/red.1.bz2
strip $RPM_BUILD_ROOT/bin/ed
===
Why not make it:
===
%install
make CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=-s prefix=$RPM_BUILD_ROOT/usr \
exec_prefix=$RPM_BUILD_ROOT install
strip $RPM_BUILD_ROOT/bin/ed
===
At least the package will _build_... and after installing it, here's
the result with the man pages:
[root@d10179 /root]# cd /usr/man/man1
[root@d10179 man1]# ls -l ed* red*
-rw-r--r-- 1 root root 6608 Apr 23 14:58 ed.1.bz2
lrwxrwxrwx 1 root root 8 Apr 23 15:04 red.1.bz2 ->
ed.1.bz2
This is what we want, right?
the new src.rpm is in /incoming... the .diff of the spec file is
attached with this mail.
Stefan
Name : ed Relocations: (not
relocateable)
Version : 0.2 Vendor: MandrakeSoft
Release : 17mdk Build Date: Sun 23 Apr 2000
02:58:48
PM CEST
Install date: (not installed) Build Host:
d10179.dtk.chello.nl
Group : Text tools Source RPM: (none)
Size : 164384 License: GPL
Summary : The GNU line editor.
Description :
Ed is a line-oriented text editor, used to create, display, and modify
text files (both interactively and via shell scripts). For most
purposes, ed has been replaced in normal usage by full-screen editors
(emacs and vi, for example).
Ed was the original UNIX editor, and may be used by some programs. In
general, however, you probably don't need to install it and you probably
won't use it much.
* Sun Apr 23 2000 Stefan van der Eijk <[EMAIL PROTECTED]> 0.2-17mdk
- let the spechelper handle compressing man / info pages
--- ed-0.2.spec.orig Sun Apr 23 14:40:22 2000
+++ ed-0.2.spec Sun Apr 23 14:58:03 2000
@@ -1,7 +1,7 @@
Summary: The GNU line editor.
Name: ed
Version: 0.2
-Release: 16mdk
+Release: 17mdk
Copyright: GPL
Group: Text tools
Source: ftp://ftp.gnu.org/pub/gnu/ed/ed-0.2.tar.bz2
@@ -28,12 +28,6 @@
%install
make CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=-s prefix=$RPM_BUILD_ROOT/usr \
exec_prefix=$RPM_BUILD_ROOT install
-bzip2 -f9 $RPM_BUILD_ROOT/usr/info/ed.info
-bzip2 -f9 $RPM_BUILD_ROOT/usr/man/*/*
-
-rm $RPM_BUILD_ROOT/usr/man/man1/red.1
-ln -sf /usr/man/man1/ed.1.bz2 $RPM_BUILD_ROOT/usr/man/man1/red.1.bz2
-
strip $RPM_BUILD_ROOT/bin/ed
%post
@@ -57,6 +51,9 @@
/usr/man/man1/red.1.bz2
%changelog
+* Sun Apr 23 2000 Stefan van der Eijk <[EMAIL PROTECTED]> 0.2-17mdk
+- let the spechelper handle compressing man / info pages
+
* Wed Mar 22 2000 Daouda Lo <[EMAIL PROTECTED]> 0.2-16mdk
- move to Text tools group