]> git.pld-linux.org Git - packages/allegro.git/blobdiff - allegro.spec
- fixed for !ix86
[packages/allegro.git] / allegro.spec
index 35d52e6ab01f270ce33f7770769a951e401b768a..35b381f01d59a83a9d86bef8e40fb0cff0429b1f 100644 (file)
@@ -2,7 +2,7 @@ Summary:        A game programming library
 Summary(pl):   Biblioteka do programowania gier
 Name:          allegro
 Version:       4.0.1
-Release:       %{_rel}
+Release:       0.1
 License:       Giftware
 Group:         X11/Libraries
 Source0:       http://prdownloads.sourceforge.net/alleg/%{name}-%{version}.tar.gz
@@ -14,7 +14,9 @@ BuildRequires:        esound-devel
 %ifnarch sparc sparc64
 BuildRequires: alsa-lib-devel
 %endif
+%ifarch %{ix86}
 BuildRequires: svgalib-devel
+%endif
 BuildRequires: texinfo
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -149,11 +151,15 @@ ALSA.
 
 %build
 aclocal
-autoconf
+%{__autoconf}
 %configure \
        --enable-static \
        --enable-dbglib \
-       --enable-proflib
+       --enable-proflib \
+%ifnarch %{ix86}
+       --disable-vga \
+       --disable-linux
+%endif
        
 %{__make} MAKEINFO=makeinfo
 
@@ -199,9 +205,11 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_libdir}/*.a
 
+%ifarch %{ix86}
 %files svgalib
 %defattr(644,root,root,755)
 %{_libdir}/allegro/4.0/alleg-svgalib.so
+%endif
 
 %files dga2
 %defattr(644,root,root,755)
@@ -211,7 +219,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_libdir}/allegro/4.0/alleg-esddigi.so
 
-%ifnarch sparc sparc64
+%ifarch %{ix86}
 %files alsa
 %defattr(644,root,root,755)
 %{_libdir}/allegro/4.0/alleg-alsadigi.so
This page took 0.079378 seconds and 4 git commands to generate.