2 %define ver_release 20031210
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: 3ceba51c3aa0bc526962f54f86ef616a
13 Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
14 # Source1-md5: ae2a6fea526cc1c4407e547bda537a08
15 Patch0: %{name}-man_remove_dupl.patch
16 URL: http://dickey.his.com/cdk/cdk.html
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 CDK is a widget set developed on top of the basic curses library. It
21 contains 21 ready to use widgets. Some which are a text entry field, a
22 scrolling list, a selection list, a alphalist, pull-down menu, radio
23 list, viewer widget, dialog box, and many more.
25 This version of CDK is maintained by Thomas Dickey and is not the same
26 as that at http://www.vexus.ca/CDK.html.
29 CDK to zestaw widgetów zbudowanych na podstawie biblioteki curses.
30 Zawiera 21 gotowych go u¿ycia widgetów. W¶ród nich jest pole
31 wprowadzania tekstu, lista przewijana, lista wyboru, lista
32 alfabetyczna, menu rozwijane, lista przycisków, przegl±darka, okienko
33 dialogowe i wiele innych.
35 Ta wersja CDK jest prowadzona przez Thomasa Dickeya i nie jest tym
36 samym, co znajduje siê pod adresem http://www.vexus.ca/CDK.html.
39 Summary: Header files and development documentation for CDK library
40 Summary(pl): Pliki nag³ówkowe i dokumentacja do CDK
41 Group: Development/Libraries
42 Requires: %{name} = %{version}
43 Requires: ncurses-devel
46 Header files and development documentation for CDK library. This
47 version is maintained by Thomas Dickey and is not the same as that at
48 http://www.vexus.ca/CDK.html.
50 %description devel -l pl
51 Pliki nag³ówkowe i dokumentacja programisty do biblioteki CDK. Ta
52 wersja jest prowadzona przez Thomasa Dickeya i nie jest tym samym, co
53 znajduje siê pod adresem http://www.vexus.ca/CDK.html.
56 Summary: Static version of CDK library
57 Summary(pl): Statyczna wersja biblioteki CDK
58 Group: Development/Libraries
59 Requires: %{name}-devel = %{version}
62 Static version of CDK library. This version is maintained by Thomas
63 Dickey and is not the same as that at http://www.vexus.ca/CDK.html.
65 %description static -l pl
66 Statyczna wersja biblioteki CDK. Ta wersja jest prowadzona przez
67 Thomasa Dickeya i nie jest tym samym, co znajduje siê pod adresem
68 http://www.vexus.ca/CDK.html.
71 %setup -q -n %{name}-%{ver_ver}-%{ver_release}
76 # -funsigned-char gives valid 8bit display
77 CFLAGS="%{rpmcflags} -funsigned-char"
78 CPPFLAGS="-I/usr/include/ncurses"
86 rm -rf $RPM_BUILD_ROOT
87 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
89 %{__make} installCDKSHLibrary installCDKLibrary \
90 DESTDIR=$RPM_BUILD_ROOT
92 %{__make} installCDKHeaderFiles installCDKManPages \
93 DESTDIR=$RPM_BUILD_ROOT
95 bzcat %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
97 for d in demos examples; do
100 sed 's|\-I\.\..*/include |\-I%{_includedir}/cdk |' <$mkf >$mkf.fix
103 cp -rf demos examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
106 rm -rf $RPM_BUILD_ROOT
108 %post -p /sbin/ldconfig
109 %postun -p /sbin/ldconfig
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_libdir}/lib*.so.*.*
116 %defattr(644,root,root,755)
117 %doc CHANGES COPYING EXPANDING NOTES README TODO
118 %attr(755,root,root) %{_libdir}/lib*.so
121 %{_examplesdir}/%{name}-%{version}
124 %defattr(644,root,root,755)