Merge git://pkgs.fedoraproject.org/mingw32-pdcurses
This commit is contained in:
commit
268ff2f171
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
PDCurses-3.4.tar.gz
|
54
mingw32-pdcurses-3.4-build.patch
Normal file
54
mingw32-pdcurses-3.4-build.patch
Normal file
@ -0,0 +1,54 @@
|
||||
--- PDCurses-3.4/win32/mingwin32.mak.orig 2008-09-25 15:30:14.000000000 +0100
|
||||
+++ PDCurses-3.4/win32/mingwin32.mak 2008-09-25 15:43:50.000000000 +0100
|
||||
@@ -30,8 +30,8 @@
|
||||
|
||||
CFLAGS += -I$(PDCURSES_SRCDIR)
|
||||
|
||||
-BASEDEF = $(PDCURSES_SRCDIR)\exp-base.def
|
||||
-WIDEDEF = $(PDCURSES_SRCDIR)\exp-wide.def
|
||||
+BASEDEF = $(PDCURSES_SRCDIR)/exp-base.def
|
||||
+WIDEDEF = $(PDCURSES_SRCDIR)/exp-wide.def
|
||||
|
||||
DEFDEPS = $(BASEDEF)
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
ifeq ($(DLL),Y)
|
||||
CFLAGS += -DPDC_DLL_BUILD
|
||||
- LIBEXE = gcc $(DEFFILE)
|
||||
+ LIBEXE = i686-w64-mingw32-gcc $(DEFFILE)
|
||||
LIBFLAGS = -Wl,--out-implib,pdcurses.a -shared -o
|
||||
LIBCURSES = pdcurses.dll
|
||||
LIBDEPS = $(LIBOBJS) $(PDCOBJS) $(DEFFILE)
|
||||
@@ -70,24 +70,24 @@
|
||||
libs: $(LIBCURSES)
|
||||
|
||||
clean:
|
||||
- -del *.o
|
||||
- -del *.exe
|
||||
- -del $(CLEAN)
|
||||
+ -rm *.o
|
||||
+ -rm *.exe
|
||||
+ -rm $(CLEAN)
|
||||
|
||||
demos: $(DEMOS)
|
||||
- strip *.exe
|
||||
+ i686-w64-mingw32-strip *.exe
|
||||
|
||||
$(DEFFILE): $(DEFDEPS)
|
||||
echo LIBRARY pdcurses > $@
|
||||
echo EXPORTS >> $@
|
||||
- type $(BASEDEF) >> $@
|
||||
+ cat $(BASEDEF) >> $@
|
||||
ifeq ($(WIDE),Y)
|
||||
- type $(WIDEDEF) >> $@
|
||||
+ cat $(WIDEDEF) >> $@
|
||||
endif
|
||||
|
||||
$(LIBCURSES) : $(LIBDEPS)
|
||||
$(LIBEXE) $(LIBFLAGS) $@ $?
|
||||
- -copy pdcurses.a panel.a
|
||||
+ -cp pdcurses.a panel.a
|
||||
|
||||
$(LIBOBJS) $(PDCOBJS) : $(PDCURSES_HEADERS)
|
||||
$(PDCOBJS) : $(PDCURSES_WIN_H)
|
117
mingw32-pdcurses.spec
Normal file
117
mingw32-pdcurses.spec
Normal file
@ -0,0 +1,117 @@
|
||||
%define __strip %{_mingw32_strip}
|
||||
%define __objdump %{_mingw32_objdump}
|
||||
%define _use_internal_dependency_generator 0
|
||||
%define __find_requires %{_mingw32_findrequires}
|
||||
%define __find_provides %{_mingw32_findprovides}
|
||||
|
||||
Name: mingw32-pdcurses
|
||||
Version: 3.4
|
||||
Release: 10%{?dist}
|
||||
Summary: Curses library for MinGW
|
||||
|
||||
License: Public Domain
|
||||
Group: Development/Libraries
|
||||
URL: http://pdcurses.sourceforge.net/
|
||||
Source0: http://downloads.sourceforge.net/pdcurses/PDCurses-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
Patch0: mingw32-pdcurses-3.4-build.patch
|
||||
|
||||
BuildRequires: mingw32-filesystem >= 49
|
||||
BuildRequires: mingw32-gcc
|
||||
BuildRequires: mingw32-binutils
|
||||
|
||||
|
||||
%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.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n PDCurses-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
|
||||
%build
|
||||
pushd win32
|
||||
make -f mingwin32.mak \
|
||||
CC=%{_mingw32_cc} \
|
||||
LINK=%{_mingw32_cc} \
|
||||
WIDE=Y UTF8=Y DLL=Y
|
||||
popd
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT%{_mingw32_bindir}
|
||||
mkdir -p $RPM_BUILD_ROOT%{_mingw32_libdir}
|
||||
mkdir -p $RPM_BUILD_ROOT%{_mingw32_includedir}
|
||||
|
||||
install win32/*.exe $RPM_BUILD_ROOT%{_mingw32_bindir}
|
||||
install win32/pdcurses.dll $RPM_BUILD_ROOT%{_mingw32_bindir}/pdcurses.dll
|
||||
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}
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_mingw32_bindir}/pdcurses.dll
|
||||
%{_mingw32_libdir}/libpdcurses.dll.a
|
||||
%{_mingw32_includedir}/curses.h
|
||||
%{_mingw32_includedir}/panel.h
|
||||
%{_mingw32_includedir}/term.h
|
||||
%{_mingw32_bindir}/firework.exe
|
||||
%{_mingw32_bindir}/newdemo.exe
|
||||
%{_mingw32_bindir}/ptest.exe
|
||||
%{_mingw32_bindir}/rain.exe
|
||||
%{_mingw32_bindir}/testcurs.exe
|
||||
%{_mingw32_bindir}/tuidemo.exe
|
||||
%{_mingw32_bindir}/xmas.exe
|
||||
%{_mingw32_bindir}/worm.exe
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Feb 27 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 3.4-10
|
||||
- Rebuild against the mingw-w64 toolchain
|
||||
- Use the correct toolchain tools in the patch
|
||||
|
||||
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Wed Jan 13 2010 Richard W.M. Jones <rjones@redhat.com> - 3.4-7
|
||||
- Fix Source0 URL.
|
||||
|
||||
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 3.4-4
|
||||
- Rebuild for mingw32-gcc 4.4
|
||||
|
||||
* Fri Jan 16 2009 Richard Jones <rjones@redhat.com> - 3.4-3
|
||||
- Remove +x permissions on the header files.
|
||||
|
||||
* Sat Nov 22 2008 Richard Jones <rjones@redhat.com> - 3.4-2
|
||||
- Rename implib to libpdcurses.dll.a so that libtool can use it.
|
||||
|
||||
* Thu Sep 25 2008 Richard Jones <rjones@redhat.com> - 3.4-1
|
||||
- Initial RPM release.
|
Loading…
Reference in New Issue
Block a user