]> git.pld-linux.org Git - packages/STonX.git/commitdiff
- now we have svgalib on all supported archs
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 27 Jun 2004 17:12:16 +0000 (17:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    STonX.spec -> 1.13

STonX.spec

index 51077d7f9df18c3730231a2837ee21d2650f27b7..f6acfd2fac0b05e2295d9f6ab3feee030a01fcfb 100644 (file)
@@ -1,12 +1,7 @@
 #
 # Conditional build:
 #
 # Conditional build:
-# _without_svga                without svgalib support
+%bcond_without svga    # without svgalib support
 #
 #
-
-%ifnarch %{ix86} alpha
-%define _without_svga 1
-%endif
-
 %define                tosarchname     tos206us.zip
 %define                tosfilename     Tos206.img
 
 %define                tosarchname     tos206us.zip
 %define                tosfilename     Tos206.img
 
@@ -26,7 +21,7 @@ Patch0:               %{name}-nox.patch
 Patch1:                %{name}-svga.patch
 URL:           http://www.complang.tuwien.ac.at/nino/stonx.html
 BuildRequires: XFree86-devel
 Patch1:                %{name}-svga.patch
 URL:           http://www.complang.tuwien.ac.at/nino/stonx.html
 BuildRequires: XFree86-devel
-%{!?_without_svga:BuildRequires:       svgalib-devel}
+%{?with_svga:BuildRequires:    svgalib-devel}
 BuildRequires: autoconf
 BuildRequires: unzip
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 BuildRequires: autoconf
 BuildRequires: unzip
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -34,12 +29,12 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 STonX is a software emulator, which runs on Unix workstations with the
 
 %description
 STonX is a software emulator, which runs on Unix workstations with the
-X Window system%{!?_without_svga: or svgalib}, and emulates an Atari
+X Window system%{?with_svga: or svgalib}, and emulates an Atari
 ST computer.
 
 %description -l pl
 STonX jest programowym emulatorem komputera Atari ST, dzia³aj±cym na
 ST computer.
 
 %description -l pl
 STonX jest programowym emulatorem komputera Atari ST, dzia³aj±cym na
-Uniksach z X Window System%{!?_without_svga: lub svgalib}.
+Uniksach z X Window System%{?with_svga: lub svgalib}.
 
 %prep
 %setup -q -a1
 
 %prep
 %setup -q -a1
@@ -55,7 +50,7 @@ mv -f %{tosfilename} tos.img
 %{__make} \
        OPT="%{rpmcflags}" \
        REGS="%{!?debug:-fomit-frame-pointer}" \
 %{__make} \
        OPT="%{rpmcflags}" \
        REGS="%{!?debug:-fomit-frame-pointer}" \
-       %{!?_without_svga:USE_SVGALIB=1}
+       %{?with_svga:USE_SVGALIB=1}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -70,7 +65,7 @@ cat > $RPM_BUILD_ROOT%{_bindir}/stonx <<EOF
 #!/bin/sh
 cd %{_libdir}/STonX
 
 #!/bin/sh
 cd %{_libdir}/STonX
 
-%{!?_without_svga:if [ -z "\$DISPLAY" ]; then exec ./stonx -svga ; fi}
+%{?with_svga:if [ -z "\$DISPLAY" ]; then exec ./stonx -svga ; fi}
 exec ./stonx
 EOF
 
 exec ./stonx
 EOF
 
This page took 0.050783 seconds and 4 git commands to generate.