SHA256
1
0
forked from pool/cdk
cdk/cdk.spec

89 lines
2.4 KiB
RPMSpec

#
# spec file for package cdk
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cdk
License: BSD3c(or similar)
BuildRequires: ncurses-devel
Group: System/Libraries
Version: 4.9.13
Release: 140
Summary: The Runtime for the Curses Development Kit
Source: cdk-4.9.13.tar.bz2
Patch: cdk-4.9.13.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
CDK is a widget set developed on top of the basic curses library. It
contains 21 ready to use widgets, some of which are: a text entry
field, a scrolling list, a selection list, an alphalist, a pull-down
menu, a radio list, a viewer widget, and a dialog box.
%package -n cdk-devel
License: BSD3c(or similar)
Summary: Development Part of Curses Development Kit
Group: Development/Libraries/C and C++
Requires: %{name} = %{version} ncurses-devel
%description -n cdk-devel
This package includes the development headers and static libraries for
CDK, the Curses Development Kit.
%prep
%setup -q
%patch -p0
%build
touch NEWS AUTHORS
ln -sf CHANGES ChangeLog
CFLAGS="${RPM_OPT_FLAGS} -pipe"
LDFLAGS=-s
CC=gcc
PATH=$PATH:.
export CFLAGS CC LDFLAGS PATH
%{?suse_update_config}
autoreconf --force --install
%configure --includedir=/usr/include/cdk \
--enable-shared \
--disable-static \
--with-gnu-ld \
--with-pic
%{__make} %{?smpflags}
%install
make DESTDIR=${RPM_BUILD_ROOT} install
%{__rm} -f %{buildroot}%{_libdir}/*.la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc BUGS EXPANDING NOTES TODO COPYING LICENSE INSTALL README CHANGES
%{_libdir}/libcdk.so.4.0.9
%{_libdir}/libcdk.so.4
%files -n cdk-devel
%defattr(-,root,root)
%{_libdir}/libcdk.so
/usr/include/cdk
/usr/share/man/man3/cdk_*.3.gz
%changelog