[mingw-termcap: 2/14] Initial import.

Kalev Lember kalev at fedoraproject.org
Wed Mar 7 17:56:09 UTC 2012


commit d4a9d96dabd6e2f50fdf311db9c82a56eeef3a7e
Author: Richard W.M. Jones <rjones at fedoraproject.org>
Date:   Sun Dec 21 11:14:14 2008 +0000

    Initial import.

 .cvsignore           |    1 +
 import.log           |    1 +
 mingw32-termcap.spec |  111 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 4 files changed, 114 insertions(+), 0 deletions(-)
---
diff --git a/.cvsignore b/.cvsignore
index e69de29..395ae7e 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -0,0 +1 @@
+termcap-1.3.1.tar.gz
diff --git a/import.log b/import.log
new file mode 100644
index 0000000..00d6b4e
--- /dev/null
+++ b/import.log
@@ -0,0 +1 @@
+mingw32-termcap-1_3_1-5_fc10:HEAD:mingw32-termcap-1.3.1-5.fc10.src.rpm:1229857646
diff --git a/mingw32-termcap.spec b/mingw32-termcap.spec
new file mode 100644
index 0000000..ef8bea1
--- /dev/null
+++ b/mingw32-termcap.spec
@@ -0,0 +1,111 @@
+# Note: Termcap was deprecated and removed from Fedora after F-8.  It
+# has been replaced by ncurses.  However ncurses cannot be compiled on
+# Windows so we have to supply termcap.  In addition, the last stand-
+# alone Fedora termcap package was actually just /etc/termcap from
+# ncurses.  So here we are using the GNU termcap library which is
+# regretably GPL'd.
+
+%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-termcap
+Version:        1.3.1
+Release:        5%{?dist}
+Summary:        MinGW terminal feature database
+
+License:        GPLv2+
+Group:          Development/Libraries
+URL:            ftp://ftp.gnu.org/gnu/termcap/
+Source0:        ftp://ftp.gnu.org/gnu/termcap/termcap-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+
+BuildRequires:  mingw32-filesystem >= 28
+BuildRequires:  mingw32-gcc
+BuildRequires:  mingw32-binutils
+
+BuildRequires:  autoconf
+
+
+%description
+This is the GNU termcap library -- a library of C functions that
+enable programs to send control strings to terminals in a way
+independent of the terminal type.  The GNU termcap library does not
+place an arbitrary limit on the size of termcap entries, unlike most
+other termcap libraries.
+
+This package contains libraries and development tools for the MinGW
+cross-compiled version.
+
+
+%prep
+%setup -q -n termcap-%{version}
+
+# Packaged script doesn't understand --bindir, so rebuild:
+autoconf
+
+
+%build
+%{_mingw32_configure}
+make
+
+# Build a shared library.  No need for -fPIC on Windows.
+%{_mingw32_cc} -shared \
+  -Wl,--out-implib,libtermcap.dll.a \
+  -o libtermcap-0.dll \
+  termcap.o tparam.o version.o
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make install \
+  prefix=$RPM_BUILD_ROOT%{_mingw32_prefix} \
+  exec_prefix=$RPM_BUILD_ROOT%{_mingw32_prefix} \
+  oldincludedir=
+
+# Move the shared library to the correct locations.
+mkdir -p $RPM_BUILD_ROOT%{_mingw32_bindir}
+install -m 0755 libtermcap-0.dll $RPM_BUILD_ROOT%{_mingw32_bindir}
+install -m 0755 libtermcap.dll.a $RPM_BUILD_ROOT%{_mingw32_libdir}
+
+# Don't want the static library, thank you.
+rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libtermcap.a
+
+# Move the info files to the correct location.
+mkdir -p $RPM_BUILD_ROOT%{_mingw32_infodir}
+mv $RPM_BUILD_ROOT%{_mingw32_prefix}/info/* $RPM_BUILD_ROOT%{_mingw32_infodir}
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root)
+%doc COPYING
+%{_mingw32_bindir}/libtermcap-0.dll
+%{_mingw32_libdir}/libtermcap.dll.a
+%{_mingw32_includedir}/termcap.h
+# Note that we want the info files in this package because
+# there is no equivalent native Fedora package.
+%{_mingw32_infodir}/*
+
+
+%changelog
+* Fri Dec 19 2008 Richard W.M. Jones <rjones at redhat.com> - 1.3.1-5
+- Added license file to doc section.
+
+* Wed Nov 19 2008 Richard W.M. Jones <rjones at redhat.com> - 1.3.1-4
+- Rerun autoconf because the standard configure doesn't know --bindir.
+- Set exec_prefix during make install step.
+
+* Fri Oct 31 2008 Richard W.M. Jones <rjones at redhat.com> - 1.3.1-3
+- Fix so it builds a working DLL.
+
+* Thu Sep 25 2008 Richard W.M. Jones <rjones at redhat.com> - 1.3.1-1
+- Initial RPM release.
diff --git a/sources b/sources
index e69de29..db740bd 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ffe6f86e63a3a29fa53ac645faaabdfa  termcap-1.3.1.tar.gz


More information about the scm-commits mailing list