]> git.pld-linux.org Git - packages/gai.git/blobdiff - gai.spec
- with_rox BR: which
[packages/gai.git] / gai.spec
index 76aba693e82d848d743e7688f60d1216589cd5c0..3cb82925f921646591460ed701467515632de8ce 100644 (file)
--- a/gai.spec
+++ b/gai.spec
@@ -15,14 +15,16 @@ Group:              X11/Libraries
 Source0:       http://dl.sourceforge.net/sourceforge/gai/%{name}-%{version}.tar.bz2
 # Source0-md5: 29d90cb37fe5341009b27ffd09f871cb
 Patch0:                %{name}-opt.patch
+Patch1:                %{name}-libdir.patch
 URL:           http://gai.sourceforge.net/
 %{?with_sdl:BuildRequires:     SDL-devel >= 1.2}
 BuildRequires: autoconf >= 2.53
 %{?with_gl:BuildRequires:      gtkglext-devel >= 1.0}
 %{?with_gnome:BuildRequires:   gnome-panel-devel >= 2.4.0}
-BuildRequires: gtk+2-devel >= 2.0
+BuildRequires: gtk+2-devel >= 1:2.0
 BuildRequires: pkgconfig
 %{?with_rox:BuildRequires:     rox >= 2.1}
+%{?with_rox:BuildRequires:     which}
 BuildRequires: zlib-devel
 %{?with_gnome:Provides:        gai(gnome) = %{version}-%{release}}
 %{?with_rox:Provides:  gai(rox) = %{version}-%{release}}
@@ -66,6 +68,7 @@ Pliki nag
 %prep
 %setup -q 
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__autoconf}
@@ -76,13 +79,15 @@ Pliki nag
        %{!?with_sdl:--disable-sdl}
 
 %{__make} \
-       OPT="%{rpmcflags}"
+       OPT="%{rpmcflags} -fPIC"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
-       PREFIX=$RPM_BUILD_ROOT%{_prefix}
+       DESTDIR=$RPM_BUILD_ROOT \
+       PREFIX=%{_prefix} \
+       LIBDIR=%{_libdir}
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 cp -rf examples/[!C]* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
This page took 0.106483 seconds and 4 git commands to generate.