summaryrefslogtreecommitdiffstats
path: root/cygwin-openssl.spec
blob: a9cff2d85d43ce4562f0cc3bd541b91b63b99179 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
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 <cygwin-ports-general@lists.sourceforge.net> - 0.9.8r-1
- Initial spec file, largely based on mingw32-openssl.