2007-01-16 00:06:42 +01:00
|
|
|
#
|
|
|
|
# spec file for package cdk (Version 4.9.13)
|
|
|
|
#
|
2009-03-25 22:47:09 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:06:42 +01:00
|
|
|
#
|
2009-03-25 22:47:09 +01:00
|
|
|
# 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.
|
|
|
|
|
2007-03-29 11:49:57 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-16 00:06:42 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-03-25 22:47:09 +01:00
|
|
|
|
2007-03-29 11:49:57 +02:00
|
|
|
Name: cdk
|
2009-08-31 21:37:30 +02:00
|
|
|
License: BSD 3-clause (or similar)
|
2007-03-29 11:49:57 +02:00
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
Group: System/Libraries
|
2009-03-25 22:47:09 +01:00
|
|
|
AutoReqProv: on
|
2007-03-29 11:49:57 +02:00
|
|
|
Version: 4.9.13
|
2009-08-31 21:37:30 +02:00
|
|
|
Release: 139
|
2007-03-29 11:49:57 +02:00
|
|
|
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
|
2007-01-16 00:06:42 +01:00
|
|
|
|
|
|
|
%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
|
2007-03-29 11:49:57 +02:00
|
|
|
menu, a radio list, a viewer widget, and a dialog box.
|
2007-01-16 00:06:42 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Mike Glover <glover@credit.erin.utoronto.ca>
|
|
|
|
|
|
|
|
%package -n cdk-devel
|
2009-08-31 21:37:30 +02:00
|
|
|
License: BSD 3-clause (or similar)
|
2007-03-29 11:49:57 +02:00
|
|
|
Summary: Development Part of Curses Development Kit
|
|
|
|
Group: Development/Libraries/C and C++
|
2009-03-25 22:47:09 +01:00
|
|
|
Requires: %{name} = %{version} ncurses-devel
|
|
|
|
AutoReqProv: on
|
2007-01-16 00:06:42 +01:00
|
|
|
|
|
|
|
%description -n cdk-devel
|
|
|
|
This package includes the development headers and static libraries for
|
|
|
|
CDK, the Curses Development Kit.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Mike Glover <glover@credit.erin.utoronto.ca>
|
|
|
|
|
|
|
|
%prep
|
2009-03-25 22:47:09 +01:00
|
|
|
%setup -q
|
2009-08-31 21:37:30 +02:00
|
|
|
%patch -p0
|
2009-03-25 22:47:09 +01:00
|
|
|
|
|
|
|
%build
|
2007-01-16 00:06:42 +01:00
|
|
|
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
|
2009-03-25 22:47:09 +01:00
|
|
|
%configure --includedir=/usr/include/cdk \
|
2007-01-16 00:06:42 +01:00
|
|
|
--enable-shared \
|
2009-03-25 22:47:09 +01:00
|
|
|
--disable-static \
|
2007-01-16 00:06:42 +01:00
|
|
|
--with-gnu-ld \
|
2009-03-25 22:47:09 +01:00
|
|
|
--with-pic
|
|
|
|
%{__make} %{?jobs:-j%jobs}
|
2007-01-16 00:06:42 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=${RPM_BUILD_ROOT} install
|
2009-03-25 22:47:09 +01:00
|
|
|
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
2007-01-16 00:06:42 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2009-03-25 22:47:09 +01:00
|
|
|
%post -p /sbin/ldconfig
|
2007-01-16 00:06:42 +01:00
|
|
|
|
2009-03-25 22:47:09 +01:00
|
|
|
%postun -p /sbin/ldconfig
|
2007-01-16 00:06:42 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2007-03-29 11:49:57 +02:00
|
|
|
%changelog
|