|
|
@@ -23,66 +23,57 @@
|
|
|
## SUCH DAMAGE.
|
|
|
##
|
|
|
|
|
|
+# version information
|
|
|
+%define V_maj 4.9.10
|
|
|
+%define V_min 20011230
|
|
|
+
|
|
|
# package information
|
|
|
Name: cdk
|
|
|
Summary: Curses Development Kit
|
|
|
-URL: http://www.vexus.ca/CDK.html
|
|
|
-Vendor: Mike Glover
|
|
|
+URL: http://invisible-island.net/cdk/cdk.html
|
|
|
+Vendor: Mike Glover, Thomas E. Dickey
|
|
|
Packager: The OpenPKG Project
|
|
|
Distribution: OpenPKG [EXP]
|
|
|
Group: Terminal
|
|
|
License: BSD
|
|
|
-Version: 4.9.10
|
|
|
-Release: 20020115
|
|
|
+Version: %{V_maj}.%{V_min}
|
|
|
+Release: 20020117
|
|
|
|
|
|
# list of sources
|
|
|
-Source0: http://www.vexus.ca/release/cdk.tar.gz
|
|
|
+Source0: ftp://invisible-island.net/cdk/cdk-%{V_maj}-%{V_min}.tgz
|
|
|
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
|
-BuildPreReq: OpenPKG, openpkg >= 20011227, ncurses, fileutils
|
|
|
-PreReq: OpenPKG, openpkg >= 20011227
|
|
|
+BuildPreReq: OpenPKG, openpkg >= 20011227, ncurses
|
|
|
+PreReq: OpenPKG, openpkg >= 20011227, ncurses
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
|
|
|
%description
|
|
|
- The Curses Development Kit is a library providing widgets for text based
|
|
|
- applications.
|
|
|
+ The Curses Development Kit (CDK) is a C library providing 21 reusable
|
|
|
+ NCurses widgets for implementing text based applications.
|
|
|
|
|
|
%prep
|
|
|
- %setup -q
|
|
|
+ %setup -q -n cdk-%{V_maj}-%{V_min}
|
|
|
|
|
|
%build
|
|
|
CC="%{l_cc}" \
|
|
|
CFLAGS="%{l_cflags -O}" \
|
|
|
+ CPPFLAGS="-I%{l_prefix}/include -I%{l_prefix}/include/ncurses" \
|
|
|
+ LDFLAGS="-L%{l_prefix}/lib" \
|
|
|
./configure \
|
|
|
- --prefix=%{l_prefix}
|
|
|
+ --prefix=%{l_prefix} \
|
|
|
+ --with-ncurses \
|
|
|
+ --without-x
|
|
|
%{l_make} %{l_mflags -O}
|
|
|
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
-
|
|
|
- # make install requires a basic set of directories
|
|
|
- %{l_shtool} mkdir -f -p -m 755 \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/include \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/lib \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/man/man3
|
|
|
-
|
|
|
- # installation
|
|
|
%{l_make} %{l_mflags} install \
|
|
|
- INSTALL=%{l_prefix}/bin/install \
|
|
|
- INSTALL_DIR=$RPM_BUILD_ROOT%{l_prefix}
|
|
|
-
|
|
|
- # clean up the installation
|
|
|
- for i in BUGS EXPANDING NOTES TODO COPYING INSTALL README; do
|
|
|
- rm -f $RPM_BUILD_ROOT%{l_prefix}/include/cdk/$i 2> /dev/null || true
|
|
|
- done
|
|
|
-
|
|
|
- # adjust permissions
|
|
|
- find $RPM_BUILD_ROOT%{l_prefix} -type d -exec chmod 755 {} \;
|
|
|
- find $RPM_BUILD_ROOT%{l_prefix} -type f -exec chmod 644 {} \;
|
|
|
-
|
|
|
+ DESTDIR=$RPM_BUILD_ROOT \
|
|
|
+ DOCUMENT_DIR=$RPM_BUILD_ROOT%{l_prefix}/share/cdk
|
|
|
+ rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/cdk
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
|
|
|
|
|
|
%files -f files
|