changeset 3774:643d1bdc76a9

[gaim-migrate @ 3914] Er. I think this will work better. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 21 Oct 2002 17:13:01 +0000
parents 3e47ffcbf805
children 8fcebfa9f357
files gaim.spec.in
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gaim.spec.in	Mon Oct 21 00:46:45 2002 +0000
+++ b/gaim.spec.in	Mon Oct 21 17:13:01 2002 +0000
@@ -4,6 +4,16 @@
 %define prefix     /usr
 %define sysconfdir /etc
 
+# This stuff makes things install into the directories that LFS wants.
+# Ugly, and I don't know why rpm doesn't put them in the right places,
+# but whatever.
+%{expand:%%define share %(if [ -d %{prefix}/share/man ]; then echo /share ; else echo %%{nil} ; fi)}
+%ifos linux
+%define CONFIG_FLAGS --prefix=%prefix --infodir='%{prefix}%{share}/info' --mandir='%{prefix}%{share}/man'
+%else
+%define CONFIG_FLAGS --prefix=%prefix
+%endif
+
 Summary:    A Gtk+ based multiprotocol instant messaging client
 Name:       %{name}
 Version:    %{version}
@@ -35,7 +45,7 @@
 %setup
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --disable-artsc
+CFLAGS="$RPM_OPT_FLAGS" ./configure %{CONFIG_FLAGS} --disable-artsc
 make
 
 %install