source: spec/trunk/SPECS/libgcrypt.spec@ 1566

Last change on this file since 1566 was 1259, checked in by Yuri Dario, 8 years ago

spec: libgcrypt: Release version 1.9.0-1.

File size: 2.3 KB
Line 
1# Note: this .spec is borrowed from https://src.fedoraproject.org/git/rpms/libgcrypt.git
2
3Name: libgcrypt
4Version: 1.9.0
5Release: 1%{?dist}
6URL: 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.
13License: LGPLv2+
14Summary: A general-purpose cryptography library
15
16Vendor: 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
20BuildRequires: gawk, libgpg-error-devel >= 1.11, pkgconfig
21#BuildRequires: fipscheck
22# This is needed only when patching the .texi doc.
23#BuildRequires: texinfo
24Group: System Environment/Libraries
25
26%package devel
27Summary: Development files for the %{name} package
28License: LGPLv2+ and GPLv2+
29Group: Development/Libraries
30Requires: libgpg-error-devel
31Requires: %{name} = %{version}-%{release}
32
33%description
34Libgcrypt is a general purpose crypto library based on the code used
35in GNU Privacy Guard. This is a development version.
36
37%description devel
38Libgcrypt is a general purpose crypto library based on the code used
39in GNU Privacy Guard. This package contains files needed to develop
40applications using libgcrypt.
41
42%debug_package
43
44%prep
45%scm_setup
46libtoolize
47autogen.sh --force
48
49%build
50%configure --disable-static \
51 --disable-doc \
52 --enable-pubkey-ciphers='dsa elgamal rsa ecc'
53make %{?_smp_mflags}
54
55%check
56
57%install
58make install DESTDIR=$RPM_BUILD_ROOT
59
60# replace my_host with none.
61sed -i -e 's,^my_host=".*"$,my_host="none",g' $RPM_BUILD_ROOT/%{_bindir}/libgcrypt-config
62
63rm -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.
Note: See TracBrowser for help on using the repository browser.