2007-01-16 00:06:42 +01:00
|
|
|
#
|
2011-09-20 15:35:46 +02:00
|
|
|
# spec file for package cdk
|
2007-01-16 00:06:42 +01:00
|
|
|
#
|
2014-12-29 09:56:17 +01:00
|
|
|
# Copyright (c) 2014 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
|
|
|
#
|
|
|
|
|
2014-12-29 09:56:17 +01:00
|
|
|
%define lname lib%{name}5
|
|
|
|
%define mainver 5.0
|
|
|
|
%define datever 20141106
|
2009-03-25 22:47:09 +01:00
|
|
|
|
2007-03-29 11:49:57 +02:00
|
|
|
Name: cdk
|
2014-12-29 09:56:17 +01:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Url: http://invisible-island.net/cdk/
|
2011-10-02 17:39:20 +02:00
|
|
|
BuildRequires: libtool
|
2007-03-29 11:49:57 +02:00
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
Group: System/Libraries
|
2014-12-29 09:56:17 +01:00
|
|
|
Version: %{mainver}.%{datever}
|
|
|
|
Release: 0
|
2007-03-29 11:49:57 +02:00
|
|
|
Summary: The Runtime for the Curses Development Kit
|
2014-12-29 09:56:17 +01:00
|
|
|
Source: ftp://invisible-island.net/cdk-%{mainver}-%{datever}.tgz
|
2007-03-29 11:49:57 +02:00
|
|
|
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
|
|
|
|
2014-12-29 09:56:17 +01:00
|
|
|
%package -n %lname
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Summary: The Runtime for the Curses Development Kit - Shared library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
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 devel
|
|
|
|
License: BSD-3-Clause
|
2007-03-29 11:49:57 +02:00
|
|
|
Summary: Development Part of Curses Development Kit
|
|
|
|
Group: Development/Libraries/C and C++
|
2014-12-29 09:56:17 +01:00
|
|
|
Requires: %{lname} = %{version}
|
|
|
|
Requires: ncurses-devel
|
2007-01-16 00:06:42 +01:00
|
|
|
|
2014-12-29 09:56:17 +01:00
|
|
|
%description devel
|
2007-01-16 00:06:42 +01:00
|
|
|
This package includes the development headers and static libraries for
|
|
|
|
CDK, the Curses Development Kit.
|
|
|
|
|
|
|
|
%prep
|
2014-12-29 09:56:17 +01:00
|
|
|
%setup -q -n cdk-%{mainver}-%{datever}
|
2009-03-25 22:47:09 +01:00
|
|
|
|
|
|
|
%build
|
2014-12-29 09:56:17 +01:00
|
|
|
%configure --with-ncurses --enable-const
|
|
|
|
make cdkshlib %{?_smp_mflags}
|
2007-01-16 00:06:42 +01:00
|
|
|
|
|
|
|
%install
|
2014-12-29 09:56:17 +01:00
|
|
|
make install installCDKSHLibrary DESTDIR=%{buildroot} INSTALL="install -pD"
|
|
|
|
# fixes rpmlint unstripped-binary-or-object
|
|
|
|
chmod +x %{buildroot}%{_libdir}/*.so
|
|
|
|
find %{buildroot} -name '*.a' -delete -print
|
|
|
|
# Remove installed in wrong directory documentation files
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc
|
2007-01-16 00:06:42 +01:00
|
|
|
|
2014-12-29 09:56:17 +01:00
|
|
|
%post -n %lname
|
|
|
|
/sbin/ldconfig
|
2007-01-16 00:06:42 +01:00
|
|
|
|
2014-12-29 09:56:17 +01:00
|
|
|
%postun -n %lname
|
|
|
|
/sbin/ldconfig
|
2007-01-16 00:06:42 +01:00
|
|
|
|
2014-12-29 09:56:17 +01:00
|
|
|
%files -n %lname
|
2007-01-16 00:06:42 +01:00
|
|
|
%defattr(-,root,root)
|
2014-12-29 09:56:17 +01:00
|
|
|
%doc EXPANDING NOTES TODO COPYING README CHANGES VERSION
|
|
|
|
%{_libdir}/libcdk.so.5*
|
2007-01-16 00:06:42 +01:00
|
|
|
|
2014-12-29 09:56:17 +01:00
|
|
|
%files devel
|
2007-01-16 00:06:42 +01:00
|
|
|
%defattr(-,root,root)
|
2014-12-29 09:56:17 +01:00
|
|
|
%{_bindir}/cdk5-config
|
2007-01-16 00:06:42 +01:00
|
|
|
%{_libdir}/libcdk.so
|
2014-12-29 09:56:17 +01:00
|
|
|
%{_includedir}/%{name}
|
|
|
|
%{_includedir}/%{name}.h
|
|
|
|
%{_mandir}/man3/*.3.gz
|
2007-01-16 00:06:42 +01:00
|
|
|
|
2007-03-29 11:49:57 +02:00
|
|
|
%changelog
|