SHA256
1
0
forked from pool/cdk
cdk/cdk.spec
Marcus Meissner fdf4aabf55 Accepting request 266388 from home:posophe:branches:security
- Update to version 5.0.20141106
  + Too many things to list; please read the changelog file
- Cleanup specfile
- Split out cdk library to a lib subpackage
- Update Url and source download Url
- Remove obsolete cdk-4.9.13.dif

OBS-URL: https://build.opensuse.org/request/show/266388
OBS-URL: https://build.opensuse.org/package/show/security/cdk?expand=0&rev=11
2014-12-29 08:56:17 +00:00

97 lines
3.0 KiB
RPMSpec

#
# spec file for package cdk
#
# Copyright (c) 2014 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/
#
%define lname lib%{name}5
%define mainver 5.0
%define datever 20141106
Name: cdk
License: BSD-3-Clause
Url: http://invisible-island.net/cdk/
BuildRequires: libtool
BuildRequires: ncurses-devel
Group: System/Libraries
Version: %{mainver}.%{datever}
Release: 0
Summary: The Runtime for the Curses Development Kit
Source: ftp://invisible-island.net/cdk-%{mainver}-%{datever}.tgz
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 %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
Summary: Development Part of Curses Development Kit
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}
Requires: ncurses-devel
%description devel
This package includes the development headers and static libraries for
CDK, the Curses Development Kit.
%prep
%setup -q -n cdk-%{mainver}-%{datever}
%build
%configure --with-ncurses --enable-const
make cdkshlib %{?_smp_mflags}
%install
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
%post -n %lname
/sbin/ldconfig
%postun -n %lname
/sbin/ldconfig
%files -n %lname
%defattr(-,root,root)
%doc EXPANDING NOTES TODO COPYING README CHANGES VERSION
%{_libdir}/libcdk.so.5*
%files devel
%defattr(-,root,root)
%{_bindir}/cdk5-config
%{_libdir}/libcdk.so
%{_includedir}/%{name}
%{_includedir}/%{name}.h
%{_mandir}/man3/*.3.gz
%changelog