File cdk.spec of Package cdk-5
#
# spec file for package cdk
#
# Copyright (c) Mike Glover, 1995, 1996, 1997, 1998, 1999
# Modifications Copyright (c) Thomas Dickey 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
#
# 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 bug-ncurses@gnu.org
#
# norootforbuild
Summary: Curses Development Kit
%define AppProgram cdk
%define AppVersion 5.0
%define AppRelease 20120323
Name: %{AppProgram}
Version: %{AppVersion}
Release: %{AppRelease}
License: BSD (4-clause)
Group: Development/Libraries
URL: http://invisible-island.net/%{name}/
Source0: %{name}-%{version}-%{AppRelease}.tgz
# BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ncurses-devel
%description
Cdk stands for "Curses Development Kit". It contains a large number of ready
to use widgets which facilitate the speedy development of full screen curses
programs.
%package -n libcdk5
Summary: Curses Development Kit
Group: Development/Libraries
%description -n libcdk5
Curses Development Kit
%package -n libcdk5-devel
Summary: Curses Development Kit
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description -n libcdk5-devel
Development headers for cdk (Curses Development Kit)
%prep
%setup -q -n %{name}-%{version}-%{AppRelease}
%build
%configure
#make %{?_smp_mflags} cdkshlib
make cdkshlib
%install
rm -rf $RPM_BUILD_ROOT
make install installCDKSHLibrary DESTDIR=$RPM_BUILD_ROOT
rm -fr $RPM_BUILD_ROOT%{_defaultdocdir} # we don't need this
chmod +x $RPM_BUILD_ROOT%{_libdir}/*.so # fixes rpmlint unstripped-binary-or-object
%{__mv} $RPM_BUILD_ROOT%{_includedir}/cdk.h $RPM_BUILD_ROOT%{_includedir}/cdk
%clean
#rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -n libcdk5
%defattr(-,root,root,-)
%doc CHANGES COPYING INSTALL NOTES README VERSION
%{_libdir}/*.so.*
%exclude %{_libdir}/*.a
%{_mandir}/man3/*
%{_datadir}/doc/cdk
%files -n libcdk5-devel
%defattr(-,root,root,-)
%doc EXPANDING TODO examples demos
%{_libdir}/*.so
%{_bindir}/cdk5-config
#%%{_includedir}/%{name}.h
%{_includedir}/%{name}
%changelog
* Sat Jan 19 2013 Christopher Lang <christopher.lang@acurana.de> %{version}-%{AppRelease}
- modified spec file to work on OBS
* Tue Mar 20 2012 Thomas E. Dickey
- install cdk.h in normal location
* Fri May 13 2011 Thomas E. Dickey
- parameterize/adapt to building from unpatched sources as part of test builds
* Sun Jan 4 2009 Marek Mahut <mmahut@fedoraproject.org> - 5.0.20081105-1
- Initial build