]>
Commit | Line | Data |
---|---|---|
4e8ad9ef | 1 | %define ver_ver 5.0 |
64edaeef | 2 | %define ver_release 20211216 |
84c6f48e | 3 | |
4 | Summary: Curses Development Kit | |
eb9cfbc6 | 5 | Summary(pl.UTF-8): Zestaw programistyczny do Curses |
84c6f48e | 6 | Name: cdk |
7 | Version: %{ver_ver}_td%{ver_release} | |
449826b5 | 8 | Release: 1 |
84c6f48e | 9 | License: BSD |
10 | Group: Libraries | |
273eaf32 | 11 | Source0: ftp://ftp.invisible-island.net/cdk/%{name}-%{ver_ver}-%{ver_release}.tgz |
64edaeef | 12 | # Source0-md5: 3ad412771b9193442a11ac0b983265b9 |
cd7ff42e | 13 | Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2 |
907ba97e | 14 | # Source1-md5: ae2a6fea526cc1c4407e547bda537a08 |
b392f5d9 AM |
15 | Patch0: %{name}-ncurses.patch |
16 | Patch1: %{name}-man.patch | |
273eaf32 | 17 | URL: http://invisible-island.net/cdk/cdk.html |
2f7e1b02 | 18 | BuildRequires: ncurses-devel |
84c6f48e | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | CDK is a widget set developed on top of the basic curses library. It | |
97926dfb | 23 | contains 21 ready to use widgets. Some which are a text entry field, a |
24 | scrolling list, a selection list, a alphalist, pull-down menu, radio | |
84c6f48e | 25 | list, viewer widget, dialog box, and many more. |
26 | ||
27 | This version of CDK is maintained by Thomas Dickey and is not the same | |
bf3b8c1b | 28 | as that at <http://www.vexus.ca/CDK.html>. |
84c6f48e | 29 | |
5ba658d1 JR |
30 | %description -l pl.UTF-8 |
31 | CDK to zestaw widgetów zbudowanych na podstawie biblioteki curses. | |
32 | Zawiera 21 gotowych go użycia widgetów. Wśród nich jest pole | |
9dcc3332 | 33 | wprowadzania tekstu, lista przewijana, lista wyboru, lista |
5ba658d1 | 34 | alfabetyczna, menu rozwijane, lista przycisków, przeglądarka, okienko |
9dcc3332 JB |
35 | dialogowe i wiele innych. |
36 | ||
37 | Ta wersja CDK jest prowadzona przez Thomasa Dickeya i nie jest tym | |
5ba658d1 | 38 | samym, co znajduje się pod adresem <http://www.vexus.ca/CDK.html>. |
9dcc3332 | 39 | |
84c6f48e | 40 | %package devel |
41 | Summary: Header files and development documentation for CDK library | |
eb9cfbc6 | 42 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do CDK |
84c6f48e | 43 | Group: Development/Libraries |
bf3b8c1b | 44 | Requires: %{name} = %{version}-%{release} |
656d9155 | 45 | Requires: ncurses-devel |
84c6f48e | 46 | |
47 | %description devel | |
48 | Header files and development documentation for CDK library. This | |
97926dfb | 49 | version is maintained by Thomas Dickey and is not the same as that at |
bf3b8c1b | 50 | <http://www.vexus.ca/CDK.html>. |
84c6f48e | 51 | |
5ba658d1 JR |
52 | %description devel -l pl.UTF-8 |
53 | Pliki nagłówkowe i dokumentacja programisty do biblioteki CDK. Ta | |
9dcc3332 | 54 | wersja jest prowadzona przez Thomasa Dickeya i nie jest tym samym, co |
5ba658d1 | 55 | znajduje się pod adresem <http://www.vexus.ca/CDK.html>. |
9dcc3332 | 56 | |
84c6f48e | 57 | %package static |
58 | Summary: Static version of CDK library | |
eb9cfbc6 | 59 | Summary(pl.UTF-8): Statyczna wersja biblioteki CDK |
84c6f48e | 60 | Group: Development/Libraries |
bf3b8c1b | 61 | Requires: %{name}-devel = %{version}-%{release} |
84c6f48e | 62 | |
63 | %description static | |
64 | Static version of CDK library. This version is maintained by Thomas | |
bf3b8c1b | 65 | Dickey and is not the same as that at <http://www.vexus.ca/CDK.html>. |
84c6f48e | 66 | |
5ba658d1 | 67 | %description static -l pl.UTF-8 |
9dcc3332 | 68 | Statyczna wersja biblioteki CDK. Ta wersja jest prowadzona przez |
5ba658d1 | 69 | Thomasa Dickeya i nie jest tym samym, co znajduje się pod adresem |
bf3b8c1b | 70 | <http://www.vexus.ca/CDK.html>. |
9dcc3332 | 71 | |
84c6f48e | 72 | %prep |
73 | %setup -q -n %{name}-%{ver_ver}-%{ver_release} | |
fa179a19 | 74 | %patch0 -p1 |
ac713a81 AM |
75 | %patch1 -p1 |
76 | ||
1f5d969d | 77 | ln -sf . include/cdk |
84c6f48e | 78 | |
79 | %build | |
fa179a19 | 80 | # -funsigned-char gives valid 8bit display |
00991611 | 81 | CFLAGS="%{rpmcflags} -funsigned-char" |
3c246155 | 82 | CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses" |
99663e6b | 83 | %configure2_13 \ |
97926dfb | 84 | --disable-x \ |
85 | --with-ncurses | |
84c6f48e | 86 | %{__make} |
87 | %{__make} cdkshlib | |
88 | ||
89 | %install | |
90 | rm -rf $RPM_BUILD_ROOT | |
1b6f2728 | 91 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
84c6f48e | 92 | |
97926dfb | 93 | %{__make} installCDKSHLibrary installCDKLibrary \ |
de1fa37b | 94 | DESTDIR=$RPM_BUILD_ROOT |
84c6f48e | 95 | |
97926dfb | 96 | %{__make} installCDKHeaderFiles installCDKManPages \ |
de1fa37b | 97 | DESTDIR=$RPM_BUILD_ROOT |
f0bc0bf3 | 98 | install include/cdk_test.h $RPM_BUILD_ROOT%{_includedir}/cdk |
97926dfb | 99 | |
3c246155 JB |
100 | /sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir} |
101 | ||
7ec873da | 102 | bzcat %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
cd7ff42e | 103 | |
81827b90 | 104 | for d in demos examples; do |
c4bcb4a5 | 105 | rm -f $d/Makefile.in |
106 | mkf=$d/Makefile | |
107 | sed 's|\-I\.\..*/include |\-I%{_includedir}/cdk |' <$mkf >$mkf.fix | |
108 | mv -f $mkf.fix $mkf | |
84c6f48e | 109 | done |
1b6f2728 | 110 | cp -rf demos examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
84c6f48e | 111 | |
84c6f48e | 112 | %clean |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
9dcc3332 JB |
115 | %post -p /sbin/ldconfig |
116 | %postun -p /sbin/ldconfig | |
117 | ||
84c6f48e | 118 | %files |
119 | %defattr(644,root,root,755) | |
3c246155 JB |
120 | %doc CHANGES COPYING EXPANDING NOTES README TODO |
121 | %attr(755,root,root) %{_libdir}/libcdk.so.*.* | |
122 | %attr(755,root,root) %ghost %{_libdir}/libcdk.so.5 | |
84c6f48e | 123 | |
124 | %files devel | |
125 | %defattr(644,root,root,755) | |
f0bc0bf3 | 126 | %attr(755,root,root) %{_bindir}/cdk5-config |
3c246155 | 127 | %attr(755,root,root) %{_libdir}/libcdk.so |
1f5d969d | 128 | %{_includedir}/cdk |
449826b5 | 129 | %{_includedir}/cdk.h |
64edaeef | 130 | %{_mandir}/man1/cdk5-config.1* |
449826b5 JB |
131 | %{_mandir}/man3/Beep.3* |
132 | %{_mandir}/man3/CDK*.3* | |
133 | %{_mandir}/man3/Cdk.3* | |
134 | %{_mandir}/man3/activateCDK*.3* | |
135 | %{_mandir}/man3/addCDK*.3* | |
136 | %{_mandir}/man3/alignxy.3* | |
137 | %{_mandir}/man3/attrbox.3* | |
138 | %{_mandir}/man3/baseName.3* | |
139 | %{_mandir}/man3/bindCDKObject.3* | |
140 | %{_mandir}/man3/boxWindow.3* | |
141 | %{_mandir}/man3/cdk.3* | |
142 | %{_mandir}/man3/cdk_*.3* | |
143 | %{_mandir}/man3/ceilCDK.3* | |
144 | %{_mandir}/man3/char2Chtype.3* | |
145 | %{_mandir}/man3/char2DisplayType.3* | |
146 | %{_mandir}/man3/checkCDKObjectBind.3* | |
147 | %{_mandir}/man3/checkForLink.3* | |
148 | %{_mandir}/man3/chlen.3* | |
149 | %{_mandir}/man3/chstrncpy.3* | |
150 | %{_mandir}/man3/chtype2Char.3* | |
151 | %{_mandir}/man3/chtype2String.3* | |
152 | %{_mandir}/man3/cleanCDK*.3* | |
153 | %{_mandir}/man3/cleanCdkTitle*.3* | |
154 | %{_mandir}/man3/cleanChar.3* | |
155 | %{_mandir}/man3/cleanChtype.3* | |
156 | %{_mandir}/man3/cmpStrChstr.3* | |
157 | %{_mandir}/man3/copyChar*.3* | |
158 | %{_mandir}/man3/copyChtype*.3* | |
159 | %{_mandir}/man3/deactivateCDK*.3* | |
160 | %{_mandir}/man3/deleteCDK*.3* | |
161 | %{_mandir}/man3/deleteCursesWindow.3* | |
162 | %{_mandir}/man3/deleteFileCB.3* | |
163 | %{_mandir}/man3/destroyCDK*.3* | |
164 | %{_mandir}/man3/dirName.3* | |
165 | %{_mandir}/man3/drawCDK*.3* | |
166 | %{_mandir}/man3/drawCdkTitle.3* | |
167 | %{_mandir}/man3/drawLine.3* | |
168 | %{_mandir}/man3/drawObjBox.3* | |
169 | %{_mandir}/man3/drawShadow.3* | |
170 | %{_mandir}/man3/dumpCDKSwindow*.3* | |
171 | %{_mandir}/man3/endCDK.3* | |
172 | %{_mandir}/man3/eraseCDK*.3* | |
173 | %{_mandir}/man3/eraseCursesWindow.3* | |
174 | %{_mandir}/man3/execCDKSwindow.3* | |
175 | %{_mandir}/man3/exitCancelCDKScreen*.3* | |
176 | %{_mandir}/man3/exitOKCDKScreen*.3* | |
177 | %{_mandir}/man3/floorCDK.3* | |
178 | %{_mandir}/man3/freeChar*.3* | |
179 | %{_mandir}/man3/freeChtype*.3* | |
180 | %{_mandir}/man3/getCDK*.3* | |
64edaeef | 181 | %{_mandir}/man3/getCdkTitle.3* |
449826b5 JB |
182 | %{_mandir}/man3/getDirectoryContents.3* |
183 | %{_mandir}/man3/getListIndex.3* | |
184 | %{_mandir}/man3/getString.3* | |
185 | %{_mandir}/man3/getcCDKObject.3* | |
186 | %{_mandir}/man3/getchCDKObject.3* | |
187 | %{_mandir}/man3/initCDK*.3* | |
188 | %{_mandir}/man3/injectCDK*.3* | |
189 | %{_mandir}/man3/insertCDK*.3* | |
190 | %{_mandir}/man3/intlen.3* | |
191 | %{_mandir}/man3/jumpToCell.3* | |
192 | %{_mandir}/man3/jumpToLineCDKSwindow.3* | |
193 | %{_mandir}/man3/justifyString.3* | |
194 | %{_mandir}/man3/lenCharList.3* | |
195 | %{_mandir}/man3/lenChtypeList.3* | |
196 | %{_mandir}/man3/loadCDKSwindowInformation.3* | |
197 | %{_mandir}/man3/lowerCDKObject.3* | |
198 | %{_mandir}/man3/mixCDKTemplate.3* | |
199 | %{_mandir}/man3/mode2Char.3* | |
200 | %{_mandir}/man3/mode2Filetype.3* | |
201 | %{_mandir}/man3/moveCDK*.3* | |
202 | %{_mandir}/man3/moveCursesWindow.3* | |
203 | %{_mandir}/man3/moveToCDKMatrixCell.3* | |
204 | %{_mandir}/man3/newCDK*.3* | |
205 | %{_mandir}/man3/popupDialog.3* | |
206 | %{_mandir}/man3/popupLabel*.3* | |
207 | %{_mandir}/man3/positionCDK*.3* | |
208 | %{_mandir}/man3/raiseCDKObject.3* | |
209 | %{_mandir}/man3/readFile.3* | |
210 | %{_mandir}/man3/refreshCDKScreen.3* | |
211 | %{_mandir}/man3/registerCDKObject.3* | |
212 | %{_mandir}/man3/removeCDKCalendarMarker.3* | |
213 | %{_mandir}/man3/resetCDKScreen*.3* | |
214 | %{_mandir}/man3/saveCDKSwindowInformation.3* | |
215 | %{_mandir}/man3/searchList.3* | |
216 | %{_mandir}/man3/selectFile.3* | |
217 | %{_mandir}/man3/setCDK*.3* | |
218 | %{_mandir}/man3/setCdkExitType.3* | |
219 | %{_mandir}/man3/setCdkTitle.3* | |
220 | %{_mandir}/man3/setWidgetDimension.3* | |
221 | %{_mandir}/man3/sortList.3* | |
222 | %{_mandir}/man3/splitString.3* | |
223 | %{_mandir}/man3/stripWhiteSpace.3* | |
224 | %{_mandir}/man3/traverseCDK*.3* | |
225 | %{_mandir}/man3/trimCDKSwindow.3* | |
226 | %{_mandir}/man3/unbindCDKObject.3* | |
227 | %{_mandir}/man3/unmixCDKTemplate.3* | |
228 | %{_mandir}/man3/unregisterCDKObject.3* | |
229 | %{_mandir}/man3/validCDKObject.3* | |
230 | %{_mandir}/man3/viewFile.3* | |
231 | %{_mandir}/man3/viewInfo.3* | |
232 | %{_mandir}/man3/waitCDKLabel.3* | |
233 | %{_mandir}/man3/writeBlanks.3* | |
234 | %{_mandir}/man3/writeChar*.3* | |
235 | %{_mandir}/man3/writeChtype*.3* | |
1f5d969d | 236 | %{_examplesdir}/%{name}-%{version} |
84c6f48e | 237 | |
238 | %files static | |
239 | %defattr(644,root,root,755) | |
3c246155 | 240 | %{_libdir}/libcdk.a |