[Freeciv-Dev] (PR#13562) fix for rpm-based build under Fedora Core 3
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: |
[Freeciv-Dev] (PR#13562) fix for rpm-based build under Fedora Core 3 |
From: |
"Michael Pope" <mpope@xxxxxxxxxxxx> |
Date: |
Fri, 29 Jul 2005 03:26:49 -0700 |
Reply-to: |
bugs@xxxxxxxxxxx |
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13562 >
The rpm-spec file generated from bootstrap/freeciv.spec.in from
freeciv 2.0.[2-4] is unsuitable for building rpm packages under Fedora
Core 3 (and almost certainly also earlier versions of Fedora, and
probably later). The problem is that it relies on the existance of
_games{bin,data}dir macros, which do not exist under Fedora--- games
live in the normal /usr tree. The following patch fixes this by
defining the missing macros to the _{bin,data}dir macros, but only if
they are not already defined.
Cheers,
Mike Pope
--
mpope@xxxxxxxxxxxx
--------------------
--- freeciv.spec.in.orig 2005-07-29 19:47:19.000000000 +0930
+++ freeciv.spec.in 2005-07-29 19:49:01.000000000 +0930
@@ -10,6 +10,10 @@
%define def_without() %{expand:%%{!?_with_%{1}: %%{!?_without_%{1}: %%global
_without_%{1} --without-%{1}}}}
%define if_with() %if %{expand:%%{?_with_%{1}:1}%%{!?_with_%{1}:0}}
+# Fedora Core does not have _games*dir. Supply fallbacks.
+%{!?_gamesbindir: %{expand:%%global _gamesbindir %%{_bindir}}}
+%{!?_gamesdatadir: %{expand:%%global _gamesdatadir %%{_datadir}}}
+
Summary: Turn-based strategy game, inspired by the commercial
Civilization series
Name: %{name}
Version: @VERSION_WITHOUT_LABEL@
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#13562) fix for rpm-based build under Fedora Core 3,
Michael Pope <=
|
|