From 19d27f311a094d13876da7f092b7fb2d350671dd Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] GnuTLS package for MinGW, plus extra build instructions in README. --- README | 38 +++++++++++++++++----------- gnutls/mingw-gnutls.spec | 66 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+), 15 deletions(-) create mode 100644 gnutls/mingw-gnutls.spec diff --git a/README b/README index f2de426..35507a1 100644 --- a/README +++ b/README @@ -10,24 +10,32 @@ Other useful information: Build order & package notes: - (1) mingw-binutils + ( 1) mingw-binutils - This is just a straight cross-compile of binutils. It has - no BuildRequires beyond what is in basic Fedora already. + This is just a straight cross-compile of binutils. It has + no BuildRequires beyond what is in basic Fedora already. - (2) mingw-bootstrap + ( 2) mingw-bootstrap - This is NOT a real Fedora package. Instead it is a BINARY - package which is just needed first time if you are building - from scratch. It contains some Windows binaries and header - files which are needed to bootstrap everything, and which - would normally be built by the packages below (specifically - by mingw-runtime and mingw-w32api). + This is NOT a real Fedora package. Instead it is a BINARY + package which is just needed first time if you are building + from scratch. It contains some Windows binaries and header + files which are needed to bootstrap everything, and which + would normally be built by the packages below (specifically + by mingw-runtime and mingw-w32api). - (3) mingw-gcc + ( 3) mingw-gcc - (4) mingw-runtime - (5) mingw-w32api + ( 4) mingw-runtime + ( 5) mingw-w32api - Note that once built and installed, these last two replace the - files built from binaries in mingw-bootstrap. + Note that once built and installed, these last two replace the + files built from binaries in mingw-bootstrap. + + ( 6) mingw-zlib + + ( 7) mingw-libgpg-error + + ( 8) mingw-libgcrypt + + ( 9) mingw-gnutls diff --git a/gnutls/mingw-gnutls.spec b/gnutls/mingw-gnutls.spec new file mode 100644 index 0000000..1d22975 --- /dev/null +++ b/gnutls/mingw-gnutls.spec @@ -0,0 +1,66 @@ +%define __os_install_post /usr/lib/rpm/brp-compress %{nil} + +Name: mingw-gnutls +Version: 2.4.1 +Release: 1%{?dist} +Summary: MinGW Windows GnuTLS TLS/SSL encryption library + +License: LGPLv2+ +Group: Development/Libraries +URL: http://www.gnu.org/software/gnutls/ +Source0: ftp://ftp.gnutls.org/pub/gnutls/gnutls-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: mingw-gcc +BuildRequires: mingw-binutils +BuildRequires: mingw-libgpg-error +BuildRequires: mingw-libgcrypt + +Requires: mingw-runtime +Requires: mingw-libgpg-error +Requires: mingw-libgcrypt + +%description +MinGW Windows GnuTLS TLS/SSL encryption library. + + +%prep +%setup -q -n gnutls-%{version} + + +%build +CFLAGS="$RPM_OPT_FLAGS -fno-stack-protector" \ +./configure \ + --build=%_build \ + --host=i686-pc-mingw32 \ + --prefix=%{_prefix}/i686-pc-mingw32/sys-root/mingw \ + --disable-cxx +# Disable C++ package until we have a C++ compiler (see mingw-gcc). + +make + + +%install +rm -rf $RPM_BUILD_ROOT + +make DESTDIR=$RPM_BUILD_ROOT install + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root) +%{_prefix}/i686-pc-mingw32/sys-root/mingw/bin/* +%{_prefix}/i686-pc-mingw32/sys-root/mingw/lib/* +%{_prefix}/i686-pc-mingw32/sys-root/mingw/include/* +%{_prefix}/i686-pc-mingw32/sys-root/mingw/share/aclocal/* +%{_prefix}/i686-pc-mingw32/sys-root/mingw/share/info/* +%{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man/man1/* +%{_prefix}/i686-pc-mingw32/sys-root/mingw/share/man/man3/* + + +%changelog +* Mon Jul 7 2008 Richard W.M. Jones - 2.4.1-1 +- Initial RPM release, largely based on earlier work from several sources. -- 1.8.3.1