1 Summary: Applets you can use with AfterStep and compatible window managers.
6 Group: User Interface/Desktops
7 BuildRoot: /var/tmp/afterstep-apps-root
8 Source0: http://www.tigr.net/afterstep/as-apps/download/as-apps-%{version}.tar
9 Patch0: AfterStep-APPS-1.5beta1-glibc.patch
10 Patch1: ascp-paths.patch
11 Patch2: as-apps-compile.patch
12 Patch3: aterm-utmp.patch
13 Patch4: xiterm-utmp.patch
14 Prereq: /sbin/ldconfig
15 Requires: /usr/sbin/utempter
18 What's a cool window manager without some cool applets?
19 Well... it's still cool, but these applets which can
20 be used in the Wharf module for AfterStep or Window
21 Maker can add both spice and productivity to your
22 preferred window manager, such as a handy clock and
23 information about system resources.
25 If you've installed the AfterStep packages, you
26 should also install these packages. Enjoy!
31 for archive in *.tar.gz ; do
38 %patch4 -p1 -b .xiutmp
41 for package in `ls` ; do
53 patch -p2 -b --suffix .compile < %{PATCH2}
56 make MANDIR=/usr/X11R6/man/man1 \
57 BINDIR=/usr/X11R6/bin \
58 SHLIBDIR=/usr/X11R6/lib \
61 asmount* | asDrinks* | asbutton* | asdm* | aspbm* | aspostit* | ascdc-* | astuner* | ASFiles* | as[R-W]* | asfaces* | asmon* | astrash* | asxmcd* )
62 # we don't compile these
66 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr/X11R6 \
72 # cough cough, hack hack -- ewt
73 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr/X11R6 \
74 --enable-xpm-background --enable-utmp --enable-wtmp \
75 --enable-menubar --enable-next-scroll
79 sed -e "s/EXTRA_LIBRARIES =/EXTRA_LIBRARIES = -lutempter/" \
80 Makefile > Makefile.foo
81 sed -e "s/-lsocket //" Makefile.foo > Makefile
85 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr/X11R6 << EOF
92 #just about every other thing supports autoconf
93 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr/X11R6 --datadir=/usr/share
102 rm -rf $RPM_BUILD_ROOT
103 mkdir -p $RPM_BUILD_ROOT/usr/X11R6/bin
104 mkdir -p $RPM_BUILD_ROOT/usr/X11R6/man/man1
106 for package in `ls` ; do
110 make install install.man \
111 AFTER_BIN_DIR=$RPM_BUILD_ROOT/usr/X11R6/bin \
112 AFTER_MAN_DIR=$RPM_BUILD_ROOT/usr/X11R6/man/man1 \
113 MANDIR=/usr/X11R6/man/man1 \
114 BINDIR=/usr/X11R6/bin \
115 SHLIBDIR=/usr/X11R6/lib \
116 DESTDIR=$RPM_BUILD_ROOT
119 asmount* | asDrinks* | asbutton* | asdm* | aspbm* | aspostit* | ascdc-* | astuner* | ASFiles* | as[R-W]* | asfaces* | asmon* | astrash* | asxmcd* )
120 # we don't install this
125 ASCP_BIN_DIR=$RPM_BUILD_ROOT/usr/X11R6/bin \
126 ASCP_MAN_DIR=$RPM_BUILD_ROOT/usr/X11R6/man/man1 \
127 prefx=$RPM_BUILD_ROOT \
128 DESTDIR=$RPM_BUILD_ROOT
134 AFTER_BIN_DIR=$RPM_BUILD_ROOT/usr/X11R6/bin \
135 AFTER_MAN_DIR=$RPM_BUILD_ROOT/usr/X11R6/man/man1 \
136 DESTDIR=$RPM_BUILD_ROOT
139 make install install.man \
140 AFTER_BIN_DIR=$RPM_BUILD_ROOT/usr/X11R6/bin \
141 AFTER_MAN_DIR=$RPM_BUILD_ROOT/usr/X11R6/man/man1 \
142 DESTDIR=$RPM_BUILD_ROOT
147 rm -f $RPM_BUILD_ROOT/usr/X11R6/{bin,man/man1}/{sessreg,xpmroot,qplot}*
148 strip $RPM_BUILD_ROOT/usr/X11R6/bin/*
151 rm -rf $RPM_BUILD_ROOT
153 %post -p /sbin/ldconfig
155 %postun -p /sbin/ldconfig
159 /usr/share/afterstep/*
160 /usr/X11R6/man/man1/*