summaryrefslogtreecommitdiffstats
path: root/cygwin-openssl.spec
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2012-03-20 17:08:53 -0500
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>2012-03-20 17:08:53 -0500
commit1e228c3401a6975d68b712ca981f98a9f2e9efa2 (patch)
treef650d00494cc740c043ae6afc2b9b5afecc29021 /cygwin-openssl.spec
parent7f527ed89b438ddb6aa3b9805c4c5155e5d40f0a (diff)
downloadcygwin-openssl-1e228c3401a6975d68b712ca981f98a9f2e9efa2.tar.gz
cygwin-openssl-1e228c3401a6975d68b712ca981f98a9f2e9efa2.tar.xz
cygwin-openssl-1e228c3401a6975d68b712ca981f98a9f2e9efa2.zip
cygwin-openssl 1.0.1-1
Diffstat (limited to 'cygwin-openssl.spec')
-rw-r--r--cygwin-openssl.spec26
1 files changed, 16 insertions, 10 deletions
diff --git a/cygwin-openssl.spec b/cygwin-openssl.spec
index 105577c..41bc194 100644
--- a/cygwin-openssl.spec
+++ b/cygwin-openssl.spec
@@ -4,10 +4,10 @@
%global __find_requires %{_cygwin_findrequires}
%global __find_provides %{_cygwin_findprovides}
-%define soversion 0.9.8
+%define soversion 1.0.0
Name: cygwin-openssl
-Version: %{soversion}r
+Version: 1.0.1
Release: 1
Summary: Cygwin port of the OpenSSL toolkit
@@ -15,7 +15,6 @@ 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
@@ -46,12 +45,12 @@ This package contains Cygwin libraries and development tools.
%prep
%setup -q -n openssl-%{version}-1
-%patch0 -p2
%build
./Configure \
--prefix=%{_cygwin_prefix} \
+ --cross-compile-prefix=%{_cygwin_target}- \
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
@@ -69,6 +68,15 @@ fi
rm -rf $RPM_BUILD_ROOT
make INSTALL_PREFIX=$RPM_BUILD_ROOT install_sw
+# Remove unnecessary static libraries
+rm -f $RPM_BUILD_ROOT%{_cygwin_libdir}/lib{crypto,ssl}.a
+
+# Remove unnecessary Cygwin native binaries and runtime files
+rm -f $RPM_BUILD_ROOT%{_cygwin_bindir}/c_rehash
+rm -f $RPM_BUILD_ROOT%{_cygwin_bindir}/*.exe
+rm -rf $RPM_BUILD_ROOT%{_cygwin_libdir}/engines/
+rm -rf $RPM_BUILD_ROOT%{_cygwin_prefix}/ssl
+
# Documentation already provided by Fedora native package
rm -rf $RPM_BUILD_ROOT%{_cygwin_mandir}
@@ -80,22 +88,20 @@ 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
+* Tue Mar 20 2012 Yaakov Selkowitz <cygwin-ports-general@lists.sourceforge.net> - 1.0.1-1
+- Version bump.
+- Remove unnecessary files.
+
* Sun Mar 20 2011 Yaakov Selkowitz <cygwin-ports-general@lists.sourceforge.net> - 0.9.8r-1
- Initial spec file, largely based on mingw32-openssl.