# HG changeset patch # User Christian Hammond # Date 1035220381 0 # Node ID 643d1bdc76a9df7efb1a17a755f74b15eaf6133c # Parent 3e47ffcbf805d5ebd1b05992995afbbab8b61d62 [gaim-migrate @ 3914] Er. I think this will work better. committer: Tailor Script diff -r 3e47ffcbf805 -r 643d1bdc76a9 gaim.spec.in --- 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