[mingw-pdcurses] Add mingw64.

corsepiu corsepiu at fedoraproject.org
Sat Apr 21 02:35:16 UTC 2012


commit 89474f386f21ade1c2bce8864c6f656c878cde06
Author: Ralf Corsépius <corsepiu at fedoraproject.org>
Date:   Sat Apr 21 04:33:15 2012 +0200

    Add mingw64.

 mingw-pdcurses.spec |   69 ++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 63 insertions(+), 6 deletions(-)
---
diff --git a/mingw-pdcurses.spec b/mingw-pdcurses.spec
index 0d9dae8..dfdf9c6 100644
--- a/mingw-pdcurses.spec
+++ b/mingw-pdcurses.spec
@@ -1,9 +1,8 @@
-%define __strip %{mingw32_strip}
-%define __objdump %{mingw32_objdump}
+%?mingw_package_header
 
 Name:           mingw-pdcurses
 Version:        3.4
-Release:        11%{?dist}
+Release:        12%{?dist}
 Summary:        Curses library for MinGW
 
 License:        Public Domain
@@ -13,12 +12,17 @@ Source0:        http://downloads.sourceforge.net/pdcurses/PDCurses-%{version}.ta
 
 BuildArch:      noarch
 
-Patch0:         mingw32-pdcurses-3.4-build.patch
+Patch0:         mingw-pdcurses-3.4-build.patch
 
-BuildRequires:  mingw32-filesystem
+BuildRequires:  mingw32-filesystem >= 95
 BuildRequires:  mingw32-gcc
 BuildRequires:  mingw32-binutils
 
+BuildRequires:  mingw64-filesystem >= 95
+BuildRequires:  mingw64-gcc
+BuildRequires:  mingw64-binutils
+
+%?mingw_debug_package
 
 %description
 PDCurses is a public domain curses library for DOS, OS/2, Win32, X11
@@ -33,7 +37,7 @@ don't use any of the extensions specific to ncurses.
 
 
 %package -n mingw32-pdcurses
-Summary:        Curses library for MinGW
+Summary:        Curses library for MinGW32
 
 %description -n mingw32-pdcurses
 PDCurses is a public domain curses library for DOS, OS/2, Win32, X11
@@ -46,20 +50,43 @@ 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 -n mingw64-pdcurses
+Summary:        Curses library for MinGW64
+
+%description -n mingw64-pdcurses
+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.
+
 
 %prep
 %setup -q -n PDCurses-%{version}
 %patch0 -p1
 
+cp -a win32 win64
 
 %build
 pushd win32
 make -f mingwin32.mak \
   CC=%{mingw32_cc} \
   LINK=%{mingw32_cc} \
+  STRIP=%{mingw32_strip} \
   WIDE=Y UTF8=Y DLL=Y
 popd
 
+pushd win64
+make -f mingwin32.mak \
+  CC=%{mingw64_cc} \
+  LINK=%{mingw64_cc} \
+  STRIP=%{mingw64_strip} \
+  WIDE=Y UTF8=Y DLL=Y
+popd
 
 %install
 mkdir -p $RPM_BUILD_ROOT%{mingw32_bindir}
@@ -72,6 +99,16 @@ install win32/pdcurses.a $RPM_BUILD_ROOT%{mingw32_libdir}/libpdcurses.dll.a
 install -m 0644 curses.h panel.h term.h $RPM_BUILD_ROOT%{mingw32_includedir}
 
 
+mkdir -p $RPM_BUILD_ROOT%{mingw64_bindir}
+mkdir -p $RPM_BUILD_ROOT%{mingw64_libdir}
+mkdir -p $RPM_BUILD_ROOT%{mingw64_includedir}
+
+install win64/*.exe $RPM_BUILD_ROOT%{mingw64_bindir}
+install win64/pdcurses.dll $RPM_BUILD_ROOT%{mingw64_bindir}/pdcurses.dll
+install win64/pdcurses.a $RPM_BUILD_ROOT%{mingw64_libdir}/libpdcurses.dll.a
+install -m 0644 curses.h panel.h term.h $RPM_BUILD_ROOT%{mingw64_includedir}
+
+
 %files -n mingw32-pdcurses
 %{mingw32_bindir}/pdcurses.dll
 %{mingw32_libdir}/libpdcurses.dll.a
@@ -87,8 +124,28 @@ install -m 0644 curses.h panel.h term.h $RPM_BUILD_ROOT%{mingw32_includedir}
 %{mingw32_bindir}/xmas.exe
 %{mingw32_bindir}/worm.exe
 
+%files -n mingw64-pdcurses
+%{mingw64_bindir}/pdcurses.dll
+%{mingw64_libdir}/libpdcurses.dll.a
+%{mingw64_includedir}/curses.h
+%{mingw64_includedir}/panel.h
+%{mingw64_includedir}/term.h
+%{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
+* Sat Apr 21 2012 Ralf Corsépius <corsepiu at fedoraproject.org> - 3.4-12
+- Add mingw64.
+- Rework patch.
+- Rename mingw32-pdcurses-3.4-build.patch into mingw-pdcurses-3.4-build.patch.
+
 * Wed Mar 07 2012 Kalev Lember <kalevlember at gmail.com> - 3.4-11
 - Renamed the source package to mingw-pdcurses (#801012)
 - Modernize the spec file


More information about the scm-commits mailing list