Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mge1512:security
libgcrypt
libgcrypt.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libgcrypt.spec of Package libgcrypt
# # spec file for package libgcrypt # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild %define build_hmac256 1 %define separate_hmac256_binary 0 Name: libgcrypt BuildRequires: libgpg-error-devel >= 1.10 Url: http://www.gnu.org/directory/Security/libgcrypt.html Version: 1.5.0 Release: 6.<RELEASE11> Summary: The GNU Crypto Library License: GPL v2 or later; LGPL v2.1 or later Group: Development/Libraries/C and C++ AutoReqProv: on Source0: %name-%version.tar.bz2 Source1: %name-%version.tar.bz2.sig Source2: baselibs.conf Patch0: %name-ppc64.patch Patch1: libgcrypt-strict-aliasing.patch # Patch2: libgcrypt-1.4.4-mpicheck.patch Patch3: libgcrypt-1.4.1-rijndael_no_strict_aliasing.patch Patch4: libgcrypt-sparcv9.diff # Patch5: libgcrypt-1.4.6-as-needed.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Libgcrypt is a general purpose crypto library based on the code used in GnuPG (alpha version). Authors: -------- Maintainer: wk@g10code.com Authors: Werner Koch <wk@gnupg.org> Matthew Skala <mskala@ansuz.sooke.bc.ca> Michael Roth <mroth@nessie.de> Niklas Hernaeus <nh@df.lth.se> R�mi Guyomarch <rguyom@mail.dotcom.fr> Timo Schulz <twoaday@freakmail.de> %package -n libgcrypt11 License: GPL v2 or later; LGPL v2.1 or later Summary: The GNU Crypto Library Group: Development/Libraries/C and C++ # bug437293 %ifarch ppc64 Obsoletes: libgcrypt-64bit %endif # # libgcrypt last used in 10.3 Requires: haveged Obsoletes: libgcrypt < %{version} Provides: libgcrypt = %{version} %description -n libgcrypt11 Libgcrypt is a general purpose crypto library based on the code used in GnuPG (alpha version). Authors: -------- Maintainer: wk@g10code.com Authors: Werner Koch <wk@gnupg.org> Matthew Skala <mskala@ansuz.sooke.bc.ca> Michael Roth <mroth@nessie.de> Niklas Hernaeus <nh@df.lth.se> R�mi Guyomarch <rguyom@mail.dotcom.fr> Timo Schulz <twoaday@freakmail.de> %if 0%{?separate_hmac256_binary} %package hmac256 License: GPL v2 or later; LGPL v2.1 or later Summary: The GNU Crypto Library Group: Development/Libraries/C and C++ Requires: libgcrypt11 = %version libgpg-error-devel PreReq: %install_info_prereq %description hmac256 Libgcrypt is a general purpose crypto library based on the code used in GnuPG (alpha version). Authors: -------- Maintainer: wk@g10code.com Authors: Werner Koch <wk@gnupg.org> Matthew Skala <mskala@ansuz.sooke.bc.ca> Michael Roth <mroth@nessie.de> Niklas Hernaeus <nh@df.lth.se> R�mi Guyomarch <rguyom@mail.dotcom.fr> Timo Schulz <twoaday@freakmail.de> %endif # #if separate_hmac256_binary %package devel License: GNU Free Documentation License, Version 1.1 (GFDL 1.1); GPL v2 or later; LGPL v2.1 or later; X11/MIT Summary: The GNU Crypto Library Group: Development/Libraries/C and C++ Requires: libgcrypt11 = %version, libgpg-error-devel, glibc-devel # bug437293 %ifarch ppc64 Obsoletes: libgcrypt-devel-64bit %endif # PreReq: %install_info_prereq %description devel Libgcrypt is a general purpose crypto library based on the code used in GnuPG (alpha version). This package contains needed files to compile and link against the library. Authors: -------- Maintainer: wk@g10code.com Authors: Werner Koch <wk@gnupg.org> Matthew Skala <mskala@ansuz.sooke.bc.ca> Michael Roth <mroth@nessie.de> Niklas Hernaeus <nh@df.lth.se> R�mi Guyomarch <rguyom@mail.dotcom.fr> Timo Schulz <twoaday@freakmail.de> %prep %setup -q -n libgcrypt-%version %patch0 -p1 %patch1 # %patch2 %patch3 -p1 %patch4 -p1 # %patch5 -p1 %build # define ciphers to build ENABLE_CIPHER="arcfour blowfish cast5 des aes twofish serpent rfc2268 seed camellia" ENABLE_PUBKEY="dsa elgamal rsa ecc" ENABLE_DIGEST="crc md4 md5 rmd160 sha1 sha256 sha512 tiger whirlpool" # echo building with build_hmac256 set to %{build_hmac256} %{?suse_update_config} autoreconf -fi %configure --with-pic --libdir=/%{_lib} \ --enable-noexecstack \ --disable-static \ --enable-m-guard \ %ifarch %sparc --disable-asm \ %endif --enable-ciphers="$ENABLE_CIPHER" \ --enable-pubkey-ciphers="$ENABLE_PUBKEY"\ --enable-digests="$ENABLE_DIGEST" \ --enable-hmac-binary-check \ --enable-random=linux \ --without-capabilities \ --disable-aesni-support %{__make} %{?_smp_mflags} %if 0%{?build_hmac256} # this is a hack that re-defines the __os_install_post macro # for a simple reason: the macro strips the binaries and thereby # invalidates a HMAC that may have been created earlier. # solution: create the hashes _after_ the macro runs. # # this shows up earlier because otherwise the %expand of # the macro is too late. %{expand:%%global __os_install_post {%__os_install_post %{buildroot}/bin/hmac256 "What am I, a doctor or a moonshuttle conductor?" \ < %{buildroot}/bin/hmac256 > %{buildroot}/bin/.hmac256.hmac %{buildroot}/bin/hmac256 "What am I, a doctor or a moonshuttle conductor?" \ < %{buildroot}/%{_lib}/libgcrypt.so.11.7.0 > %{buildroot}/%{_lib}/.libgcrypt.so.11.hmac }} %endif %check # Nice idea. however this uses /dev/random, which hangs # on hardware without random feeds. # make check %install make DESTDIR=$RPM_BUILD_ROOT install # rm $RPM_BUILD_ROOT/%{_lib}/libgcrypt.la mkdir -p $RPM_BUILD_ROOT%_libdir %{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/%{name}.so) %{buildroot}%{_libdir}/%{name}.so %{__rm} -v %{buildroot}/%{_lib}/%{name}.so # # mkdir -p %{buildroot}/bin mv %{buildroot}/%{_bindir}/hmac256 %{buildroot}/bin/hmac256 %if 0%{?build_hmac256} #%{buildroot}/bin/hmac256 "What am I, a doctor or a moonshuttle conductor?" \ # < %{buildroot}/bin/hmac256 > %{buildroot}/bin/.hmac256.hmac #%{buildroot}/bin/hmac256 "What am I, a doctor or a moonshuttle conductor?" \ # < %{buildroot}/%{_lib}/libgcrypt.so.11.6.0 > src/.libs/.libgcrypt.so.11.hmac # ## The file above is needed for succesfull make check run #install -m 0644 src/.libs/.libgcrypt.so.11.hmac \ # %{buildroot}/%{_lib}/.libgcrypt.so.11.6.0.hmac # # for a listing of the files in the build log and to see what happened # to the files after build and before packaging... tar cfvv a.tar %{buildroot}/%{_lib} %{buildroot}/bin mv -v a.tar /var/tmp %endif # if %build_hmac256 = 1 %clean rm -rf $RPM_BUILD_ROOT %post -n libgcrypt11 /sbin/ldconfig %postun -n libgcrypt11 /sbin/ldconfig %post devel %install_info --info-dir=%{_infodir} %{_infodir}/gcrypt.info.gz %postun devel %install_info_delete --info-dir=%{_infodir} %{_infodir}/gcrypt.info.gz %files -n libgcrypt11 %defattr(-,root,root) %doc AUTHORS COPYING COPYING.LIB ChangeLog NEWS README THANKS TODO %doc %_infodir/gcrypt.info* /%_lib/libgcrypt.so.11* %if 0%{?build_hmac256} /%_lib/.libgcrypt.so.11.hmac %endif # %if 0%{?build_hmac256} %if 0%{?separate_hmac256_binary} %files hmac256 %defattr(-,root,root) %endif # %if 0%{?separate_hmac256_binary} /bin/hmac256 /bin/.hmac256.hmac %files devel %defattr(-,root,root) %_bindir/dumpsexp %_bindir/libgcrypt-config %_libdir/libgcrypt.so %_includedir/gcrypt*.h %_datadir/aclocal/libgcrypt.m4 %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor