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

98 lines
3.1 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
Url: http://invisible-island.net/cdk/
BuildRequires: libtool
BuildRequires: ncurses-devel
Version: %{mainver}.%{datever}
Release: 0
Summary: The Runtime for the Curses Development Kit
License: BSD-3-Clause
Group: System/Libraries
Source: ftp://invisible-island.net/cdk/cdk-%{mainver}-%{datever}.tgz
Source1: ftp://invisible-island.net/cdk/cdk-%{mainver}-%{datever}.tgz.asc
Source2: %name.keyring
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
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
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