| 1 | # Note: this .spec is borrowed from https://src.fedoraproject.org/git/rpms/libgcrypt.git
|
|---|
| 2 |
|
|---|
| 3 | Name: libgcrypt
|
|---|
| 4 | Version: 1.9.0
|
|---|
| 5 | Release: 1%{?dist}
|
|---|
| 6 | URL: http://www.gnupg.org/
|
|---|
| 7 |
|
|---|
| 8 | %define gcrylibdir %{_libdir}
|
|---|
| 9 |
|
|---|
| 10 | # Technically LGPLv2.1+, but Fedora's table doesn't draw a distinction.
|
|---|
| 11 | # Documentation and some utilities are GPLv2+ licensed. These files
|
|---|
| 12 | # are in the devel subpackage.
|
|---|
| 13 | License: LGPLv2+
|
|---|
| 14 | Summary: A general-purpose cryptography library
|
|---|
| 15 |
|
|---|
| 16 | Vendor: bww bitwise works GmbH
|
|---|
| 17 | %scm_source github https://github.com/ydario/libgcrypt OS2-BRANCH
|
|---|
| 18 | #scm_source git file://f:/rd/ports/keepassx/libgpg-error OS2-BRANCH
|
|---|
| 19 |
|
|---|
| 20 | BuildRequires: gawk, libgpg-error-devel >= 1.11, pkgconfig
|
|---|
| 21 | #BuildRequires: fipscheck
|
|---|
| 22 | # This is needed only when patching the .texi doc.
|
|---|
| 23 | #BuildRequires: texinfo
|
|---|
| 24 | Group: System Environment/Libraries
|
|---|
| 25 |
|
|---|
| 26 | %package devel
|
|---|
| 27 | Summary: Development files for the %{name} package
|
|---|
| 28 | License: LGPLv2+ and GPLv2+
|
|---|
| 29 | Group: Development/Libraries
|
|---|
| 30 | Requires: libgpg-error-devel
|
|---|
| 31 | Requires: %{name} = %{version}-%{release}
|
|---|
| 32 |
|
|---|
| 33 | %description
|
|---|
| 34 | Libgcrypt is a general purpose crypto library based on the code used
|
|---|
| 35 | in GNU Privacy Guard. This is a development version.
|
|---|
| 36 |
|
|---|
| 37 | %description devel
|
|---|
| 38 | Libgcrypt is a general purpose crypto library based on the code used
|
|---|
| 39 | in GNU Privacy Guard. This package contains files needed to develop
|
|---|
| 40 | applications using libgcrypt.
|
|---|
| 41 |
|
|---|
| 42 | %debug_package
|
|---|
| 43 |
|
|---|
| 44 | %prep
|
|---|
| 45 | %scm_setup
|
|---|
| 46 | libtoolize
|
|---|
| 47 | autogen.sh --force
|
|---|
| 48 |
|
|---|
| 49 | %build
|
|---|
| 50 | %configure --disable-static \
|
|---|
| 51 | --disable-doc \
|
|---|
| 52 | --enable-pubkey-ciphers='dsa elgamal rsa ecc'
|
|---|
| 53 | make %{?_smp_mflags}
|
|---|
| 54 |
|
|---|
| 55 | %check
|
|---|
| 56 |
|
|---|
| 57 | %install
|
|---|
| 58 | make install DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 59 |
|
|---|
| 60 | # replace my_host with none.
|
|---|
| 61 | sed -i -e 's,^my_host=".*"$,my_host="none",g' $RPM_BUILD_ROOT/%{_bindir}/libgcrypt-config
|
|---|
| 62 |
|
|---|
| 63 | rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir ${RPM_BUILD_ROOT}/%{_libdir}/*.la
|
|---|
| 64 |
|
|---|
| 65 | %files
|
|---|
| 66 | %defattr(-,root,root,-)
|
|---|
| 67 | #%dir /etc/gcrypt
|
|---|
| 68 | #%config(noreplace) /etc/gcrypt/random.conf
|
|---|
| 69 | %{gcrylibdir}/gcrypt*.dll
|
|---|
| 70 | #%{gcrylibdir}/.libgcrypt.so.*.hmac
|
|---|
| 71 | %{!?_licensedir:%global license %%doc}
|
|---|
| 72 | %license COPYING.LIB
|
|---|
| 73 | %doc AUTHORS NEWS THANKS
|
|---|
| 74 |
|
|---|
| 75 | %files devel
|
|---|
| 76 | %defattr(-,root,root,-)
|
|---|
| 77 | %{_bindir}/%{name}-config
|
|---|
| 78 | %{_bindir}/dumpsexp.exe
|
|---|
| 79 | %{_bindir}/hmac256.exe
|
|---|
| 80 | %{_bindir}/mpicalc.exe
|
|---|
| 81 | %{_includedir}/*
|
|---|
| 82 | %{_libdir}/*.a
|
|---|
| 83 | %{_datadir}/aclocal/*
|
|---|
| 84 | #%{_mandir}/man1/*
|
|---|
| 85 | #%{_infodir}/gcrypt.info*
|
|---|
| 86 | #%{!?_licensedir:%global license %%doc}
|
|---|
| 87 | %license COPYING
|
|---|
| 88 |
|
|---|
| 89 | %changelog
|
|---|
| 90 | * Tue Nov 22 2017 yd <yd@os2power.com> 1.8.1-1
|
|---|
| 91 | - first public rpm build.
|
|---|