]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blobdiff - openssl/openssl.nm
Merge remote-tracking branch 'stevee/openvswitch-systemd'
[people/amarx/ipfire-3.x.git] / openssl / openssl.nm
index f221603bfe064b0381994007a2c6bf8032248189..d484818cd16595abc34efa20b16d6fb966b58db1 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = openssl
-version    = 1.0.0g
-release    = 1
+version    = 1.0.1b
+release    = 2
 
 maintainer = Michael Tremer <michael.tremer@ipfire.org>
 groups     = System/Libraries
@@ -30,11 +30,14 @@ build
                zlib-devel
        end
 
+       CFLAGS += -DPURIFY
+       export RPM_OPT_FLAGS = %{CFLAGS}
+
        prepare_cmds
                find crypto/ -name Makefile -exec \
                        sed 's/^ASFLAGS=/&-Wa,--noexecstack /' -i {} \;
 
-               # Modify the various perl scripts to reference perl in the right location.
+               # Modify the various perl scripts to reference perl in the right location.
                perl util/perlpath.pl /usr/bin
 
                # Generate a table with the compile settings for my perusal.
@@ -54,6 +57,10 @@ build
                ssl_arch = linux-generic32
        end
 
+       if "%{DISTRO_ARCH}" == "armv7hl"
+               ssl_arch = linux-generic32
+       end
+
        build
                ./Configure \
                        --prefix=/usr \
@@ -69,29 +76,30 @@ build
                        no-idea \
                        no-mdc2 \
                        no-rc5 \
-                       no-ec no-ecdh no-ecdsa \
+                       no-ec no-ec2m no-ecdh no-ecdsa \
+                       no-srp \
                        -DSSL_FORBID_ENULL \
-                        %{ssl_arch}
+                        %{ssl_arch} \
+                       fips
 
                # Build.
-               make depend all build-shared RPM_OPT_FLAGS="%{CFLAGS}" #%{PARALLELISMFLAGS}
+               make depend
+               make all
 
                # Generate hashes for the included certs.
-               make rehash build-shared
+               make rehash
        end
 
        test
+               # Revert ca-dir patch. Otherwise the tests will fail.
+               patch -Np1 -R < %{DIR_PATCHES}/openssl-1.0.0-beta4-ca-dir.patch
+
                make test
        end
 
        install
                make install build-shared INSTALL_PREFIX=%{BUILDROOT}
 
-               mkdir -pv %{BUILDROOT}/%{lib}
-               mv -vf %{BUILDROOT}%{libdir}/lib{crypto,ssl}.so.* %{BUILDROOT}/%{lib}
-               ln -svf ../../%{lib}/libcrypto.so.10 %{BUILDROOT}%{libdir}/libcrypto.so
-               ln -svf ../../%{lib}/libssl.so.10 %{BUILDROOT}%{libdir}/libssl.so
-
                # Install manpages do right place
                mkdir -pv %{BUILDROOT}/usr/share
                mv -v %{BUILDROOT}/etc/pki/tls/man %{BUILDROOT}/usr/share/
@@ -107,7 +115,7 @@ build
                cp -v -r certs %{BUILDROOT}/etc/pki/tls
 
                # Rename man pages so that they don't conflict with other system man pages.
-               pushd ${BUILDROOT}/usr/share/man
+               pushd %{BUILDROOT}%{mandir}
                for manpage in man*/*; do
                        if [ -L ${manpage} ]; then
                                TARGET=`ls -l ${manpage} | awk '{ print $NF }'`
@@ -117,9 +125,6 @@ build
                                mv ${manpage} ${manpage}ssl
                        fi
                done
-
-               mv -v %{BUILDROOT}/usr/share/man/man1/{,ssl}passwd.1
-               mv -v %{BUILDROOT}/usr/share/man/man1/{,ssl}rand.1
                popd
        end
 end
@@ -127,6 +132,14 @@ end
 packages
        package %{name}
 
+       package %{name}-libs
+               template LIBS
+
+               requires += ca-certificates
+
+               files += %{libdir}/openssl
+       end
+
        package %{name}-devel
                template DEVEL
        end