Changeset 818 for spec/trunk/SPECS/openssl.spec
- Timestamp:
- Jun 30, 2016, 3:43:42 PM (9 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/openssl.spec (modified) (16 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/openssl.spec
r565 r818 1 # Note: this .spec is borrowed from openssl-1.0.0k-2.1.src.rpm 1 #define svn_url e:/trees/openssl/trunk 2 %define svn_url http://svn.netlabs.org/repos/ports/openssl/trunk 3 %define svn_rev 1637 4 5 6 # Note: this .spec is borrowed from: 7 # http://pkgs.fedoraproject.org/cgit/rpms/openssl.git/tree/openssl.spec 2 8 3 9 # For the curious: … … 19 25 # Arches on which we need to prevent arch conflicts on opensslconf.h, must 20 26 # also be handled in opensslconf-new.h. 21 %define multilib_arches %{ix86} ia64 ppc ppc64 s390 s390x sparcv9 sparc64 x86_64 27 %define multilib_arches %{ix86} ia64 %{mips} ppc %{power64} s390 s390x sparcv9 sparc64 x86_64 28 29 %global _performance_build 1 22 30 23 31 Summary: A general purpose cryptography library with TLS implementation 24 32 Name: openssl 25 Version: 1.0. 0r33 Version: 1.0.2h 26 34 Release: 1%{?dist} 27 28 #Source: openssl-%{version}.tar.gz29 35 30 36 License: OpenSSL 31 37 Group: System Environment/Libraries 32 38 URL: http://www.openssl.org/ 39 33 40 BuildRoot: %{_tmppath}/%{name}-%{version}-root 34 41 BuildRequires: coreutils, perl, sed, zlib-devel, diffutils 35 # krb5-devel 36 Requires: coreutils, ca-certificates 37 38 %define svn_url http://svn.netlabs.org/repos/ports/openssl/branches/1.0.0 39 %define svn_rev 1133 42 BuildRequires: gcc, make, subversion, zip 43 #BuildRequires: krb5-devel, perl-generators, 44 #BuildRequires: lksctp-tools-devel 45 #BuildRequires: /usr/bin/pod2man 46 47 Requires: coreutils 48 Requires: %{name}-libs = %{version}-%{release} 40 49 41 50 Source: %{name}-%{version}-r%{svn_rev}.zip 42 43 BuildRequires: gcc make subversion zip44 51 45 52 %description … … 49 56 protocols. 50 57 58 %package libs 59 Summary: A general purpose cryptography library with TLS implementation 60 Group: System Environment/Libraries 61 Requires: ca-certificates >= 2008-5 62 #Requires: crypto-policies 63 # Needed obsoletes due to the base/lib subpackage split 64 Obsoletes: openssl < 1.0.1-0.3.beta3 65 Obsoletes: openssl-fips < 1.0.1e-28 66 Provides: openssl-fips = %{version}-%{release} 67 68 %description libs 69 OpenSSL is a toolkit for supporting cryptography. The openssl-libs 70 package contains the libraries that are used by various applications which 71 support cryptographic algorithms and protocols. 72 51 73 %package devel 52 74 Summary: Files for development of applications which will use OpenSSL 53 75 Group: Development/Libraries 54 Requires: %{name} = %{version}-%{release}, zlib-devel 76 Requires: %{name}-libs = %{version}-%{release} 77 Requires: zlib-devel 78 #Requires: krb5-devel 55 79 Requires: pkgconfig 56 80 … … 82 106 from other formats to the formats used by the OpenSSL toolkit. 83 107 108 84 109 %prep 85 %if % (sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')110 %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0} 86 111 %setup -q 87 112 %else 88 113 %setup -n "%{name}-%{version}" -Tc 89 # we can't use svn export since it fails on symlinks (OS/2 bug in at least SVN 1.6.16), emulate with checkout 90 #svn export -r %{svn_rev} %{svn_url} . --force 91 svn checkout -r %{svn_rev} %{svn_url} . 92 find . -type d -path "*/.svn" -exec rm -rf "{}" + 93 rm -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" 94 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" "%{name}-%{version}") 114 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force 115 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" 116 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}") 95 117 %endif 118 119 sed -i 's/SHLIB_VERSION_NUMBER "1.0.0"/SHLIB_VERSION_NUMBER "%{version}"/' crypto/opensslv.h 96 120 97 121 # Modify the various perl scripts to reference perl in the right location. … … 99 123 100 124 # Generate a table with the compile settings for my perusal. 101 touch Makefile 102 make TABLE PERL=%{__perl} 125 # This part is not really necessary, as it gains nothing 126 #touch Makefile 127 #make TABLE PERL=%{__perl} 103 128 104 129 %build … … 115 140 116 141 ./Configure \ 117 --prefix=%{_ usr} --openssldir=%{_sysconfdir}/pki/tls ${sslflags} \142 --prefix=%{_prefix} --openssldir=%{_sysconfdir}/pki/tls ${sslflags} \ 118 143 zlib enable-camellia enable-seed enable-tlsext enable-rfc3779 \ 119 enable-cms enable-md2 experimental-jpake \ 120 shared ${sslarch} 121 122 # Original Fedora's openssl-1.0.0k-2.1 flags: 123 # zlib enable-camellia enable-seed enable-tlsext enable-rfc3779 \ 124 # enable-cms enable-md2 no-idea experimental-jpake \ 144 enable-cms enable-md2 enable-rc5 experimental-jpake \ 145 no-mdc2 no-ec2m no-gost no-srp \ 146 shared ${sslarch} 147 148 # Original Fedora's openssl-1.0.2h flags: 149 # --prefix=%{_prefix} --openssldir=%{_sysconfdir}/pki/tls ${sslflags} \ 150 # --system-ciphers-file=%{_sysconfdir}/crypto-policies/back-ends/openssl.config \ 151 # zlib sctp enable-camellia enable-seed enable-tlsext enable-rfc3779 \ 152 # enable-cms enable-md2 enable-rc5 \ 153 # no-mdc2 no-ec2m no-gost no-srp \ 125 154 # --with-krb5-flavor=MIT --enginesdir=%{_libdir}/openssl/engines \ 126 155 # --with-krb5-dir=/usr shared ${sslarch} %{?!nofips:fips} … … 128 157 # Add -Wa,--noexecstack here so that libcrypto's assembler modules will be 129 158 # marked as not requiring an executable stack. 130 #RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wa,--noexecstack" 159 # Also add -DPURIFY to make using valgrind with openssl easier as we do not 160 # want to depend on the uninitialized memory as a source of entropy anyway. 161 #RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wa,--noexecstack -DPURIFY" 131 162 make depend 132 # YD smp build not supported133 163 make all 134 164 … … 136 166 make rehash 137 167 138 # Overwrite FIPS README 139 #cp -f %{SOURCE11} . 168 # Clean up the .pc files 169 for i in libcrypto.pc libssl.pc openssl.pc ; do 170 sed -i '/^Libs.private:/{s/-L[^ ]* //;s/-Wl[^ ]* //}' $i 171 done 140 172 141 173 %check 142 174 # Verify that what was compiled actually works. 143 175 144 # We must revert patch33 before tests otherwise they will fail 145 #patch -p1 -R < %{PATCH33} 146 147 #LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 148 #export LD_LIBRARY_PATH 176 #OPENSSL_ENABLE_MD5_VERIFY= 177 #export OPENSSL_ENABLE_MD5_VERIFY 178 # this need to be set, as else it might use a already loaded one 179 #export LIBPATHSTRICT=T 180 #export BEGINLIBPATH=%{_builddir}/%{buildsubdir} 181 # tests are still disabled, as one is still falling 149 182 #make -C test apps tests 150 183 #%{__cc} -o openssl-thread-test \ … … 170 203 #%{nil} 171 204 205 %define __provides_exclude_from %{_libdir}/openssl 206 172 207 %install 173 208 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT … … 196 231 #rename so.%{soversion} so.%{version} $RPM_BUILD_ROOT%{_libdir}/*.so.%{soversion} 197 232 #mkdir $RPM_BUILD_ROOT/%{_lib} 198 #mv $RPM_BUILD_ROOT%{_libdir}/libcrypto.so.%{version} $RPM_BUILD_ROOT/%{_lib}199 233 #for lib in $RPM_BUILD_ROOT%{_libdir}/*.so.%{version} ; do 200 234 # chmod 755 ${lib} 201 235 # ln -s -f `basename ${lib}` $RPM_BUILD_ROOT%{_libdir}/`basename ${lib} .%{version}` 202 236 # ln -s -f `basename ${lib}` $RPM_BUILD_ROOT%{_libdir}/`basename ${lib} .%{version}`.%{soversion} 203 #done204 #for lib in $RPM_BUILD_ROOT/%{_lib}/*.so.%{version} ; do205 # chmod 755 ${lib}206 # ln -s -f ../../%{_lib}/`basename ${lib}` $RPM_BUILD_ROOT%{_libdir}/`basename ${lib} .%{version}`207 # ln -s -f `basename ${lib}` $RPM_BUILD_ROOT/%{_lib}/`basename ${lib} .%{version}`.%{soversion}208 237 #done 209 238 … … 223 252 # Rename man pages so that they don't conflict with other system man pages. 224 253 #pushd $RPM_BUILD_ROOT%{_mandir} 225 for manpage in $RPM_BUILD_ROOT%{_mandir}/man*/* ; do 254 pwd_save=`pwd` 255 cd $RPM_BUILD_ROOT%{_mandir} 256 ln -s -f config.5 man5/openssl.cnf.5 257 for manpage in man*/* ; do 226 258 if [ -L ${manpage} ]; then 227 259 TARGET=`ls -l ${manpage} | awk '{ print $NF }'` … … 236 268 #done 237 269 #popd 270 cd $pwd_save 238 271 239 272 # Pick a CA script. … … 276 309 %files 277 310 %defattr(-,root,root) 278 %doc FAQ LICENSE CHANGES NEWS INSTALL README 279 %doc doc/c-indentation.el doc/openssl.txt 280 %doc doc/openssl_button.html doc/openssl_button.gif 281 %doc doc/ssleay.txt 311 %doc LICENSE 312 %doc FAQ NEWS README 282 313 #%doc README.FIPS 283 %dir %{_sysconfdir}/pki/tls284 %dir %{_sysconfdir}/pki/tls/certs285 314 #%{_sysconfdir}/pki/tls/certs/make-dummy-cert 315 #%{_sysconfdir}/pki/tls/certs/renew-dummy-cert 286 316 #%{_sysconfdir}/pki/tls/certs/Makefile 287 %dir %{_sysconfdir}/pki/tls/misc288 317 %{_sysconfdir}/pki/tls/misc/CA 289 318 %dir %{_sysconfdir}/pki/CA … … 293 322 %dir %{_sysconfdir}/pki/CA/newcerts 294 323 %{_sysconfdir}/pki/tls/misc/c_* 295 %{_sysconfdir}/pki/tls/private296 297 %config(noreplace) %{_sysconfdir}/pki/tls/openssl.cnf298 299 324 %attr(0755,root,root) %{_bindir}/openssl.exe 300 %attr(0755,root,root) %{_libdir}/crypto%{soversion}.dll301 %attr(0755,root,root) %{_libdir}/ssl%{soversion}.dll302 #%attr(0644,root,root) /%{_lib}/.libcrypto.so.*.hmac303 #%attr(0644,root,root) %{_libdir}/.libssl.so.*.hmac304 %attr(0755,root,root) %{_libdir}/openssl305 325 %attr(0644,root,root) %{_mandir}/man1*/[ABD-Zabcd-z]* 306 326 %attr(0644,root,root) %{_mandir}/man5*/* 307 327 %attr(0644,root,root) %{_mandir}/man7*/* 308 328 329 330 %files libs 331 %defattr(-,root,root) 332 %doc LICENSE 333 %dir %{_sysconfdir}/pki/tls 334 %dir %{_sysconfdir}/pki/tls/certs 335 %dir %{_sysconfdir}/pki/tls/misc 336 %dir %{_sysconfdir}/pki/tls/private 337 %config(noreplace) %{_sysconfdir}/pki/tls/openssl.cnf 338 %attr(0755,root,root) %{_libdir}/crypto%{soversion}.dll 339 %attr(0755,root,root) %{_libdir}/ssl%{soversion}.dll 340 #%attr(0644,root,root) %{_libdir}/.libcrypto.so.*.hmac 341 #%attr(0644,root,root) %{_libdir}/.libssl.so.*.hmac 342 %attr(0755,root,root) %{_libdir}/openssl 343 344 309 345 %files devel 310 346 %defattr(-,root,root) 347 %doc doc/c-indentation.el doc/openssl.txt CHANGES 311 348 %{_prefix}/include/openssl 312 349 %attr(0755,root,root) %{_libdir}/lib*.a … … 314 351 %attr(0644,root,root) %{_libdir}/pkgconfig/*.pc 315 352 353 316 354 %files static 317 355 %defattr(-,root,root) … … 326 364 327 365 %changelog 366 * Wed Jun 29 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.0.2h-1 367 - Update to version 1.0.2h. 368 328 369 * Fri Apr 3 2015 Dmitriy Kuminov <coding@dmik.org> 1.0.0r-1 329 370 - Update to version 1.0.0r.
Note:
See TracChangeset
for help on using the changeset viewer.
