%define ver_ver 4.9.10 %define ver_release 20010106 Summary: Curses Development Kit Summary(pl): Zestaw programistyczny do Curses Name: cdk Version: %{ver_ver}_td%{ver_release} Release: 2 License: BSD Group: Libraries Group(de): Libraries Group(es): Bibliotecas Group(fr): Librairies Group(pl): Biblioteki Group(pt_BR): Bibliotecas Group(ru): âÉÂÌÉÏÔÅËÉ Group(uk): â¦Â̦ÏÔÅËÉ URL: http://dickey.his.com/cdk/cdk.html Source0: ftp://dickey.his.com/cdk/%{name}-%{ver_ver}-%{ver_release}.tgz Patch0: %{name}-includes.patch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description CDK is a widget set developed on top of the basic curses library. It contains 21 ready to use widgets. Some which are a text entry field, a scrolling list, a selection list, a alphalist, pull-down menu, radio list, viewer widget, dialog box, and many more. This version of CDK is maintained by Thomas Dickey and is not the same as that at http://www.vexus.ca/CDK.html. %description -l pl CDK to zestaw widgetów zbudowanych na podstawie biblioteki curses. Zawiera 21 gotowych go u¿ycia widgetów. W¶ród nich jest pole wprowadzania tekstu, lista przewijana, lista wyboru, lista alfabetyczna, menu rozwijane, lista przycisków, przegl±darka, okienko dialogowe i wiele innych. Ta wersja CDK jest prowadzona przez Thomasa Dickeya i nie jest tym samym, co znajduje siê pod adresem http://www.vexus.ca/CDK.html. %package devel Summary: Header files and development documentation for CDK library Summary(pl): Pliki nag³ówkowe i dokumentacja do CDK Group: Development/Libraries Group(de): Entwicklung/Libraries Group(es): Desarrollo/Bibliotecas Group(fr): Development/Librairies Group(pl): Programowanie/Biblioteki Group(pt_BR): Desenvolvimento/Bibliotecas Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ Requires: %{name} = %{version} %description devel Header files and development documentation for CDK library. This version is maintained by Thomas Dickey and is not the same as that at http://www.vexus.ca/CDK.html. %description devel -l pl Pliki nag³ówkowe i dokumentacja programisty do biblioteki CDK. Ta wersja jest prowadzona przez Thomasa Dickeya i nie jest tym samym, co znajduje siê pod adresem http://www.vexus.ca/CDK.html. %package static Summary: Static version of CDK library Summary(pl): Statyczna wersja biblioteki CDK Group: Development/Libraries Group(de): Entwicklung/Libraries Group(es): Desarrollo/Bibliotecas Group(fr): Development/Librairies Group(pl): Programowanie/Biblioteki Group(pt_BR): Desenvolvimento/Bibliotecas Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ Requires: %{name}-devel = %{version} %description static Static version of CDK library. This version is maintained by Thomas Dickey and is not the same as that at http://www.vexus.ca/CDK.html. %description static -l pl Statyczna wersja biblioteki CDK. Ta wersja jest prowadzona przez Thomasa Dickeya i nie jest tym samym, co znajduje siê pod adresem http://www.vexus.ca/CDK.html. %prep %setup -q -n %{name}-%{ver_ver}-%{ver_release} %patch0 -p1 mkdir include/cdk mv -f include/*.* include/cdk %build # -funsigned-char gives valid 8bit display CFLAGS="%{rpmcflags} -funsigned-char" %configure2_13 \ --disable-x \ --with-ncurses %{__make} %{__make} cdkshlib %install rm -rf $RPM_BUILD_ROOT %{__make} installCDKSHLibrary installCDKLibrary \ DESTDIR="$RPM_BUILD_ROOT" %{__make} installCDKHeaderFiles installCDKManPages \ DESTDIR="$RPM_BUILD_ROOT" gzip -9nf BUGS CHANGES EXPANDING NOTES README TODO for d in demos examples; do rm -f $d/Makefile.in mkf=$d/Makefile sed 's|\-I%{_prefix}/X11R6/include|\-I%{_includedir}/cdk/|' <$mkf >$mkf.fix mv -f $mkf.fix $mkf done %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/lib*.so.*.* %files devel %defattr(644,root,root,755) %doc *gz examples demos %attr(755,root,root) %{_libdir}/lib*.so %{_includedir}/* %{_mandir}/man3/* %files static %defattr(644,root,root,755) %{_libdir}/lib*.a