]> git.pld-linux.org Git - packages/AfterStep-APPS.git/blobdiff - AfterStep-APPS.spec
- removed two lines with define
[packages/AfterStep-APPS.git] / AfterStep-APPS.spec
index 6980b9de34ba60f37835c13f38b3f63e06e537d3..4d96f285eef1b5978f53a5fd64be652a366386a4 100644 (file)
@@ -5,19 +5,17 @@ Version:      991125
 Release:       4
 License:       GPL
 Group:         X11/Window Managers/Tools
-Source0:       http://www.tigr.net/afterstep/as-apps/download/as-apps-%{version}.tar
+Source0:       http://www.tigr.net/afterstep/download/as-apps-%{version}.tar
 Patch0:                %{name}-1.5beta1-glibc.patch
-Patch1:                xiterm-utmp.patch
-Patch2:         as-apps-miniCHESS-change_install_dirs.patch
-Patch3:         as-apps-ascd-configure_and_install_bugfix.patch
+Patch1:                xiterm-utmp.patch
+Patch2:                as-apps-miniCHESS-change_install_dirs.patch
+Patch3:                as-apps-ascd-configure_and_install_bugfix.patch
 #Patch4:        ascp-paths.patch
 #Patch5:        aterm-utemp.patch
-Prereq:                /sbin/ldconfig
+URL:           http://www.tigr.net/afterstep/
 Requires:      /usr/sbin/utempter
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _prefix         /usr/X11R6
-%define                _mandir         /usr/X11R6/man
 
 %description
 What's a cool window manager without some cool applets? Well... it's
@@ -54,14 +52,14 @@ done
 
 %build
 for package in `ls` ; do
-    cd $package 
+    cd $package
     case $package in
        ascd-* )
            ./configure << EOF
 /dev/cdrom
-/usr/X11R6/bin
-/usr/X11R6/share/man/man1
-/usr/X11R6/share/afterstep/AScd
+%{_bindir}
+%{_mandir}/man1
+%{_datadir}/afterstep/AScd
 2
 EOF
            xmkmf
@@ -89,24 +87,24 @@ EOF
             ;;
 
        ascp-* )
-           
-           ## There is strange problem with this program. 
+
+           ## There is strange problem with this program.
            ## The ./configure script tries to run /usr/local/bin/gtk-config
-           ## program. In PLD it should be /usr/X11R6/bin/gtk-config. 
-           ## 
-           ##    --with-gtk-prefix 
-           ##    --with-gtk-exec-prefix 
+           ## program. In PLD it should be %{_bindir}/gtk-config.
+           ##
+           ##    --with-gtk-prefix
+           ##    --with-gtk-exec-prefix
            ## or --disable-gtktest
            ## not help here. I don't now why.
 
-           # export LD_LIBRARY_PATH=/usr/X11R6/
+# export LD_LIBRARY_PATH=%{_prefix}/
            # configure2_13 \
            #   --enable-i18n \
-           #   --x-includes=/usr/X11R6/include \
-           #   --x-libraries=/usr/X11R6/lib \
-           #   --disable-gtktest 
-            #  --with-gtk-prefix=/usr/X11R6 \
-            #  --with-gtk-exec-prefix=/usr/X11R6/bin
+           #   --x-includes=%{_includedir} \
+           #   --x-libraries=%{_libdir} \
+           #   --disable-gtktest
+# --with-gtk-prefix=%{_prefix} \
+            #  --with-gtk-exec-prefix=%{_bindir}
            # make
            ;;
 
@@ -119,11 +117,11 @@ EOF
            ;;
 
        asppp-* )
-           ## xpminit.c:7: dial.xpm: No such file or directory 
+           ## xpminit.c:7: dial.xpm: No such file or directory
 
            # configure2_13
            # make
-           ;;      
+           ;;
 
        miniCHESS-* )
            #chess.c: In function `mouseGame':
@@ -191,7 +189,7 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
 
 for package in `ls` ; do
-    cd $package 
+    cd $package
     case $package in
 
        ascd-* )
@@ -201,7 +199,7 @@ for package in `ls` ; do
                MANDIR=%{_mandir}/man1 \
                BINDIR=%{_bindir} \
                SHLIBDIR=%{_libdir} \
-               DESTDIR=$RPM_BUILD_ROOT 
+               DESTDIR=$RPM_BUILD_ROOT
            ;;
 
        aterm*)
@@ -225,7 +223,7 @@ for package in `ls` ; do
            #   MANDIR=%{_mandir}/man1 \
            #   BINDIR=%{_bindir} \
            #   SHLIBDIR=%{_libdir} \
-           #   DESTDIR=$RPM_BUILD_ROOT 
+           #   DESTDIR=$RPM_BUILD_ROOT
            ;;
 
        asfatm-*)
@@ -234,7 +232,7 @@ for package in `ls` ; do
 
         ascp-*)
            ## We do not install this. (If you want to know why check
-           ## the build section above). 
+           ## the build section above).
 
            # make install \
            #   ASCP_BIN_DIR=$RPM_BUILD_ROOT%{_bindir} \
@@ -268,8 +266,8 @@ rm -f $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}/{sessreg,xpmroot,qplot}*
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
This page took 0.034693 seconds and 4 git commands to generate.