]> git.pld-linux.org Git - packages/STonX.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 19 Mar 2006 17:50:57 +0000 (17:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    STonX.spec -> 1.14

STonX.spec

index f6acfd2fac0b05e2295d9f6ab3feee030a01fcfb..a33db4499be4c5568f39d5bfdc8f959c26417d55 100644 (file)
@@ -21,16 +21,16 @@ 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
-%{?with_svga:BuildRequires:    svgalib-devel}
 BuildRequires: autoconf
 BuildRequires: autoconf
+BuildRequires: rpmbuild(macros) >= 1.268
+%{?with_svga:BuildRequires:    svgalib-devel}
 BuildRequires: unzip
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 BuildRequires: unzip
 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%{?with_svga: or svgalib}, and emulates an Atari
-ST computer.
+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
 
 %description -l pl
 STonX jest programowym emulatorem komputera Atari ST, dzia³aj±cym na
@@ -61,11 +61,11 @@ install stonx tos.img cartridge.img Keysyms $RPM_BUILD_ROOT%{_libdir}/STonX
 gzip -9nf data/*.pcf
 install data/*.pcf.gz $RPM_BUILD_ROOT%{_fontsdir}/misc
 
 gzip -9nf data/*.pcf
 install data/*.pcf.gz $RPM_BUILD_ROOT%{_fontsdir}/misc
 
-cat > $RPM_BUILD_ROOT%{_bindir}/stonx <<EOF
+cat > $RPM_BUILD_ROOT%{_bindir}/stonx <<'EOF'
 #!/bin/sh
 cd %{_libdir}/STonX
 
 #!/bin/sh
 cd %{_libdir}/STonX
 
-%{?with_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
 
@@ -76,17 +76,13 @@ rm -rf $RPM_BUILD_ROOT
 if [ -x /usr/X11R6/bin/mkfontdir ]; then
        (cd /usr/share/fonts/misc; /usr/X11R6/bin/mkfontdir)
 fi
 if [ -x /usr/X11R6/bin/mkfontdir ]; then
        (cd /usr/share/fonts/misc; /usr/X11R6/bin/mkfontdir)
 fi
-if [ -f /var/lock/subsys/xfs ]; then
-       /etc/rc.d/init.d/xfs reload
-fi
+%service -q xfs reload
 
 %postun
 if [ -x /usr/X11R6/bin/mkfontdir ]; then
        (cd /usr/share/fonts/misc; /usr/X11R6/bin/mkfontdir)
 fi
 
 %postun
 if [ -x /usr/X11R6/bin/mkfontdir ]; then
        (cd /usr/share/fonts/misc; /usr/X11R6/bin/mkfontdir)
 fi
-if [ -f /var/lock/subsys/xfs ]; then
-       /etc/rc.d/init.d/xfs reload
-fi
+%service -q xfs reload
 
 %files
 %defattr(644,root,root,755)
 
 %files
 %defattr(644,root,root,755)
This page took 0.128074 seconds and 4 git commands to generate.