]> git.pld-linux.org Git - packages/openssl.git/blame - openssl.spec
try bringing parallel build back
[packages/openssl.git] / openssl.spec
CommitLineData
44d8c69e 1#
2403ba81 2# Conditional build:
d76d59fa 3%bcond_without tests # don't perform "make tests"
d343076c 4%bcond_without zlib # zlib: note - enables CVE-2012-4929 vulnerability
7c7b781c 5%bcond_with sslv3 # SSLv3: note - enables CVE-2014-3566 vulnerability
dece7a9c 6
ce2ff00e 7Summary: OpenSSL Toolkit libraries for the "Secure Sockets Layer" (SSL v2/v3)
e6bfca5b
ER
8Summary(de.UTF-8): Secure Sockets Layer (SSL)-Kommunikationslibrary
9Summary(es.UTF-8): Biblioteca C que suministra algoritmos y protocolos criptográficos
10Summary(fr.UTF-8): Utilitaires de communication SSL (Secure Sockets Layer)
11Summary(pl.UTF-8): Biblioteki OpenSSL (SSL v2/v3)
12Summary(pt_BR.UTF-8): Uma biblioteca C que fornece vários algoritmos e protocolos criptográficos
13Summary(ru.UTF-8): Библиотеки и утилиты для соединений через Secure Sockets Layer
14Summary(uk.UTF-8): Бібліотеки та утиліти для з'єднань через Secure Sockets Layer
56470945 15Name: openssl
45597d68
AM
16Version: 3.0.2
17Release: 1
3f69fe91 18License: Apache v2.0
56470945 19Group: Libraries
f6b630b8 20Source0: https://www.openssl.org/source/%{name}-%{version}.tar.gz
45597d68 21# Source0-md5: 7f9d43bb7a1e742722cf6d6f40531462
62382817 22Source2: %{name}.1.pl
ea55f735 23Source3: %{name}-ssl-certificate.sh
d231add3 24Source4: %{name}-c_rehash.sh
3f69fe91
JR
25Patch0: %{name}-optflags.patch
26Patch1: %{name}-ca-certificates.patch
27Patch2: %{name}-find.patch
28Patch3: pic.patch
29Patch4: engines-dir.patch
bd7f0ef1 30URL: http://www.openssl.org/
fc506856
JP
31%ifarch %{arm} ppc mips sparc sparcv9
32BuildRequires: libatomic-devel
33%endif
0283944f 34BuildRequires: libsctp-devel
02dff5bc 35BuildRequires: linux-libc-headers >= 7:4.13
af59ed59 36BuildRequires: perl-devel >= 1:5.10.0
77211fc0 37BuildRequires: pkgconfig
9edbb66f 38BuildRequires: rpm-perlprov >= 4.1-13
20bc1dd7 39BuildRequires: rpmbuild(macros) >= 1.213
31b28434 40BuildRequires: sed >= 4.0
77211fc0 41BuildRequires: zlib-devel
618e7076 42Requires: ca-certificates >= 20141019-3
efa15d69 43Requires: %{name}-tools = %{version}-%{release}
dece7a9c 44Requires: rpm-whiteout >= 1.7
04a5ad1f
AF
45Obsoletes: SSLeay
46Obsoletes: SSLeay-devel
47Obsoletes: SSLeay-perl
a280467c 48Obsoletes: libopenssl0
efa15d69 49Obsoletes: openssl-engines < 3.0.0-2
4ec787ae 50%if "%{pld_release}" == "ac"
7bb98c5d 51Conflicts: neon < 0.26.3-3
e21ec158 52Conflicts: ntpd < 4.2.4p8-10
f3136daa 53Conflicts: openssh-clients < 2:5.8p1-9
4ec787ae
ER
54Conflicts: openssh-server < 2:5.8p1-9
55%else
3a24c9cc
ER
56Conflicts: neon < 0.29.6-8
57Conflicts: openssh-clients < 2:6.2p2-3
58Conflicts: openssh-server < 2:6.2p2-3
c04ce0eb 59%endif
0f86ef4a 60BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21ac4f86
AF
61
62%description
63The OpenSSL Project is a collaborative effort to develop a robust,
b39fed70 64commercial-grade, full-featured, and Open Source toolkit implementing
65the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS
66v1) protocols with full-strength cryptography world-wide. The project
67is managed by a worldwide community of volunteers that use the
68Internet to communicate, plan, and develop the OpenSSL tookit and its
69related documentation.
56470945 70
b39fed70 71OpenSSL is based on the excellent SSLeay library developed by Eric A.
72Young and Tim J. Hudson. The OpenSSL toolkit is licensed under an
73Apache-style licence, which basically means that you are free to get
74and use it for commercial and non-commercial purposes subject to some
75simple license conditions.
21ac4f86 76
fc19f542 77This package contains shared libraries only, install openssl-tools if
78you want to use openssl cmdline tool.
ce2ff00e 79
30e72515
JR
80%description -l de.UTF-8
81Openssl enthält das OpenSSL Zertifikatsmanagementtool und shared
82libraries, die verschiedene Verschlüsselungs- und
83Entschlüsselungsalgorithmen und -protokolle, wie DES, RC4, RSA und SSL
84zur Verfügung stellen.
453a8bf3 85
30e72515
JR
86%description -l es.UTF-8
87Biblioteca C que suministra algoritmos y protocolos criptográficos.
2fad19b0 88
30e72515 89%description -l fr.UTF-8
56470945 90OpenSSL est un outiil de gestion des certificats et les librairies
91partagees qui fournit plusieurs protocoles et algorithmes de
92codage/decodage, incluant DES, RC4, RSA et SSL.
2fad19b0 93
30e72515
JR
94%description -l pl.UTF-8
95Implementacja protokołów kryptograficznych Secure Socket Layer (SSL)
78b5e413
TP
96v2/v3 oraz Transport Layer Security (TLS v1).
97
30e72515
JR
98%description -l pt_BR.UTF-8
99Uma biblioteca C que fornece vários algoritmos e protocolos
100criptográficos, incluindo DES, RC4, RSA e SSL. Inclui bibliotecas
101compartilhadas e utilitários.
453a8bf3 102
30e72515
JR
103%description -l ru.UTF-8
104Программа openssl для работы с сертификатами и разделяемые библиотеки,
105которые реализуют множетсво криптографических алгоритмов, включая DES,
106RC4, RSA и SSL.
453a8bf3 107
30e72515
JR
108%description -l uk.UTF-8
109Програма openssl для роботи з сертифікатами та бібліотеки спільного
110користування, що реалізують велику кількість криптографічних
111алгоритмів, включаючи DES, RC4, RSA та SSL.
453a8bf3 112
ce2ff00e 113%package tools
114Summary: OpenSSL command line tool and utilities
e6bfca5b 115Summary(pl.UTF-8): Zestaw narzędzi i skryptów
fc19f542 116Group: Applications/Communications
82859ae1 117Requires: %{name} = %{version}-%{release}
9583cd23 118Requires: which
ce2ff00e 119
120%description tools
121The OpenSSL Toolkit cmdline tool openssl and utility scripts.
122
30e72515
JR
123%description tools -l pl.UTF-8
124Zestaw narzędzi i skryptów wywoływanych z linii poleceń.
78b5e413 125
ce2ff00e 126%package tools-perl
127Summary: OpenSSL utilities written in Perl
e6bfca5b 128Summary(pl.UTF-8): Narzędzia OpenSSL napisane w perlu
fc19f542 129Group: Applications/Communications
82859ae1 130Requires: %{name} = %{version}-%{release}
2b2149ff 131
ce2ff00e 132%description tools-perl
d86c2c8b 133OpenSSL Toolkit tools written in Perl.
2b2149ff 134
30e72515
JR
135%description tools-perl -l pl.UTF-8
136Narzędzia OpenSSL napisane w perlu.
78b5e413 137
faddd309 138%package devel
ce2ff00e 139Summary: Development part of OpenSSL Toolkit libraries
e6bfca5b
ER
140Summary(de.UTF-8): Secure Sockets Layer Kommunikationslibrary: statische libraries+header
141Summary(es.UTF-8): Bibliotecas y archivos de inclusión para desarrollo OpenSSL
142Summary(fr.UTF-8): Librairies statiques, headers et utilitaires pour communication SSL
143Summary(pl.UTF-8): Część bibiloteki OpenSSL przeznaczona dla programistów
144Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento OpenSSL
145Summary(ru.UTF-8): Библиотеки, хедеры и утилиты для Secure Sockets Layer
146Summary(uk.UTF-8): Бібліотеки, хедери та утиліти для Secure Sockets Layer
9c05bcac 147Group: Development/Libraries
82859ae1 148Requires: %{name} = %{version}-%{release}
a280467c 149Obsoletes: libopenssl0-devel
faddd309
AF
150
151%description devel
152Development part of OpenSSL library.
153
30e72515
JR
154%description devel -l es.UTF-8
155Bibliotecas y archivos de inclusión para desarrollo OpenSSL
453a8bf3 156
30e72515
JR
157%description devel -l pl.UTF-8
158Część biblioteki OpenSSL przeznaczona dla programistów.
faddd309 159
30e72515
JR
160%description devel -l pt_BR.UTF-8
161Uma biblioteca C que fornece vários algoritmos e protocolos
162criptográficos, incluindo DES, RC4, RSA e SSL. Inclui bibliotecas e
163arquivos de inclusão para desenvolvimento.
453a8bf3 164
30e72515
JR
165%description devel -l ru.UTF-8
166Программа openssl для работы с сертификатами и разделяемые библиотеки,
167которые реализуют множетсво криптографических алгоритмов, включая DES,
168RC4, RSA и SSL. Включает библиотеки и хедеры для разработки приложений
169с использованием SSL.
453a8bf3 170
30e72515
JR
171%description devel -l uk.UTF-8
172Програма openssl для роботи з сертифікатами та бібліотеки спільного
173користування, що реалізують велику кількість криптографічних
174алгоритмів, включаючи DES, RC4, RSA та SSL. Містить бібліотеки та
175хедери для розробки програм з використанням SSL.
453a8bf3 176
faddd309 177%package static
ce2ff00e 178Summary: Static OpenSSL libraries
e6bfca5b
ER
179Summary(pl.UTF-8): Statyczne wersje bibliotek z OpenSSL
180Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com openssl
181Summary(ru.UTF-8): Статические библиотеки разработчика для OpenSSL
182Summary(uk.UTF-8): Статичні бібліотеки програміста для OpenSSL
9c05bcac 183Group: Development/Libraries
82859ae1 184Requires: %{name}-devel = %{version}-%{release}
faddd309
AF
185
186%description static
ce2ff00e 187Static OpenSSL Toolkit libraries.
faddd309 188
30e72515 189%description static -l pl.UTF-8
ce2ff00e 190Statyczne wersje bibliotek z OpenSSL.
faddd309 191
30e72515
JR
192%description static -l pt_BR.UTF-8
193Bibliotecas estáticas para desenvolvimento com openssl.
453a8bf3 194
30e72515
JR
195%description static -l ru.UTF-8
196Программа openssl для работы с сертификатами и разделяемые библиотеки,
197которые реализуют множетсво криптографических алгоритмов, включая DES,
198RC4, RSA и SSL. Включает статические библиотеки для разработки
199приложений с использованием OpenSSL.
453a8bf3 200
30e72515
JR
201%description static -l uk.UTF-8
202Програма openssl для роботи з сертифікатами та бібліотеки спільного
203користування, що реалізують велику кількість криптографічних
204алгоритмів, включаючи DES, RC4, RSA та SSL. Містить статичні
205бібліотеки для розробки програм з використанням SSL.
453a8bf3 206
21ac4f86 207%prep
3f69fe91
JR
208%setup -q
209%patch0 -p1
44d8c69e 210%patch1 -p1
3f69fe91 211%patch2 -p1
d3102ab2 212%patch3 -p1
3f69fe91 213%patch4 -p1
84745a0c 214
3f69fe91
JR
215# fails with enable-sctp as of 1.1.1
216%{__rm} test/recipes/80-test_ssl_new.t
a9839ec4 217
d76d59fa 218%build
00466ad3 219touch Makefile.*
04a5ad1f 220
7250cee4
JB
221PERL="%{__perl}" \
222%{__perl} ./Configure \
2a83d92e 223 --prefix=%{_prefix} \
0fdaa4e3 224 --openssldir=%{_sysconfdir}/%{name} \
6e7b8079 225 --libdir=%{_lib} \
08291e9a 226 -Wa,--noexecstack \
e1798b93
AM
227 shared \
228 threads \
2a82d451 229 %{?with_sslv3:enable-ssl3}%{!?with_sslv3:no-ssl3} \
93a4f283 230 %{!?with_zlib:no-}zlib \
215c1d6f
AM
231 enable-cms \
232 enable-idea \
05889491 233 enable-md2 \
e02b6d37 234 enable-mdc2 \
215c1d6f 235 enable-rc5 \
e02b6d37 236 enable-rfc3779 \
715b407d 237 enable-sctp \
e02b6d37 238 enable-seed \
efa15d69
JR
239 enable-camellia \
240 enable-ktls \
241 enable-fips \
e02b6d37
AM
242%ifarch %{x8664}
243 enable-ec_nistp_64_gcc_128 \
244%endif
51e76169 245%ifarch %{ix86}
04a32771 246%ifarch i386
9fc51b3c 247 386 linux-elf
915551a7 248# ^- allow running on 80386 (default code uses bswapl available on i486+)
51e76169 249%else
9fc51b3c 250 linux-elf
75c27cbe 251%endif
51e76169 252%endif
dfc15f38 253%ifarch alpha
1c6e2c73 254 linux-alpha-gcc
dfc15f38 255%endif
20bc1dd7 256%ifarch %{x8664}
9fc51b3c 257 linux-x86_64
e08c1652 258%endif
6bd2fbde
JR
259%ifarch x32
260 linux-x32
261%endif
dfc15f38 262%ifarch ia64
9fc51b3c 263 linux-ia64
dfc15f38 264%endif
75c27cbe 265%ifarch ppc
9fc51b3c
JB
266 linux-ppc
267%endif
268%ifarch ppc64
269 linux-ppc64
75c27cbe 270%endif
05285465 271%ifarch sparc
9fc51b3c 272 linux-sparcv8
0384baf6 273%endif
36db42b5 274%ifarch sparcv9
9fc51b3c 275 linux-sparcv9
36db42b5
PS
276%endif
277%ifarch sparc64
9fc51b3c 278 linux64-sparcv9
36db42b5 279%endif
1c6e2c73 280%ifarch %{arm}
9f6d1eb0 281 linux-armv4
282%endif
1c6e2c73
JB
283%ifarch aarch64
284 linux-aarch64
285%endif
05285465 286
7aa6910d 287v=$(awk -F= '/^VERSION=/{print $2}' Makefile)
3f69fe91 288test "$v" = %{version}
7c7b781c 289
5c7fadd0 290%{__make} all %{?with_tests:tests} \
b84cddc8 291 CC="%{__cc}" \
1c6e2c73 292 OPTFLAGS="%{rpmcflags} %{rpmcppflags}" \
b84cddc8 293 INSTALLTOP=%{_prefix}
ce2ff00e 294
21ac4f86 295%install
04a5ad1f 296rm -rf $RPM_BUILD_ROOT
ce2ff00e 297install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},%{_libdir}/%{name}} \
4b251642
JK
298 $RPM_BUILD_ROOT{%{_mandir}/{pl/man1,man{1,3,5,7}},%{_datadir}/ssl} \
299 $RPM_BUILD_ROOT%{_pkgconfigdir}
faddd309 300
5c7fadd0 301%{__make} install \
20c78826 302 CC="%{__cc}" \
08291e9a 303 DESTDIR=$RPM_BUILD_ROOT
04a5ad1f 304
3f69fe91
JR
305%{__mv} $RPM_BUILD_ROOT%{_libdir}/lib*.so.* $RPM_BUILD_ROOT/%{_lib}
306ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libcrypto.*) $RPM_BUILD_ROOT%{_libdir}/libcrypto.so
307ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libssl.*) $RPM_BUILD_ROOT%{_libdir}/libssl.so
04a5ad1f 308
3819301b
JB
309%{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/misc/* $RPM_BUILD_ROOT%{_libdir}/%{name}
310%{__rm} -r $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/misc
04a5ad1f 311
20c78826
ER
312# html version of man pages - not packaged
313%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}/html/man[1357]
1c008d35 314
848e9cf2 315cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1/openssl.1
dece7a9c
ER
316install -p %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/ssl-certificate
317install -p %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/c_rehash.sh
9fc51b3c 318
57dc6058
JB
319%clean
320rm -rf $RPM_BUILD_ROOT
61a04a63 321
d86c2c8b 322%post -p /sbin/ldconfig
ce2ff00e 323%postun -p /sbin/ldconfig
04a5ad1f 324
c8f5291b
ER
325%triggerpostun -- %{name}-tools < 1.0.0-5
326# the hashing format has changed in 1.0.0
327[ ! -x %{_sbindir}/update-ca-certificates ] || %{_sbindir}/update-ca-certificates --fresh || :
328
0fdaa4e3 329%triggerpostun -- %{name} < 0.9.8i-2
62bcfa4e
ER
330# don't do anything on --downgrade
331if [ $1 -le 1 ]; then
332 exit 0
333fi
0fdaa4e3
JR
334if [ -d /var/lib/openssl/certs ] ; then
335 mv /var/lib/openssl/certs/* %{_sysconfdir}/%{name}/certs 2>/dev/null || :
336fi
337if [ -d /var/lib/openssl/private ] ; then
338 mv /var/lib/openssl/private/* %{_sysconfdir}/%{name}/private 2>/dev/null || :
339fi
340if [ -d /var/lib/openssl ] ; then
341 for f in /var/lib/openssl/* ; do
342 [ -f "$f" ] && mv "$f" %{_sysconfdir}/%{name} 2>/dev/null || :
343 done
62bcfa4e
ER
344 rmdir /var/lib/openssl/* 2>/dev/null || :
345 rmdir /var/lib/openssl 2>/dev/null || :
0fdaa4e3
JR
346fi
347
21ac4f86 348%files
04a5ad1f 349%defattr(644,root,root,755)
3f69fe91
JR
350%doc CHANGES.md NEWS.md README.md doc/*.txt
351%attr(755,root,root) /%{_lib}/libcrypto.so.*
352%attr(755,root,root) /%{_lib}/libssl.so.*
efa15d69
JR
353%dir /%{_lib}/engines-3
354%attr(755,root,root) /%{_lib}/engines-3/*.so
3f69fe91 355%dir /%{_lib}/ossl-modules
efa15d69 356%attr(755,root,root) /%{_lib}/ossl-modules/fips.so
3f69fe91 357%attr(755,root,root) /%{_lib}/ossl-modules/legacy.so
fa6b6d15 358%dir %{_sysconfdir}/%{name}
359%dir %{_sysconfdir}/%{name}/certs
b38449e1 360%dir %attr(700,root,root) %{_sysconfdir}/%{name}/private
b87437db 361%dir %{_datadir}/ssl
ce2ff00e 362
363%files tools
364%defattr(644,root,root,755)
c4c6d146 365%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/ct_log_list.cnf
efa15d69 366%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/fipsmodule.cnf
623d135e 367%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/openssl.cnf
d231add3 368%attr(755,root,root) %{_bindir}/c_rehash.sh
44d8c69e 369%attr(755,root,root) %{_bindir}/openssl
ea55f735 370%attr(754,root,root) %{_bindir}/ssl-certificate
3f69fe91
JR
371%{_mandir}/man1/asn1parse.1*
372%{_mandir}/man1/ca.1*
373%{_mandir}/man1/ciphers.1*
374%{_mandir}/man1/cms.1*
375%{_mandir}/man1/crl.1*
376%{_mandir}/man1/crl2pkcs7.1*
377%{_mandir}/man1/dgst.1*
378%{_mandir}/man1/dhparam.1*
379%{_mandir}/man1/dsa.1*
380%{_mandir}/man1/dsaparam.1*
381%{_mandir}/man1/ec.1*
382%{_mandir}/man1/ecparam.1*
383%{_mandir}/man1/enc.1*
384%{_mandir}/man1/engine.1*
385%{_mandir}/man1/errstr.1*
386%{_mandir}/man1/gendsa.1*
387%{_mandir}/man1/genpkey.1*
388%{_mandir}/man1/genrsa.1*
389%{_mandir}/man1/kdf.1*
390%{_mandir}/man1/mac.1*
391%{_mandir}/man1/nseq.1*
392%{_mandir}/man1/ocsp.1*
d86c2c8b 393%{_mandir}/man1/openssl.1*
3f69fe91
JR
394%{_mandir}/man1/openssl-*.1*
395%{_mandir}/man1/passwd.1*
396%{_mandir}/man1/pkcs12.1*
397%{_mandir}/man1/pkcs7.1*
398%{_mandir}/man1/pkcs8.1*
399%{_mandir}/man1/pkey.1*
400%{_mandir}/man1/pkeyparam.1*
401%{_mandir}/man1/pkeyutl.1*
402%{_mandir}/man1/prime.1*
403%{_mandir}/man1/rand.1*
404%{_mandir}/man1/rehash.1*
405%{_mandir}/man1/req.1*
406%{_mandir}/man1/rsa.1*
407%{_mandir}/man1/rsautl.1*
408%{_mandir}/man1/s_client.1*
409%{_mandir}/man1/sess_id.1*
410%{_mandir}/man1/smime.1*
411%{_mandir}/man1/speed.1*
412%{_mandir}/man1/spkac.1*
413%{_mandir}/man1/srp.1*
414%{_mandir}/man1/s_server.1*
415%{_mandir}/man1/s_time.1*
416%{_mandir}/man1/storeutl.1*
417%{_mandir}/man1/ts.1*
418%{_mandir}/man1/verify.1*
419%{_mandir}/man1/version.1*
420%{_mandir}/man1/x509.1*
421%{_mandir}/man5/*.5*
62382817 422%lang(pl) %{_mandir}/pl/man1/openssl.1*
ce2ff00e 423
424%files tools-perl
425%defattr(644,root,root,755)
62313b5e 426%attr(755,root,root) %{_bindir}/c_rehash
08291e9a 427%dir %{_libdir}/%{name}
ce2ff00e 428%attr(755,root,root) %{_libdir}/%{name}/CA.pl
848e9cf2 429%attr(755,root,root) %{_libdir}/%{name}/tsget
c4c6d146 430%attr(755,root,root) %{_libdir}/%{name}/tsget.pl
1c6e2c73
JB
431%{_mandir}/man1/CA.pl.1*
432%{_mandir}/man1/c_rehash.1*
3f69fe91 433%{_mandir}/man1/tsget.1*
faddd309
AF
434
435%files devel
436%defattr(644,root,root,755)
f4434df9
PS
437%attr(755,root,root) %{_libdir}/libcrypto.so
438%attr(755,root,root) %{_libdir}/libssl.so
ce2ff00e 439%{_includedir}/%{name}
9fc51b3c
JB
440%{_pkgconfigdir}/libcrypto.pc
441%{_pkgconfigdir}/libssl.pc
8c362d23 442%{_pkgconfigdir}/openssl.pc
3f69fe91
JR
443%{_mandir}/man3/*.3*
444%{_mandir}/man7/*.7*
faddd309
AF
445
446%files static
447%defattr(644,root,root,755)
7250cee4
JB
448%{_libdir}/libcrypto.a
449%{_libdir}/libssl.a
This page took 0.153506 seconds and 4 git commands to generate.