2 %define ver_release 20030418
4 Summary: Curses Development Kit
5 Summary(pl): Zestaw programistyczny do Curses
7 Version: %{ver_ver}_td%{ver_release}
11 Source0: ftp://dickey.his.com/cdk/%{name}-%{ver_ver}-%{ver_release}.tgz
12 # Source0-md5: 5733dd070dba41f8461de5d1f54a4471
13 Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
14 # Source1-md5: ae2a6fea526cc1c4407e547bda537a08
15 Patch0: %{name}-includes.patch
16 Patch1: %{name}-man_remove_dupl.patch
17 URL: http://dickey.his.com/cdk/cdk.html
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 CDK is a widget set developed on top of the basic curses library. It
22 contains 21 ready to use widgets. Some which are a text entry field, a
23 scrolling list, a selection list, a alphalist, pull-down menu, radio
24 list, viewer widget, dialog box, and many more.
26 This version of CDK is maintained by Thomas Dickey and is not the same
27 as that at http://www.vexus.ca/CDK.html.
30 CDK to zestaw widgetów zbudowanych na podstawie biblioteki curses.
31 Zawiera 21 gotowych go u¿ycia widgetów. W¶ród nich jest pole
32 wprowadzania tekstu, lista przewijana, lista wyboru, lista
33 alfabetyczna, menu rozwijane, lista przycisków, przegl±darka, okienko
34 dialogowe i wiele innych.
36 Ta wersja CDK jest prowadzona przez Thomasa Dickeya i nie jest tym
37 samym, co znajduje siê pod adresem http://www.vexus.ca/CDK.html.
40 Summary: Header files and development documentation for CDK library
41 Summary(pl): Pliki nag³ówkowe i dokumentacja do CDK
42 Group: Development/Libraries
43 Requires: %{name} = %{version}
44 Requires: ncurses-devel
47 Header files and development documentation for CDK library. This
48 version is maintained by Thomas Dickey and is not the same as that at
49 http://www.vexus.ca/CDK.html.
51 %description devel -l pl
52 Pliki nag³ówkowe i dokumentacja programisty do biblioteki CDK. Ta
53 wersja jest prowadzona przez Thomasa Dickeya i nie jest tym samym, co
54 znajduje siê pod adresem http://www.vexus.ca/CDK.html.
57 Summary: Static version of CDK library
58 Summary(pl): Statyczna wersja biblioteki CDK
59 Group: Development/Libraries
60 Requires: %{name}-devel = %{version}
63 Static version of CDK library. This version is maintained by Thomas
64 Dickey and is not the same as that at http://www.vexus.ca/CDK.html.
66 %description static -l pl
67 Statyczna wersja biblioteki CDK. Ta wersja jest prowadzona przez
68 Thomasa Dickeya i nie jest tym samym, co znajduje siê pod adresem
69 http://www.vexus.ca/CDK.html.
72 %setup -q -n %{name}-%{ver_ver}-%{ver_release}
78 # -funsigned-char gives valid 8bit display
79 CFLAGS="%{rpmcflags} -funsigned-char"
80 CPPFLAGS="-I/usr/include/ncurses"
88 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
91 %{__make} installCDKSHLibrary installCDKLibrary \
92 DESTDIR=$RPM_BUILD_ROOT
94 %{__make} installCDKHeaderFiles installCDKManPages \
95 DESTDIR=$RPM_BUILD_ROOT
97 bzcat %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
99 for d in demos examples; do
102 sed 's|\-I\.\..*/include |\-I%{_includedir}/cdk |' <$mkf >$mkf.fix
105 cp -rf demos examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
108 rm -rf $RPM_BUILD_ROOT
110 %post -p /sbin/ldconfig
111 %postun -p /sbin/ldconfig
114 %defattr(644,root,root,755)
115 %attr(755,root,root) %{_libdir}/lib*.so.*.*
118 %defattr(644,root,root,755)
119 %doc CHANGES COPYING EXPANDING NOTES README TODO
120 %attr(755,root,root) %{_libdir}/lib*.so
123 %{_examplesdir}/%{name}-%{version}
126 %defattr(644,root,root,755)