From 89ada7530f08010a53a15849c77c9252db059ae5 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Sun, 20 Mar 2011 03:37:53 -0500 Subject: cygwin-openssl 0.9.8r-1 --- cygwin-openssl.spec | 101 ++++++++++++++++++++++++++++++++++++++ openssl-0.9.8r-cygwin-cross.patch | 11 +++++ sources | 1 + 3 files changed, 113 insertions(+) create mode 100644 cygwin-openssl.spec create mode 100644 openssl-0.9.8r-cygwin-cross.patch create mode 100644 sources diff --git a/cygwin-openssl.spec b/cygwin-openssl.spec new file mode 100644 index 0000000..a9cff2d --- /dev/null +++ b/cygwin-openssl.spec @@ -0,0 +1,101 @@ +%global __strip %{_cygwin_strip} +%global __objdump %{_cygwin_objdump} +%global _use_internal_dependency_generator 0 +%global __find_requires %{_cygwin_findrequires} +%global __find_provides %{_cygwin_findprovides} + +%define soversion 0.9.8 + +Name: cygwin-openssl +Version: %{soversion}r +Release: 1%{?dist} +Summary: Cygwin port of the OpenSSL toolkit + +Group: Development/Libraries +License: OpenSSL +URL: http://www.openssl.org/ +Source0: ftp://sourceware.org/pub/cygwin/release/openssl/openssl-%{version}-1-src.tar.bz2 +Patch0: openssl-0.9.8r-cygwin-cross.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: cygwin-filesystem +BuildRequires: cygwin-binutils +BuildRequires: cygwin-gcc +BuildRequires: cygwin +BuildRequires: cygwin-zlib +BuildRequires: mktemp +BuildRequires: perl +BuildRequires: sed +BuildRequires: /usr/bin/cmp +BuildRequires: /usr/bin/rename +# The build script uses /usr/bin/makedepend which comes from imake. +BuildRequires: imake + +Requires: pkgconfig + + +%description +The OpenSSL toolkit provides support for secure communications between +machines. OpenSSL includes a certificate management tool and shared +libraries which provide various cryptographic algorithms and +protocols. + +This package contains Cygwin libraries and development tools. + + +%prep +%setup -q -n openssl-%{version}-1 +%patch0 -p2 + + +%build +./Configure \ + --prefix=%{_cygwin_prefix} \ + zlib no-hw no-camellia no-capieng no-cms no-gmp no-idea no-jpake \ + no-krb5 no-mdc2 no-rc5 no-rfc3779 no-seed \ + shared Cygwin + +make depend +make all build-shared + +if ! iconv -f UTF-8 -t ASCII//TRANSLIT CHANGES >/dev/null 2>&1 ; then + iconv -f ISO-8859-1 -t UTF-8 -o CHANGES.utf8 CHANGES && \ + mv -f CHANGES.utf8 CHANGES +fi + + +%install +rm -rf $RPM_BUILD_ROOT +make INSTALL_PREFIX=$RPM_BUILD_ROOT install_sw + +# Documentation already provided by Fedora native package +rm -rf $RPM_BUILD_ROOT%{_cygwin_mandir} + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc CHANGES LICENSE NEWS +%{_cygwin_bindir}/openssl.exe +%{_cygwin_bindir}/c_rehash +%{_cygwin_bindir}/cygcrypto-%{soversion}.dll +%{_cygwin_bindir}/cygssl-%{soversion}.dll +%{_cygwin_includedir}/openssl +%{_cygwin_libdir}/libcrypto.a +%{_cygwin_libdir}/libcrypto.dll.a +%{_cygwin_libdir}/libssl.a +%{_cygwin_libdir}/libssl.dll.a +%{_cygwin_libdir}/engines +%{_cygwin_libdir}/pkgconfig/libcrypto.pc +%{_cygwin_libdir}/pkgconfig/libssl.pc +%{_cygwin_libdir}/pkgconfig/openssl.pc +%config(noreplace) %{_cygwin_prefix}/ssl + + +%changelog +* Sun Mar 20 2011 Yaakov Selkowitz - 0.9.8r-1 +- Initial spec file, largely based on mingw32-openssl. diff --git a/openssl-0.9.8r-cygwin-cross.patch b/openssl-0.9.8r-cygwin-cross.patch new file mode 100644 index 0000000..94b9691 --- /dev/null +++ b/openssl-0.9.8r-cygwin-cross.patch @@ -0,0 +1,11 @@ +--- SOURCES/openssl-0.9.8r-1/Configure 2010-12-10 18:30:42.000000000 -0600 ++++ BUILD/openssl-0.9.8r-1/Configure 2011-03-20 03:19:01.639104941 -0500 +@@ -497,7 +497,7 @@ + + # Cygwin + "Cygwin-pre1.3", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall::(unknown):CYGWIN32::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${no_asm}:win32", +-"Cygwin", "gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -Wall:::CYGWIN32::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_coff_asm}:dlfcn:cygwin-shared:-D_WINDLL:-shared:.dll.a", ++"Cygwin", "i686-pc-cygwin-gcc:-DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O3 -march=i486 -Wall:::CYGWIN32::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_coff_asm}:dlfcn:cygwin-shared:-D_WINDLL:-shared:.dll.a", + "debug-Cygwin", "gcc:-DTERMIOS -DL_ENDIAN -march=i486 -Wall -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DCRYPTO_MDEBUG -DOPENSSL_NO_ASM -g -Wformat -Wshadow -Wmissing-prototypes -Wmissing-declarations -Werror:::CYGWIN32:::${no_asm}:dlfcn:cygwin-shared:-D_WINDLL:-shared:.dll.a", + + # NetWare from David Ward (dsward@novell.com) diff --git a/sources b/sources new file mode 100644 index 0000000..2c7e3ff --- /dev/null +++ b/sources @@ -0,0 +1 @@ +0352932ea863bc02b056cda7c9ac5b79 openssl-0.9.8r.tar.gz -- cgit