File mingw64-pdcurses.spec of Package mingw64-pdcurses
#
# spec file for package mingw64-pdcurses
#
# 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/
#
Name: mingw64-pdcurses
Version: 3.4
Release: 0
Summary: Curses library for MinGW
License: SUSE-Public-Domain
Group: Development/Libraries
Url: http://pdcurses.sourceforge.net/
Source0: http://dl.sourceforge.net/sourceforge/pdcurses/PDCurses-%{version}.tar.gz
#!BuildIgnore: post-build-checks
Patch0: mingw64-pdcurses-3.4-build.patch
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-filesystem >= 26
%_mingw64_package_header_debug
BuildArch: noarch
%description
PDCurses is a public domain curses library for DOS, OS/2, Win32, X11
and SDL, implementing most of the functions available in X/Open and
System V R4 curses. It supports many compilers for these
platforms. The X11 port lets you recompile existing text-mode curses
programs to produce native X11 applications.
Note that ncurses is not available for MinGW / Windows. Applications
which need curses functionality can use this package, provided they
don't use any of the extensions specific to ncurses.
%package devel
Summary: Curses library for MinGW
Group: Development/Libraries
%description devel
PDCurses is a public domain curses library for DOS, OS/2, Win32, X11
and SDL, implementing most of the functions available in X/Open and
System V R4 curses. It supports many compilers for these
platforms. The X11 port lets you recompile existing text-mode curses
programs to produce native X11 applications.
Note that ncurses is not available for MinGW / Windows. Applications
which need curses functionality can use this package, provided they
don't use any of the extensions specific to ncurses.
%package progs
Summary: Curses library for MinGW
Group: Development/Libraries
%description progs
PDCurses is a public domain curses library for DOS, OS/2, Win32, X11
and SDL, implementing most of the functions available in X/Open and
System V R4 curses. It supports many compilers for these
platforms. The X11 port lets you recompile existing text-mode curses
programs to produce native X11 applications.
Note that ncurses is not available for MinGW / Windows. Applications
which need curses functionality can use this package, provided they
don't use any of the extensions specific to ncurses.
%_mingw64_debug_package
%prep
%setup -q -n PDCurses-%{version}
%patch -P 0 -p1
%build
pushd win32
make -f mingwin32.mak \
CC=%{_mingw64_cc} \
LINK=%{_mingw64_cc} \
WIDE=Y UTF8=Y DLL=Y
popd
%install
mkdir -p %{buildroot}%{_mingw64_bindir}
mkdir -p %{buildroot}%{_mingw64_libdir}
mkdir -p %{buildroot}%{_mingw64_includedir}
install win32/*.exe %{buildroot}%{_mingw64_bindir}
install win32/pdcurses.dll %{buildroot}%{_mingw64_bindir}/pdcurses.dll
install win32/pdcurses.a %{buildroot}%{_mingw64_libdir}/libpdcurses.dll.a
install curses.h panel.h term.h %{buildroot}%{_mingw64_includedir}
%files
%defattr(-,root,root)
%{_mingw64_bindir}/pdcurses.dll
%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/libpdcurses.dll.a
%{_mingw64_includedir}/curses.h
%{_mingw64_includedir}/panel.h
%{_mingw64_includedir}/term.h
%files progs
%defattr(-,root,root)
%{_mingw64_bindir}/firework.exe
%{_mingw64_bindir}/newdemo.exe
%{_mingw64_bindir}/ptest.exe
%{_mingw64_bindir}/rain.exe
%{_mingw64_bindir}/testcurs.exe
%{_mingw64_bindir}/tuidemo.exe
%{_mingw64_bindir}/xmas.exe
%{_mingw64_bindir}/worm.exe
%changelog