]>
Commit | Line | Data |
---|---|---|
a81c34a3 ER |
1 | # TODO |
2 | # - consider dropping last optflags.patch hunk and return to SOMAJOR (.so.1) sonames | |
0419ee51 | 3 | # - find a way to simplify (drop) openssl-optflags.patch, it's pain to update here in pld |
44d8c69e | 4 | # |
2403ba81 | 5 | # Conditional build: |
d76d59fa | 6 | %bcond_without tests # don't perform "make tests" |
d343076c AO |
7 | %bcond_without zlib # zlib: note - enables CVE-2012-4929 vulnerability |
8 | %bcond_without sslv2 # SSLv2: note - many flaws http://en.wikipedia.org/wiki/Transport_Layer_Security#SSL_2.0 | |
9 | %bcond_without sslv3 # SSLv3: note - enables CVE-2014-3566 vulnerability | |
55af9845 | 10 | %bcond_with purify # Compile openssl with "-DPURIFY", useful when one wants to |
2403ba81 | 11 | # use valgrind debugger against openssl-linked programs |
81e27b7e | 12 | %bcond_with snap # use GitHub snapshot to build branch release |
dece7a9c | 13 | |
779bb536 | 14 | %include /usr/lib/rpm/macros.perl |
ce2ff00e | 15 | Summary: OpenSSL Toolkit libraries for the "Secure Sockets Layer" (SSL v2/v3) |
e6bfca5b ER |
16 | Summary(de.UTF-8): Secure Sockets Layer (SSL)-Kommunikationslibrary |
17 | Summary(es.UTF-8): Biblioteca C que suministra algoritmos y protocolos criptográficos | |
18 | Summary(fr.UTF-8): Utilitaires de communication SSL (Secure Sockets Layer) | |
19 | Summary(pl.UTF-8): Biblioteki OpenSSL (SSL v2/v3) | |
20 | Summary(pt_BR.UTF-8): Uma biblioteca C que fornece vários algoritmos e protocolos criptográficos | |
21 | Summary(ru.UTF-8): Библиотеки и утилиты для соединений через Secure Sockets Layer | |
22 | Summary(uk.UTF-8): Бібліотеки та утиліти для з'єднань через Secure Sockets Layer | |
56470945 | 23 | Name: openssl |
55af9845 ER |
24 | # 1.0.2 will be LTS release |
25 | # Version 1.0.2 will be supported until 2019-12-31. | |
26 | # https://www.openssl.org/about/releasestrat.html | |
f061ca99 | 27 | Version: 1.0.2m |
ab4f815e | 28 | Release: 1 |
d7fc4164 | 29 | License: Apache-like |
56470945 | 30 | Group: Libraries |
81e27b7e | 31 | %if %{without snap} |
f6b630b8 | 32 | Source0: https://www.openssl.org/source/%{name}-%{version}.tar.gz |
f061ca99 | 33 | # Source0-md5: 10e9e37f492094b9ef296f68f24a7666 |
81e27b7e | 34 | %else |
f60e47ab | 35 | Source1: https://github.com/openssl/openssl/archive/OpenSSL_1_0_2-stable/%{name}-%{version}-dev.tar.gz |
ddc151ee | 36 | # Source1-md5: 6b846f8a4f55f5ddfa1e0d335241840a |
81e27b7e | 37 | %endif |
62382817 | 38 | Source2: %{name}.1.pl |
ea55f735 | 39 | Source3: %{name}-ssl-certificate.sh |
d231add3 | 40 | Source4: %{name}-c_rehash.sh |
0d1c50df | 41 | Patch0: %{name}-alpha-ccc.patch |
e106ff02 | 42 | Patch1: %{name}-optflags.patch |
76855748 AO |
43 | Patch2: %{name}-include.patch |
44 | Patch3: %{name}-man-namespace.patch | |
45 | Patch4: %{name}-asflag.patch | |
46 | Patch5: %{name}-ca-certificates.patch | |
47 | Patch6: %{name}-ldflags.patch | |
48 | Patch7: %{name}-find.patch | |
49 | Patch8: pic.patch | |
76855748 | 50 | Patch10: %{name}_fix_for_x32.patch |
bd7f0ef1 | 51 | URL: http://www.openssl.org/ |
741aa025 | 52 | BuildRequires: bc |
9edbb66f | 53 | BuildRequires: perl-devel >= 1:5.6.1 |
77211fc0 | 54 | BuildRequires: pkgconfig |
9edbb66f | 55 | BuildRequires: rpm-perlprov >= 4.1-13 |
20bc1dd7 | 56 | BuildRequires: rpmbuild(macros) >= 1.213 |
31b28434 | 57 | BuildRequires: sed >= 4.0 |
77211fc0 | 58 | BuildRequires: zlib-devel |
618e7076 | 59 | Requires: ca-certificates >= 20141019-3 |
dece7a9c | 60 | Requires: rpm-whiteout >= 1.7 |
04a5ad1f AF |
61 | Obsoletes: SSLeay |
62 | Obsoletes: SSLeay-devel | |
63 | Obsoletes: SSLeay-perl | |
a280467c | 64 | Obsoletes: libopenssl0 |
4ec787ae | 65 | %if "%{pld_release}" == "ac" |
7bb98c5d | 66 | Conflicts: neon < 0.26.3-3 |
e21ec158 | 67 | Conflicts: ntpd < 4.2.4p8-10 |
f3136daa | 68 | Conflicts: openssh-clients < 2:5.8p1-9 |
4ec787ae ER |
69 | Conflicts: openssh-server < 2:5.8p1-9 |
70 | %else | |
3a24c9cc ER |
71 | Conflicts: neon < 0.29.6-8 |
72 | Conflicts: openssh-clients < 2:6.2p2-3 | |
73 | Conflicts: openssh-server < 2:6.2p2-3 | |
c04ce0eb | 74 | %endif |
0f86ef4a | 75 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21ac4f86 AF |
76 | |
77 | %description | |
78 | The OpenSSL Project is a collaborative effort to develop a robust, | |
b39fed70 | 79 | commercial-grade, full-featured, and Open Source toolkit implementing |
80 | the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS | |
81 | v1) protocols with full-strength cryptography world-wide. The project | |
82 | is managed by a worldwide community of volunteers that use the | |
83 | Internet to communicate, plan, and develop the OpenSSL tookit and its | |
84 | related documentation. | |
56470945 | 85 | |
b39fed70 | 86 | OpenSSL is based on the excellent SSLeay library developed by Eric A. |
87 | Young and Tim J. Hudson. The OpenSSL toolkit is licensed under an | |
88 | Apache-style licence, which basically means that you are free to get | |
89 | and use it for commercial and non-commercial purposes subject to some | |
90 | simple license conditions. | |
21ac4f86 | 91 | |
fc19f542 | 92 | This package contains shared libraries only, install openssl-tools if |
93 | you want to use openssl cmdline tool. | |
ce2ff00e | 94 | |
30e72515 JR |
95 | %description -l de.UTF-8 |
96 | Openssl enthält das OpenSSL Zertifikatsmanagementtool und shared | |
97 | libraries, die verschiedene Verschlüsselungs- und | |
98 | Entschlüsselungsalgorithmen und -protokolle, wie DES, RC4, RSA und SSL | |
99 | zur Verfügung stellen. | |
453a8bf3 | 100 | |
30e72515 JR |
101 | %description -l es.UTF-8 |
102 | Biblioteca C que suministra algoritmos y protocolos criptográficos. | |
2fad19b0 | 103 | |
30e72515 | 104 | %description -l fr.UTF-8 |
56470945 | 105 | OpenSSL est un outiil de gestion des certificats et les librairies |
106 | partagees qui fournit plusieurs protocoles et algorithmes de | |
107 | codage/decodage, incluant DES, RC4, RSA et SSL. | |
2fad19b0 | 108 | |
30e72515 JR |
109 | %description -l pl.UTF-8 |
110 | Implementacja protokołów kryptograficznych Secure Socket Layer (SSL) | |
78b5e413 TP |
111 | v2/v3 oraz Transport Layer Security (TLS v1). |
112 | ||
30e72515 JR |
113 | %description -l pt_BR.UTF-8 |
114 | Uma biblioteca C que fornece vários algoritmos e protocolos | |
115 | criptográficos, incluindo DES, RC4, RSA e SSL. Inclui bibliotecas | |
116 | compartilhadas e utilitários. | |
453a8bf3 | 117 | |
30e72515 JR |
118 | %description -l ru.UTF-8 |
119 | Программа openssl для работы с сертификатами и разделяемые библиотеки, | |
120 | которые реализуют множетсво криптографических алгоритмов, включая DES, | |
121 | RC4, RSA и SSL. | |
453a8bf3 | 122 | |
30e72515 JR |
123 | %description -l uk.UTF-8 |
124 | Програма openssl для роботи з сертифікатами та бібліотеки спільного | |
125 | користування, що реалізують велику кількість криптографічних | |
126 | алгоритмів, включаючи DES, RC4, RSA та SSL. | |
453a8bf3 | 127 | |
182f9d23 TP |
128 | %package engines |
129 | Summary: OpenSSL optional crypto engines | |
545f4646 | 130 | Summary(pl.UTF-8): Opcjonalne silniki kryptograficzne dla OpenSSL-a |
182f9d23 TP |
131 | Group: Libraries |
132 | Requires: %{name} = %{version}-%{release} | |
133 | ||
134 | %description engines | |
135 | With OpenSSL 0.9.6, a new component was added to support alternative | |
545f4646 JB |
136 | cryptography implementations, most commonly for interfacing with |
137 | external crypto devices (eg. accelerator cards). This component is | |
138 | called ENGINE. | |
182f9d23 TP |
139 | |
140 | There are currently built-in ENGINE implementations for the following | |
141 | crypto devices: | |
142 | ||
143 | - CryptoSwift | |
144 | - Compaq Atalla | |
145 | - nCipher CHIL | |
146 | - Nuron | |
147 | - Broadcom uBSec | |
148 | ||
149 | In addition, dynamic binding to external ENGINE implementations is now | |
3a24c9cc | 150 | provided by a special ENGINE called "dynamic". |
182f9d23 | 151 | |
545f4646 JB |
152 | %description engines -l pl.UTF-8 |
153 | Począwszy od OpenSSL-a 0.9.6 został dodany nowy komponent, mający | |
154 | wspierać alternatywne implementacje kryptografii, przeważnie | |
155 | współpracujące z zewnętrznymi urządzeniami kryptograficznymi (np. | |
3a24c9cc ER |
156 | kartami akceleratorów). Komponent ten jest nazywany SILNIKIEM (ang. |
157 | ENGINE). | |
545f4646 JB |
158 | |
159 | Obecnie istnieją wbudowane implementacje silników dla następujących | |
160 | urządzeń kryptograficznych: | |
161 | - CryptoSwift | |
162 | - Compaq Atalla | |
163 | - nCipher CHIL | |
164 | - Nuron | |
165 | - Broadcom uBSec | |
166 | ||
167 | Ponadto zapewnione jest dynamiczne wiązanie dla zewnętrznych | |
168 | implementacji silników poprzez specjalny silnik o nazwie "dynamic". | |
169 | ||
ce2ff00e | 170 | %package tools |
171 | Summary: OpenSSL command line tool and utilities | |
e6bfca5b | 172 | Summary(pl.UTF-8): Zestaw narzędzi i skryptów |
fc19f542 | 173 | Group: Applications/Communications |
82859ae1 | 174 | Requires: %{name} = %{version}-%{release} |
9583cd23 | 175 | Requires: which |
ce2ff00e | 176 | |
177 | %description tools | |
178 | The OpenSSL Toolkit cmdline tool openssl and utility scripts. | |
179 | ||
30e72515 JR |
180 | %description tools -l pl.UTF-8 |
181 | Zestaw narzędzi i skryptów wywoływanych z linii poleceń. | |
78b5e413 | 182 | |
ce2ff00e | 183 | %package tools-perl |
184 | Summary: OpenSSL utilities written in Perl | |
e6bfca5b | 185 | Summary(pl.UTF-8): Narzędzia OpenSSL napisane w perlu |
fc19f542 | 186 | Group: Applications/Communications |
82859ae1 | 187 | Requires: %{name} = %{version}-%{release} |
2b2149ff | 188 | |
ce2ff00e | 189 | %description tools-perl |
d86c2c8b | 190 | OpenSSL Toolkit tools written in Perl. |
2b2149ff | 191 | |
30e72515 JR |
192 | %description tools-perl -l pl.UTF-8 |
193 | Narzędzia OpenSSL napisane w perlu. | |
78b5e413 | 194 | |
faddd309 | 195 | %package devel |
ce2ff00e | 196 | Summary: Development part of OpenSSL Toolkit libraries |
e6bfca5b ER |
197 | Summary(de.UTF-8): Secure Sockets Layer Kommunikationslibrary: statische libraries+header |
198 | Summary(es.UTF-8): Bibliotecas y archivos de inclusión para desarrollo OpenSSL | |
199 | Summary(fr.UTF-8): Librairies statiques, headers et utilitaires pour communication SSL | |
200 | Summary(pl.UTF-8): Część bibiloteki OpenSSL przeznaczona dla programistów | |
201 | Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento OpenSSL | |
202 | Summary(ru.UTF-8): Библиотеки, хедеры и утилиты для Secure Sockets Layer | |
203 | Summary(uk.UTF-8): Бібліотеки, хедери та утиліти для Secure Sockets Layer | |
9c05bcac | 204 | Group: Development/Libraries |
82859ae1 | 205 | Requires: %{name} = %{version}-%{release} |
a280467c | 206 | Obsoletes: libopenssl0-devel |
faddd309 AF |
207 | |
208 | %description devel | |
209 | Development part of OpenSSL library. | |
210 | ||
30e72515 JR |
211 | %description devel -l es.UTF-8 |
212 | Bibliotecas y archivos de inclusión para desarrollo OpenSSL | |
453a8bf3 | 213 | |
30e72515 JR |
214 | %description devel -l pl.UTF-8 |
215 | Część biblioteki OpenSSL przeznaczona dla programistów. | |
faddd309 | 216 | |
30e72515 JR |
217 | %description devel -l pt_BR.UTF-8 |
218 | Uma biblioteca C que fornece vários algoritmos e protocolos | |
219 | criptográficos, incluindo DES, RC4, RSA e SSL. Inclui bibliotecas e | |
220 | arquivos de inclusão para desenvolvimento. | |
453a8bf3 | 221 | |
30e72515 JR |
222 | %description devel -l ru.UTF-8 |
223 | Программа openssl для работы с сертификатами и разделяемые библиотеки, | |
224 | которые реализуют множетсво криптографических алгоритмов, включая DES, | |
225 | RC4, RSA и SSL. Включает библиотеки и хедеры для разработки приложений | |
226 | с использованием SSL. | |
453a8bf3 | 227 | |
30e72515 JR |
228 | %description devel -l uk.UTF-8 |
229 | Програма openssl для роботи з сертифікатами та бібліотеки спільного | |
230 | користування, що реалізують велику кількість криптографічних | |
231 | алгоритмів, включаючи DES, RC4, RSA та SSL. Містить бібліотеки та | |
232 | хедери для розробки програм з використанням SSL. | |
453a8bf3 | 233 | |
faddd309 | 234 | %package static |
ce2ff00e | 235 | Summary: Static OpenSSL libraries |
e6bfca5b ER |
236 | Summary(pl.UTF-8): Statyczne wersje bibliotek z OpenSSL |
237 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com openssl | |
238 | Summary(ru.UTF-8): Статические библиотеки разработчика для OpenSSL | |
239 | Summary(uk.UTF-8): Статичні бібліотеки програміста для OpenSSL | |
9c05bcac | 240 | Group: Development/Libraries |
82859ae1 | 241 | Requires: %{name}-devel = %{version}-%{release} |
faddd309 AF |
242 | |
243 | %description static | |
ce2ff00e | 244 | Static OpenSSL Toolkit libraries. |
faddd309 | 245 | |
30e72515 | 246 | %description static -l pl.UTF-8 |
ce2ff00e | 247 | Statyczne wersje bibliotek z OpenSSL. |
faddd309 | 248 | |
30e72515 JR |
249 | %description static -l pt_BR.UTF-8 |
250 | Bibliotecas estáticas para desenvolvimento com openssl. | |
453a8bf3 | 251 | |
30e72515 JR |
252 | %description static -l ru.UTF-8 |
253 | Программа openssl для работы с сертификатами и разделяемые библиотеки, | |
254 | которые реализуют множетсво криптографических алгоритмов, включая DES, | |
255 | RC4, RSA и SSL. Включает статические библиотеки для разработки | |
256 | приложений с использованием OpenSSL. | |
453a8bf3 | 257 | |
30e72515 JR |
258 | %description static -l uk.UTF-8 |
259 | Програма openssl для роботи з сертифікатами та бібліотеки спільного | |
260 | користування, що реалізують велику кількість криптографічних | |
261 | алгоритмів, включаючи DES, RC4, RSA та SSL. Містить статичні | |
262 | бібліотеки для розробки програм з використанням SSL. | |
453a8bf3 | 263 | |
21ac4f86 | 264 | %prep |
81e27b7e ER |
265 | %if %{with snap} |
266 | %setup -qcT -a1 | |
267 | mv %{name}-OpenSSL_1_0_2-stable/* . | |
268 | %else | |
264f738a | 269 | %setup -q |
81e27b7e | 270 | %endif |
44d8c69e JB |
271 | %patch0 -p1 |
272 | %patch1 -p1 | |
05285465 | 273 | %patch2 -p1 |
9d16a74d | 274 | %patch3 -p1 |
44d8c69e JB |
275 | %patch4 -p1 |
276 | %patch5 -p1 | |
1c008d35 | 277 | %patch6 -p1 |
44d8c69e | 278 | %patch7 -p1 |
3b0168a6 | 279 | %patch8 -p1 |
f60e47ab | 280 | %ifarch x32 |
84745a0c | 281 | %patch10 -p1 |
42b56af8 | 282 | %endif |
84745a0c | 283 | |
44d8c69e | 284 | sed -i -e 's|\$prefix/\$libdir/engines|/%{_lib}/engines|g' Configure |
a9839ec4 | 285 | |
d76d59fa | 286 | %build |
00466ad3 | 287 | touch Makefile.* |
04a5ad1f | 288 | |
f061ca99 | 289 | PERL5LIB=$(pwd) %{__perl} util/perlpath.pl %{__perl} |
04a5ad1f | 290 | |
bf66f1a5 | 291 | OPTFLAGS="%{rpmcflags} %{rpmcppflags} %{?with_purify:-DPURIFY}" \ |
7250cee4 JB |
292 | PERL="%{__perl}" \ |
293 | %{__perl} ./Configure \ | |
0fdaa4e3 | 294 | --openssldir=%{_sysconfdir}/%{name} \ |
6e7b8079 | 295 | --libdir=%{_lib} \ |
e1798b93 AM |
296 | shared \ |
297 | threads \ | |
2a82d451 AO |
298 | %{?with_sslv2:enable-ssl2}%{!?with_sslv2:no-ssl2} \ |
299 | %{?with_sslv3:enable-ssl3}%{!?with_sslv3:no-ssl3} \ | |
93a4f283 | 300 | %{!?with_zlib:no-}zlib \ |
e1798b93 | 301 | enable-camelia \ |
215c1d6f AM |
302 | enable-cms \ |
303 | enable-idea \ | |
05889491 | 304 | enable-md2 \ |
e02b6d37 | 305 | enable-mdc2 \ |
215c1d6f | 306 | enable-rc5 \ |
e02b6d37 AM |
307 | enable-rfc3779 \ |
308 | enable-seed \ | |
309 | enable-tlsext \ | |
310 | %ifarch %{x8664} | |
311 | enable-ec_nistp_64_gcc_128 \ | |
312 | %endif | |
51e76169 | 313 | %ifarch %{ix86} |
04a32771 | 314 | %ifarch i386 |
9fc51b3c | 315 | 386 linux-elf |
915551a7 | 316 | # ^- allow running on 80386 (default code uses bswapl available on i486+) |
51e76169 | 317 | %else |
9fc51b3c | 318 | linux-elf |
75c27cbe | 319 | %endif |
51e76169 | 320 | %endif |
dfc15f38 | 321 | %ifarch alpha |
9fc51b3c | 322 | linux-alpha+bwx-gcc |
dfc15f38 | 323 | %endif |
20bc1dd7 | 324 | %ifarch %{x8664} |
9fc51b3c | 325 | linux-x86_64 |
e08c1652 | 326 | %endif |
6bd2fbde JR |
327 | %ifarch x32 |
328 | linux-x32 | |
329 | %endif | |
dfc15f38 | 330 | %ifarch ia64 |
9fc51b3c | 331 | linux-ia64 |
dfc15f38 | 332 | %endif |
75c27cbe | 333 | %ifarch ppc |
9fc51b3c JB |
334 | linux-ppc |
335 | %endif | |
336 | %ifarch ppc64 | |
337 | linux-ppc64 | |
75c27cbe | 338 | %endif |
05285465 | 339 | %ifarch sparc |
9fc51b3c | 340 | linux-sparcv8 |
0384baf6 | 341 | %endif |
36db42b5 | 342 | %ifarch sparcv9 |
9fc51b3c | 343 | linux-sparcv9 |
36db42b5 PS |
344 | %endif |
345 | %ifarch sparc64 | |
9fc51b3c | 346 | linux64-sparcv9 |
36db42b5 | 347 | %endif |
9f6d1eb0 | 348 | %ifarch armv4 armv5 armv5t armv5te armv5tel |
349 | linux-armv4 | |
350 | %endif | |
05285465 | 351 | |
81e27b7e ER |
352 | v=$(awk -F= '/^VERSION/{print $2}' Makefile) |
353 | test "$v" = %{version}%{?with_snap:-dev} | |
354 | ||
94d58138 | 355 | %{__make} -j1 all rehash %{?with_tests:tests} \ |
b84cddc8 | 356 | CC="%{__cc}" \ |
c75cb5a1 | 357 | ASFLAG='$(CFLAG) -Wa,--noexecstack' \ |
b84cddc8 | 358 | INSTALLTOP=%{_prefix} |
ce2ff00e | 359 | |
6a2c91da | 360 | # Rename POD sources of man pages. "openssl-" prefix is added to each |
1c008d35 | 361 | # manpage to avoid potential conflicts with other packages. |
ce2ff00e | 362 | |
7f10be72 | 363 | for dir in doc/{apps,ssl,crypto}; do |
ce2ff00e | 364 | cd $dir || exit 1; |
6a2c91da | 365 | %{__perl} -pi -e 's/(\W)((?<!openssl-)\w+)(\(\d\))/$1openssl-$2$3/g; s/openssl-openssl/openssl/g;' *.pod; |
78b5e413 | 366 | |
7f10be72 | 367 | for pod in !(openssl*).pod; do |
6a2c91da | 368 | %{__mv} $pod openssl-$pod; |
ce2ff00e | 369 | done |
7f10be72 | 370 | cd ../.. |
ce2ff00e | 371 | done |
372 | ||
21ac4f86 | 373 | %install |
04a5ad1f | 374 | rm -rf $RPM_BUILD_ROOT |
ce2ff00e | 375 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},%{_libdir}/%{name}} \ |
4b251642 | 376 | $RPM_BUILD_ROOT{%{_mandir}/{pl/man1,man{1,3,5,7}},%{_datadir}/ssl} \ |
c2a98469 | 377 | $RPM_BUILD_ROOT/%{_lib}/engines \ |
4b251642 | 378 | $RPM_BUILD_ROOT%{_pkgconfigdir} |
faddd309 | 379 | |
29a78a60 | 380 | %{__make} -j1 install \ |
faddd309 | 381 | INSTALLTOP=%{_prefix} \ |
027a4889 TO |
382 | INSTALL_PREFIX=$RPM_BUILD_ROOT \ |
383 | MANDIR=%{_mandir} | |
04a5ad1f | 384 | |
3819301b JB |
385 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/engines/* $RPM_BUILD_ROOT/%{_lib}/engines |
386 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* $RPM_BUILD_ROOT/%{_lib} | |
c2a98469 JR |
387 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libcrypto.*.*) $RPM_BUILD_ROOT%{_libdir}/libcrypto.so |
388 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libssl.*.*) $RPM_BUILD_ROOT%{_libdir}/libssl.so | |
04a5ad1f | 389 | |
3819301b JB |
390 | %{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/misc/* $RPM_BUILD_ROOT%{_libdir}/%{name} |
391 | %{__rm} -r $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/misc | |
04a5ad1f | 392 | |
1c008d35 | 393 | # not installed as individual utilities (see openssl dgst instead) |
3b19df6b | 394 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{dss1,md2,md4,md5,mdc2,ripemd160,sha,sha1,sha224,sha256,sha384,sha512}.1 |
1c008d35 | 395 | |
848e9cf2 | 396 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1/openssl.1 |
dece7a9c ER |
397 | install -p %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/ssl-certificate |
398 | install -p %{SOURCE4} $RPM_BUILD_ROOT%{_bindir}/c_rehash.sh | |
9fc51b3c | 399 | |
57dc6058 JB |
400 | %clean |
401 | rm -rf $RPM_BUILD_ROOT | |
61a04a63 | 402 | |
d86c2c8b | 403 | %post -p /sbin/ldconfig |
ce2ff00e | 404 | %postun -p /sbin/ldconfig |
04a5ad1f | 405 | |
c8f5291b ER |
406 | %triggerpostun -- %{name}-tools < 1.0.0-5 |
407 | # the hashing format has changed in 1.0.0 | |
408 | [ ! -x %{_sbindir}/update-ca-certificates ] || %{_sbindir}/update-ca-certificates --fresh || : | |
409 | ||
0fdaa4e3 | 410 | %triggerpostun -- %{name} < 0.9.8i-2 |
62bcfa4e ER |
411 | # don't do anything on --downgrade |
412 | if [ $1 -le 1 ]; then | |
413 | exit 0 | |
414 | fi | |
0fdaa4e3 JR |
415 | if [ -d /var/lib/openssl/certs ] ; then |
416 | mv /var/lib/openssl/certs/* %{_sysconfdir}/%{name}/certs 2>/dev/null || : | |
417 | fi | |
418 | if [ -d /var/lib/openssl/private ] ; then | |
419 | mv /var/lib/openssl/private/* %{_sysconfdir}/%{name}/private 2>/dev/null || : | |
420 | fi | |
421 | if [ -d /var/lib/openssl ] ; then | |
422 | for f in /var/lib/openssl/* ; do | |
423 | [ -f "$f" ] && mv "$f" %{_sysconfdir}/%{name} 2>/dev/null || : | |
424 | done | |
62bcfa4e ER |
425 | rmdir /var/lib/openssl/* 2>/dev/null || : |
426 | rmdir /var/lib/openssl 2>/dev/null || : | |
0fdaa4e3 JR |
427 | fi |
428 | ||
21ac4f86 | 429 | %files |
04a5ad1f | 430 | %defattr(644,root,root,755) |
57dc6058 | 431 | %doc CHANGES CHANGES.SSLeay LICENSE NEWS README doc/*.txt |
c2a98469 JR |
432 | %attr(755,root,root) /%{_lib}/libcrypto.so.*.*.* |
433 | %attr(755,root,root) /%{_lib}/libssl.so.*.*.* | |
fa6b6d15 | 434 | %dir %{_sysconfdir}/%{name} |
435 | %dir %{_sysconfdir}/%{name}/certs | |
b38449e1 | 436 | %dir %attr(700,root,root) %{_sysconfdir}/%{name}/private |
b87437db | 437 | %dir %{_datadir}/ssl |
ce2ff00e | 438 | |
182f9d23 | 439 | %files engines |
3a24c9cc | 440 | %defattr(644,root,root,755) |
182f9d23 TP |
441 | %dir /%{_lib}/engines |
442 | %attr(755,root,root) /%{_lib}/engines/*.so | |
443 | ||
ce2ff00e | 444 | %files tools |
445 | %defattr(644,root,root,755) | |
623d135e | 446 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/openssl.cnf |
d231add3 | 447 | %attr(755,root,root) %{_bindir}/c_rehash.sh |
44d8c69e | 448 | %attr(755,root,root) %{_bindir}/openssl |
ea55f735 | 449 | %attr(754,root,root) %{_bindir}/ssl-certificate |
17a30265 | 450 | |
ce2ff00e | 451 | %dir %{_libdir}/%{name} |
452 | %attr(755,root,root) %{_libdir}/%{name}/CA.sh | |
453 | %attr(755,root,root) %{_libdir}/%{name}/c_hash | |
ce2ff00e | 454 | %attr(755,root,root) %{_libdir}/%{name}/c_info |
455 | %attr(755,root,root) %{_libdir}/%{name}/c_issuer | |
456 | %attr(755,root,root) %{_libdir}/%{name}/c_name | |
457 | ||
d86c2c8b | 458 | %{_mandir}/man1/openssl.1* |
6a2c91da JB |
459 | %{_mandir}/man1/openssl-asn1parse.1* |
460 | %{_mandir}/man1/openssl-ca.1* | |
461 | %{_mandir}/man1/openssl-ciphers.1* | |
462 | %{_mandir}/man1/openssl-cms.1* | |
463 | %{_mandir}/man1/openssl-crl.1* | |
464 | %{_mandir}/man1/openssl-crl2pkcs7.1* | |
465 | %{_mandir}/man1/openssl-dgst.1* | |
466 | %{_mandir}/man1/openssl-dhparam.1* | |
467 | %{_mandir}/man1/openssl-dsa.1* | |
468 | %{_mandir}/man1/openssl-dsaparam.1* | |
469 | %{_mandir}/man1/openssl-ec.1* | |
470 | %{_mandir}/man1/openssl-ecparam.1* | |
471 | %{_mandir}/man1/openssl-enc.1* | |
472 | %{_mandir}/man1/openssl-errstr.1* | |
473 | %{_mandir}/man1/openssl-gendsa.1* | |
474 | %{_mandir}/man1/openssl-genpkey.1* | |
475 | %{_mandir}/man1/openssl-genrsa.1* | |
476 | %{_mandir}/man1/openssl-nseq.1* | |
477 | %{_mandir}/man1/openssl-ocsp.1* | |
478 | %{_mandir}/man1/openssl-passwd.1* | |
479 | %{_mandir}/man1/openssl-pkcs12.1* | |
480 | %{_mandir}/man1/openssl-pkcs7.1* | |
481 | %{_mandir}/man1/openssl-pkcs8.1* | |
482 | %{_mandir}/man1/openssl-pkey.1* | |
483 | %{_mandir}/man1/openssl-pkeyparam.1* | |
484 | %{_mandir}/man1/openssl-pkeyutl.1* | |
485 | %{_mandir}/man1/openssl-rand.1* | |
486 | %{_mandir}/man1/openssl-req.1* | |
487 | %{_mandir}/man1/openssl-rsa.1* | |
488 | %{_mandir}/man1/openssl-rsautl.1* | |
489 | %{_mandir}/man1/openssl-s_client.1* | |
490 | %{_mandir}/man1/openssl-s_server.1* | |
491 | %{_mandir}/man1/openssl-s_time.1* | |
492 | %{_mandir}/man1/openssl-sess_id.1* | |
493 | %{_mandir}/man1/openssl-smime.1* | |
494 | %{_mandir}/man1/openssl-speed.1* | |
495 | %{_mandir}/man1/openssl-spkac.1* | |
496 | %{_mandir}/man1/openssl-ts.1* | |
497 | %{_mandir}/man1/openssl-tsget.1* | |
498 | %{_mandir}/man1/openssl-verify.1* | |
499 | %{_mandir}/man1/openssl-version.1* | |
500 | %{_mandir}/man1/openssl-x509.1* | |
501 | %{_mandir}/man5/openssl-config.5* | |
502 | %{_mandir}/man5/openssl-x509v3_config.5* | |
62382817 | 503 | %lang(pl) %{_mandir}/pl/man1/openssl.1* |
ce2ff00e | 504 | |
505 | %files tools-perl | |
506 | %defattr(644,root,root,755) | |
62313b5e | 507 | %attr(755,root,root) %{_bindir}/c_rehash |
ce2ff00e | 508 | %attr(755,root,root) %{_libdir}/%{name}/CA.pl |
848e9cf2 | 509 | %attr(755,root,root) %{_libdir}/%{name}/tsget |
6a2c91da JB |
510 | %{_mandir}/man1/openssl-CA.pl.1* |
511 | %{_mandir}/man1/openssl-c_rehash.1* | |
faddd309 AF |
512 | |
513 | %files devel | |
514 | %defattr(644,root,root,755) | |
f4434df9 PS |
515 | %attr(755,root,root) %{_libdir}/libcrypto.so |
516 | %attr(755,root,root) %{_libdir}/libssl.so | |
ce2ff00e | 517 | %{_includedir}/%{name} |
9fc51b3c JB |
518 | %{_pkgconfigdir}/libcrypto.pc |
519 | %{_pkgconfigdir}/libssl.pc | |
8c362d23 | 520 | %{_pkgconfigdir}/openssl.pc |
6a2c91da JB |
521 | %{_mandir}/man3/openssl-*.3* |
522 | %{_mandir}/man7/openssl-des_modes.7* | |
faddd309 AF |
523 | |
524 | %files static | |
525 | %defattr(644,root,root,755) | |
7250cee4 JB |
526 | %{_libdir}/libcrypto.a |
527 | %{_libdir}/libssl.a |