]> git.pld-linux.org Git - packages/AfterStep-APPS.git/blob - AfterStep-APPS.spec
69ea1463175b0d8b82e4b06a6b70ec9b2f1578be
[packages/AfterStep-APPS.git] / AfterStep-APPS.spec
1 Summary:        Applets you can use with AfterStep and compatible window managers
2 Summary(pl):    Aplety, których mo¿esz u¿ywaæ z AfterStepem oraz innymi zarz±dcami okien, które s± z nim kompatybilne
3 Name:           AfterStep-APPS
4 Version:        991125
5 Release:        4
6 License:        GPL
7 Group:          X11/Window Managers/Tools
8 Source0:        http://www.tigr.net/afterstep/download/as-apps-%{version}.tar
9 # Source0-md5:  9cdd656d4b2b36100cde4675602082b3
10 Patch0:         %{name}-1.5beta1-glibc.patch
11 Patch1:         xiterm-utmp.patch
12 Patch2:         as-apps-miniCHESS-change_install_dirs.patch
13 Patch3:         as-apps-ascd-configure_and_install_bugfix.patch
14 #Patch4:        ascp-paths.patch
15 #Patch5:        aterm-utemp.patch
16 Patch6:         %{name}-home_etc.patch
17 URL:            http://www.tigr.net/afterstep/
18 Requires:       /usr/sbin/utempter
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21
22 %description
23 What's a cool window manager without some cool applets? Well... it's
24 still cool, but these applets which can be used in the Wharf module
25 for AfterStep or Window Maker can add both spice and productivity to
26 your preferred window manager, such as a handy clock and information
27 about system resources.
28
29 If you've installed the AfterStep packages, you should also install
30 these packages. Enjoy!
31
32 %description -l pl
33 Czym jest fajny zarz±dca okien bez fajnych apletów? Có¿... jest nadal
34 fajnym zarz±dc± okien, ale aplety, które mog± byæ u¿ywane w module
35 Wharf AfterStepa lub Window Makera, mog³yby zwiêkszyæ efektywno¶æ i
36 efektowno¶æ twojego ulubionego zarz±dcy okien.
37
38 Je¿eli masz zainstalowanego AfterStepa to powiniene¶ zainstalowaæ
39 tak¿e ten pakiet. Mi³ej zabawy!
40
41 %prep
42 %setup -q -c
43 rm -f *.asc
44 for archive in *.tar.gz ; do
45         tar xzf $archive
46         rm -f $archive
47 done
48 %patch0 -p1
49 %patch1 -p1
50 %patch2 -p1
51 %patch3 -p1
52 #patch4
53 #patch5
54 %patch6 -p1
55
56 %build
57 mv ascd-0.12.1/ascd/themes/clean.tar ascd-0.12.1/ascd/themes/cleandir.tar
58 for package in `ls` ; do
59     cd $package
60     case $package in
61         ascd-* )
62             ./configure << EOF
63 /dev/cdrom
64 %{_bindir}
65 %{_mandir}/man1
66 %{_datadir}/afterstep/AScd
67 2
68 EOF
69             xmkmf
70             make Makefiles CXXDEBUGFLAGS="%{rpmcflags}" \
71                 CDEBUGFLAGS="%{rpmcflags}"
72             make MANDIR=%{_mandir}/man1 \
73                 BINDIR=%{_bindir} \
74                 SHLIBDIR=%{_libdir} \
75                 CXXDEBUGFLAGS="%{rpmcflags}" \
76                 CDEBUGFLAGS="%{rpmcflags}"
77             ;;
78
79         aterm* )
80             ## This program is provided by aterm rpm package.
81
82             # configure2_13 --enable-utmp
83             # make
84             ;;
85         asclock*)
86             CFLAGS="%{rpmcflags}" ./configure --prefix=%{_prefix} << EOF
87 classic
88
89 EOF
90              make CFLAGS="%{rpmcflags}"
91              ;;
92
93         ascp-* )
94
95             ## There is strange problem with this program.
96             ## The ./configure script tries to run /usr/local/bin/gtk-config
97             ## program. In PLD it should be %{_bindir}/gtk-config.
98             ##
99             ##    --with-gtk-prefix
100             ##    --with-gtk-exec-prefix
101             ## or --disable-gtktest
102             ## not help here. I don't now why.
103
104 # export LD_LIBRARY_PATH=%{_prefix}/
105             # configure2_13 \
106             #   --enable-i18n \
107             #   --x-includes=%{_includedir} \
108             #   --x-libraries=%{_libdir} \
109             #   --disable-gtktest
110 # --with-gtk-prefix=%{_prefix} \
111             #   --with-gtk-exec-prefix=%{_bindir}
112             # make
113             ;;
114
115         asfatm-* )
116             ## <sensors/sensors.h> is needed to compile this program.
117             ## I don't have it.
118
119             # cd asfatm
120             # make
121             ;;
122
123         asppp-* )
124             ## xpminit.c:7: dial.xpm: No such file or directory
125
126             # configure2_13
127             # make
128             ;;
129
130         miniCHESS-* )
131             #chess.c: In function `mouseGame':
132             #chess.c:1667: `fd_set' undeclared (first use in this function)
133             #chess.c:1667: (Each undeclared identifier is reported only once
134             #chess.c:1667: for each function it appears in.)
135             #chess.c:1667: parse error before `fdset'
136             #chess.c:1687: `fdset' undeclared (first use in this function)
137             #chess.c: In function `main':
138             #chess.c:1975: warning: return type of `main' is not `int'
139
140             #make
141             ;;
142
143         xiterm* )
144             ## You can try to build this program,
145             ## if only you have got utempter-devel.
146
147             # cough cough, hack hack -- ewt
148             # configure2_13 \
149             #   --enable-xpm-background \
150             #   --enable-utmp \
151             #   --enable-wtmp   \
152             #   --enable-menubar \
153             #   --enable-next-scroll
154             #    xmkmf
155             #    make Makefiles
156             #    cd src
157             #    sed -e "s/EXTRA_LIBRARIES =/EXTRA_LIBRARIES = -lutempter/" \
158             #       Makefile > Makefile.foo
159             #    sed -e "s/-lsocket //" Makefile.foo > Makefile
160             #    make CXXDEBUGFLAGS="%{rpmcflags}" \
161             #           CDEBUGFLAGS="%{rpmcflags}"
162             ;;
163
164         Tasks-*)
165             ## I think this program is not finished yet.
166             ## There is Makefile.in but I can't find anything to
167             ## create Makefile (there is no ./configure or configure.in)
168             ## I think that `mv Makefile.in Makefile' will be enough.
169             ## I will try this later.
170             ;;
171         xfascd-*)
172             ## I'll try to build this program later.
173             ;;
174
175         asmount* | asDrinks* | asbutton* | asdm* | aspbm* | aspostit* \
176         | ascdc-* | astuner* | ASFiles* | as[R-W]* | asfaces* | asmon* \
177         | astrash* | asxmcd* | asampmenu* | randbg-*)
178             ## We don't compile these
179             ;;
180
181         *)
182             #just about every other thing supports autoconf
183
184             %configure2_13
185             make
186             ;;
187     esac
188     cd ..
189 done
190
191 %install
192 rm -rf $RPM_BUILD_ROOT
193 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
194
195 for package in `ls` ; do
196     cd $package
197     case $package in
198
199         ascd-* )
200             make install install.man \
201                 AFTER_BIN_DIR=$RPM_BUILD_ROOT%{_bindir} \
202                 AFTER_MAN_DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
203                 MANDIR=%{_mandir}/man1 \
204                 BINDIR=%{_bindir} \
205                 SHLIBDIR=%{_libdir} \
206                 DESTDIR=$RPM_BUILD_ROOT
207             ;;
208
209         aterm*)
210             ## This program is provided by aterm.rpm package.
211
212             # make install \
213             #    AFTER_BIN_DIR=$RPM_BUILD_ROOT%{_bindir} \
214             #   AFTER_MAN_DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
215             #   DESTDIR=$RPM_BUILD_ROOT
216             ;;
217
218         xiterm*)
219             ## You can try to install this program,
220             ## if only you have got utempter-devel.
221             ## Don't forget build it first.
222
223
224             # make install install.man \
225             #   AFTER_BIN_DIR=$RPM_BUILD_ROOT%{_bindir} \
226             #   AFTER_MAN_DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
227             #   MANDIR=%{_mandir}/man1 \
228             #   BINDIR=%{_bindir} \
229             #   SHLIBDIR=%{_libdir} \
230             #   DESTDIR=$RPM_BUILD_ROOT
231             ;;
232
233         asfatm-*)
234             ## We don't install this.
235             ;;
236
237         ascp-*)
238             ## We do not install this. (If you want to know why check
239             ## the build section above).
240
241             # make install \
242             #   ASCP_BIN_DIR=$RPM_BUILD_ROOT%{_bindir} \
243             #   ASCP_MAN_DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
244             #   prefx=$RPM_BUILD_ROOT \
245             #   DESTDIR=$RPM_BUILD_ROOT
246             ;;
247
248         asppp-* | miniCHESS-* | Tasks-* | xfascd-*)
249             ## There were problems with these programs in build section.
250             ## We can not install it.
251             ;;
252         asmount* | asDrinks* | asbutton* | asdm* | aspbm* | aspostit* \
253         | ascdc-* | astuner* | ASFiles* | as[R-W]* | asfaces* | asmon* \
254         | astrash* | asxmcd* | asampmenu* | randbg-*)
255             ## We don't install these
256             ;;
257
258         *)
259             echo
260             make install install.man \
261                 AFTER_BIN_DIR=$RPM_BUILD_ROOT%{_bindir} \
262                 AFTER_MAN_DIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
263                 DESTDIR=$RPM_BUILD_ROOT
264             ;;
265     esac
266     cd ..
267 done
268 rm -f $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}/{sessreg,xpmroot,qplot}*
269
270 %clean
271 rm -rf $RPM_BUILD_ROOT
272
273 %post   -p /sbin/ldconfig
274 %postun -p /sbin/ldconfig
275
276 %files
277 %defattr(644,root,root,755)
278 %attr(755,root,root) %{_bindir}/*
279
280 %{_datadir}/afterstep/*
281 %{_mandir}/man1/*
282 /usr/X11R6/lib//*
This page took 0.090495 seconds and 3 git commands to generate.