gettext.
gettext: Add patch to allow building with newer mingw32-runtime package.
Rebuild dependent libraries.
--- /dev/null
+See https://bugzilla.redhat.com/show_bug.cgi?id=467398#c3
+
+--- ./gettext-tools/woe32dll/gettextlib-exports.c.lfarkas 2008-10-31 11:42:38.000000000 +0100
++++ ./gettext-tools/woe32dll/gettextlib-exports.c 2008-10-31 11:43:29.000000000 +0100
+@@ -26,7 +26,7 @@
+ VARIABLE(gl_array_list_implementation)
+ VARIABLE(gl_linkedhash_list_implementation)
+ VARIABLE(program_name)
+-VARIABLE(rpl_optarg)
+-VARIABLE(rpl_optind)
++/*VARIABLE(rpl_optarg)
++VARIABLE(rpl_optind)*/
+ VARIABLE(simple_backup_suffix)
+ VARIABLE(styled_ostream_typeinfo)
Name: mingw32-gettext
Version: 0.17
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: GNU libraries and utilities for producing multi-lingual messages
License: GPLv2+ and LGPLv2+
Group: Development/Libraries
URL: http://www.gnu.org/software/gettext/
Source0: http://ftp.gnu.org/pub/gnu/gettext/gettext-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Patch0: mingw32-gettext-0.17-gnulib-optarg-symbols.patch
BuildArch: noarch
BuildRequires: mingw32-filesystem >= 23
+BuildRequires: mingw32-runtime >= 3.15.1
BuildRequires: mingw32-gcc
BuildRequires: mingw32-gcc-c++
BuildRequires: mingw32-binutils
BuildRequires: mingw32-iconv
+BuildRequires: mingw32-termcap >= 1.3.1-3
%description
MinGW Windows Gettext library
+
%prep
%setup -q -n gettext-%{version}
+%patch0 -p1
+
+
%build
%{_mingw32_configure} \
--disable-java \
make
+
%install
rm -rf $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
+
%files
%defattr(-,root,root)
%{_mingw32_bindir}/autopoint
%changelog
+* Fri Oct 31 2008 Richard W.M. Jones <rjones@redhat.com> - 0.17-6
+- Add fix for undefined Gnulib symbols (Farkas Levente).
+- Rebuild against mingw32-termcap / libtermcap.
+
* Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 0.17-5
- Rename mingw -> mingw32.
Name: mingw32-libvirt
Version: 0.4.6
-Release: 7%{?dist}%{?extra_release}
+Release: 8%{?dist}%{?extra_release}
Summary: MinGW Windows libvirt virtualization library
License: LGPLv2+
# Portable XDR <= 4.0.10 contains a serious endianness bug on Windows.
BuildRequires: mingw32-portablexdr >= 4.0.11
BuildRequires: mingw32-readline
+BuildRequires: mingw32-termcap >= 1.3.1-3
BuildRequires: pkgconfig
# Need native version for msgfmt
%changelog
+* Fri Oct 31 2008 Richard Jones <rjones@redhat.com> - 0.4.6-8
+- Rebuild against latest termcap.
+
* Thu Oct 16 2008 Richard Jones <rjones@redhat.com> - 0.4.6-7
- Windows icon patch from
https://www.redhat.com/archives/libvir-list/2008-October/msg00331.html
Name: mingw32-readline
Version: 5.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: MinGW port of readline for editing typed command lines
License: GPLv2+
BuildRequires: mingw32-filesystem >= 29
BuildRequires: mingw32-gcc
BuildRequires: mingw32-binutils
-BuildRequires: mingw32-termcap
+BuildRequires: mingw32-termcap >= 1.3.1-3
%description
%changelog
+* Fri Oct 31 2008 Richard W.M. Jones <rjones@example.com> - 5.2-2
+- Rebuild against latest termcap.
+
* Thu Sep 25 2008 Richard W.M. Jones <rjones@example.com> - 5.2-1
- Initial RPM release.
Name: mingw32-sqlite
Version: 3.5.9
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: MinGW Windows port of sqlite embeddable SQL database engine
License: Public Domain
BuildRequires: mingw32-pdcurses
BuildRequires: mingw32-readline
+BuildRequires: mingw32-termcap >= 1.3.1-3
BuildRequires: autoconf
BuildRequires: libtool
%changelog
+* Fri Oct 31 2008 Richard Jones <rjones@redhat.com> - 3.5.9-2
+- Rebuild against latest termcap.
+
* Thu Sep 25 2008 Richard Jones <rjones@redhat.com> - 3.5.9-1
- Initial RPM release.
Name: mingw32-termcap
Version: 1.3.1
-Release: 1%{?dist}
+Release: 3%{?dist}
Summary: MinGW terminal feature database
License: GPLv2+
make
# Build a shared library. No need for -fPIC on Windows.
-%{_mingw32_cc} -shared -Wl,--out-implib,termcap.dll.a -o termcap.dll \
+%{_mingw32_cc} -shared \
+ -Wl,--out-implib,libtermcap.dll.a \
+ -o libtermcap-0.dll \
termcap.o tparam.o version.o
# Move the shared library to the correct locations.
mkdir -p $RPM_BUILD_ROOT%{_mingw32_bindir}
-mv termcap.dll $RPM_BUILD_ROOT%{_mingw32_bindir}
-mv termcap.dll.a $RPM_BUILD_ROOT%{_mingw32_libdir}
+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
%files
%defattr(-,root,root)
-%{_mingw32_bindir}/termcap.dll
-%{_mingw32_libdir}/termcap.dll.a
-%{_mingw32_infodir}/*
+%{_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 Oct 31 2008 Richard W.M. Jones <rjones@redhat.com> - 1.3.1-3
+- Fix so it builds a working DLL.
+
* Thu Sep 25 2008 Richard W.M. Jones <rjones@redhat.com> - 1.3.1-1
- Initial RPM release.