2 %define ver_release 20050424
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: 0e2cbebf5c8a7b5ad29008a3c245def3
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 Patch1: %{name}-ncurses.patch
17 URL: http://dickey.his.com/cdk/cdk.html
18 BuildRequires: ncurses-devel
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 CDK is a widget set developed on top of the basic curses library. It
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
25 list, viewer widget, dialog box, and many more.
27 This version of CDK is maintained by Thomas Dickey and is not the same
28 as that at <http://www.vexus.ca/CDK.html>.
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
33 wprowadzania tekstu, lista przewijana, lista wyboru, lista
34 alfabetyczna, menu rozwijane, lista przycisków, przegl±darka, okienko
35 dialogowe i wiele innych.
37 Ta wersja CDK jest prowadzona przez Thomasa Dickeya i nie jest tym
38 samym, co znajduje siê pod adresem <http://www.vexus.ca/CDK.html>.
41 Summary: Header files and development documentation for CDK library
42 Summary(pl): Pliki nag³ówkowe i dokumentacja do CDK
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
45 Requires: ncurses-devel
48 Header files and development documentation for CDK library. This
49 version is maintained by Thomas Dickey and is not the same as that at
50 <http://www.vexus.ca/CDK.html>.
52 %description devel -l pl
53 Pliki nag³ówkowe i dokumentacja programisty do biblioteki CDK. Ta
54 wersja jest prowadzona przez Thomasa Dickeya i nie jest tym samym, co
55 znajduje siê pod adresem <http://www.vexus.ca/CDK.html>.
58 Summary: Static version of CDK library
59 Summary(pl): Statyczna wersja biblioteki CDK
60 Group: Development/Libraries
61 Requires: %{name}-devel = %{version}-%{release}
64 Static version of CDK library. This version is maintained by Thomas
65 Dickey and is not the same as that at <http://www.vexus.ca/CDK.html>.
67 %description static -l pl
68 Statyczna wersja biblioteki CDK. Ta wersja jest prowadzona przez
69 Thomasa Dickeya i nie jest tym samym, co znajduje siê pod adresem
70 <http://www.vexus.ca/CDK.html>.
73 %setup -q -n %{name}-%{ver_ver}-%{ver_release}
80 # -funsigned-char gives valid 8bit display
81 CFLAGS="%{rpmcflags} -funsigned-char"
82 CPPFLAGS="-I/usr/include/ncurses"
90 rm -rf $RPM_BUILD_ROOT
91 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
93 %{__make} installCDKSHLibrary installCDKLibrary \
94 DESTDIR=$RPM_BUILD_ROOT
96 %{__make} installCDKHeaderFiles installCDKManPages \
97 DESTDIR=$RPM_BUILD_ROOT
99 bzcat %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
101 for d in demos examples; do
104 sed 's|\-I\.\..*/include |\-I%{_includedir}/cdk |' <$mkf >$mkf.fix
107 cp -rf demos examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
110 rm -rf $RPM_BUILD_ROOT
112 %post -p /sbin/ldconfig
113 %postun -p /sbin/ldconfig
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/lib*.so.*.*
120 %defattr(644,root,root,755)
121 %doc CHANGES COPYING EXPANDING NOTES README TODO
122 %attr(755,root,root) %{_libdir}/lib*.so
125 %{_examplesdir}/%{name}-%{version}
128 %defattr(644,root,root,755)