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