-%define ver_ver 4.9.10
-%define ver_release 20030418
+%define ver_ver 5.0
+%define ver_release 20050424
Summary: Curses Development Kit
Summary(pl): Zestaw programistyczny do Curses
Name: cdk
Version: %{ver_ver}_td%{ver_release}
-Release: 1
+Release: 3
License: BSD
Group: Libraries
-URL: http://dickey.his.com/cdk/cdk.html
Source0: ftp://dickey.his.com/cdk/%{name}-%{ver_ver}-%{ver_release}.tgz
-# Source0-md5: 5733dd070dba41f8461de5d1f54a4471
+# Source0-md5: 0e2cbebf5c8a7b5ad29008a3c245def3
Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
# Source1-md5: ae2a6fea526cc1c4407e547bda537a08
-Patch0: %{name}-includes.patch
-Patch1: %{name}-man_remove_dupl.patch
+Patch0: %{name}-man_remove_dupl.patch
+Patch1: %{name}-ncurses.patch
+URL: http://dickey.his.com/cdk/cdk.html
+BuildRequires: ncurses-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
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.
+as that at <http://www.vexus.ca/CDK.html>.
%description -l pl
CDK to zestaw widgetów zbudowanych na podstawie biblioteki curses.
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.
+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
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
Requires: ncurses-devel
%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.
+<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.
+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
-Requires: %{name}-devel = %{version}
+Requires: %{name}-devel = %{version}-%{release}
%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.
+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.
+<http://www.vexus.ca/CDK.html>.
%prep
%setup -q -n %{name}-%{ver_ver}-%{ver_release}
%patch0 -p1
%patch1 -p1
+
ln -sf . include/cdk
%build
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%{__make} installCDKSHLibrary installCDKLibrary \
- DESTDIR="$RPM_BUILD_ROOT"
+ DESTDIR=$RPM_BUILD_ROOT
%{__make} installCDKHeaderFiles installCDKManPages \
- DESTDIR="$RPM_BUILD_ROOT"
+ DESTDIR=$RPM_BUILD_ROOT
-bzcat %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT/%{_mandir}
+bzcat %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
for d in demos examples; do
- rm -f $d/Makefile.in
- mkf=$d/Makefile
- sed 's|\-I\.\..*/include |\-I%{_includedir}/cdk |' <$mkf >$mkf.fix
- mv -f $mkf.fix $mkf
+ rm -f $d/Makefile.in
+ mkf=$d/Makefile
+ sed 's|\-I\.\..*/include |\-I%{_includedir}/cdk |' <$mkf >$mkf.fix
+ mv -f $mkf.fix $mkf
done
cp -rf demos examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}