aboutsummaryrefslogtreecommitdiffhomepage
path: root/fish.spec.in
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-03-30 07:33:30 +1000
committerGravatar axel <axel@liljencrantz.se>2006-03-30 07:33:30 +1000
commit850aa1963f68e9012394e37fa8aec0a7b4f0cbb2 (patch)
tree83c3e94aaabd26dbc0387c09d120116f191f652b /fish.spec.in
parent185d0c3c1c782d0f6e96057b3f23b77844acd68e (diff)
Change rpm .spec file so it will work both on systems that install X headers in /usr/include and /usr/X11R6/include
darcs-hash:20060329213330-ac50b-b478b18ae9aeb070ade5176c9813ffb74ac7006e.gz
Diffstat (limited to 'fish.spec.in')
-rw-r--r--fish.spec.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/fish.spec.in b/fish.spec.in
index a7c9802f..5dbe5cb8 100644
--- a/fish.spec.in
+++ b/fish.spec.in
@@ -1,3 +1,5 @@
+%define xinclude %( if test -d /usr/X11R6/include; then echo /usr/X11R6/include; else echo /usr/include; fi )
+
Summary: A friendly interactive shell
Name: @PACKAGE_NAME@
@@ -11,8 +13,9 @@ URL: http://roo.no-ip.org/fish/
Source0: http://roo.no-ip.org/%{name}/files/%{version}/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: doxygen ncurses-devel xorg-x11-devel
-
+BuildRequires: doxygen ncurses-devel
+BuildRequires: %{xinclude}/X11/StringDefs.h, %{xinclude}/X11/Xlib.h
+BuildRequires: %{xinclude}/X11/Intrinsic.h, %{xinclude}/X11/Xatom.h