1 Summary: Applets you can use with AfterStep and compatible window managers.
6 Group: X11/Applications
7 Source0: http://www.tigr.net/afterstep/as-apps/download/as-apps-%{version}.tar
8 Patch0: AfterStep-APPS-1.5beta1-glibc.patch
9 Patch1: ascp-paths.patch
10 Patch2: as-apps-compile.patch
11 Patch3: aterm-utmp.patch
12 Patch4: xiterm-utmp.patch
13 Prereq: /sbin/ldconfig
14 Requires: /usr/sbin/utempter
15 BuildRoot: /tmp/%{name}-%{version}-root
17 %define _prefix /usr/X11R6
18 %define _mandir /usr/X11R6/man
21 What's a cool window manager without some cool applets?
22 Well... it's still cool, but these applets which can
23 be used in the Wharf module for AfterStep or Window
24 Maker can add both spice and productivity to your
25 preferred window manager, such as a handy clock and
26 information about system resources.
28 If you've installed the AfterStep packages, you
29 should also install these packages. Enjoy!
34 for archive in *.tar.gz ; do
44 for package in `ls` ; do
56 patch -p2 -b --suffix .compile < %{PATCH2}
58 make Makefiles CXXDEBUGFLAGS="$RPM_OPT_FLAGS" \
59 CDEBUGFLAGS="$RPM_OPT_FLAGS"
60 make MANDIR=%{_mandir}/man1 \
63 CXXDEBUGFLAGS="$RPM_OPT_FLAGS" \
64 CDEBUGFLAGS="$RPM_OPT_FLAGS"
67 asmount* | asDrinks* | asbutton* | asdm* | aspbm* | aspostit* | ascdc-* | astuner* | ASFiles* | as[R-W]* | asfaces* | asmon* | astrash* | asxmcd* )
68 # we don't compile these
72 %configure --enable-utmp
77 # cough cough, hack hack -- ewt
79 --enable-xpm-background \
87 sed -e "s/EXTRA_LIBRARIES =/EXTRA_LIBRARIES = -lutempter/" \
88 Makefile > Makefile.foo
89 sed -e "s/-lsocket //" Makefile.foo > Makefile
90 make CXXDEBUGFLAGS="$RPM_OPT_FLAGS" \
91 CDEBUGFLAGS="$RPM_OPT_FLAGS"
94 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} << EOF
98 make CFLAGS="$RPM_OPT_FLAGS"
101 #just about every other thing supports autoconf
110 rm -rf $RPM_BUILD_ROOT
111 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
113 for package in `ls` ; do
117 make install install.man \
118 AFTER_BIN_DIR=$RPM_BUILD_ROOT%{_bindir} \
119 AFTER_MAN_DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
120 MANDIR=%{_mandir}/man1 \
122 SHLIBDIR=%{_libdir} \
123 DESTDIR=$RPM_BUILD_ROOT
126 asmount* | asDrinks* | asbutton* | asdm* | aspbm* | aspostit* | ascdc-* | astuner* | ASFiles* | as[R-W]* | asfaces* | asmon* | astrash* | asxmcd* )
127 # we don't install this
132 ASCP_BIN_DIR=$RPM_BUILD_ROOT%{_bindir} \
133 ASCP_MAN_DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
134 prefx=$RPM_BUILD_ROOT \
135 DESTDIR=$RPM_BUILD_ROOT
141 AFTER_BIN_DIR=$RPM_BUILD_ROOT%{_bindir} \
142 AFTER_MAN_DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
143 DESTDIR=$RPM_BUILD_ROOT
146 make install install.man \
147 AFTER_BIN_DIR=$RPM_BUILD_ROOT%{_bindir} \
148 AFTER_MAN_DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
149 DESTDIR=$RPM_BUILD_ROOT
154 rm -f $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}/{sessreg,xpmroot,qplot}*
155 strip --strip-unneeded $RPM_BUILD_ROOT%{_bindir}/*
157 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/*
160 rm -rf $RPM_BUILD_ROOT
162 %post -p /sbin/ldconfig
163 %postun -p /sbin/ldconfig
166 %defattr(644,root,root,755)
167 %attr(755,root,root) %{_bindir}/*
168 %{_datadir}/afterstep/*