1 |
%define major 0 |
2 |
%define libname %mklibname gpg-error %{major} |
3 |
%define develname %mklibname gpg-error -d |
4 |
|
5 |
Summary: Library containing common error values for GnuPG components |
6 |
Name: libgpg-error |
7 |
Version: 1.46 |
8 |
Release: %mkrel 1 |
9 |
License: LGPLv2+ |
10 |
Group: System/Libraries |
11 |
URL: https://www.gnupg.org/ |
12 |
Source0: https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-%{version}.tar.bz2 |
13 |
|
14 |
%description |
15 |
This is a library that defines common error values for all GnuPG |
16 |
components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt, |
17 |
pinentry, SmartCard Daemon and possibly more in the future. |
18 |
|
19 |
%package common |
20 |
Summary: Common files for libgpg-error |
21 |
Group: System/Libraries |
22 |
BuildArch: noarch |
23 |
|
24 |
%description common |
25 |
This package contains the common files that are used by the |
26 |
libgpg-error library. |
27 |
|
28 |
%package -n %{libname} |
29 |
Summary: Library containing common error values for GnuPG components |
30 |
Group: System/Libraries |
31 |
Provides: %{name} = %{version}-%{release} |
32 |
Requires: %{name}-common >= %{version}-%{release} |
33 |
|
34 |
%description -n %{libname} |
35 |
This is a library that defines common error values for all GnuPG |
36 |
components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt, |
37 |
pinentry, SmartCard Daemon and possibly more in the future. |
38 |
|
39 |
%package -n %{develname} |
40 |
Summary: Development related files of %{name} |
41 |
Group: Development/Other |
42 |
Provides: %{name}-devel = %{version}-%{release} |
43 |
Provides: gpg-error-devel = %{version}-%{release} |
44 |
Requires: %{libname} = %{version}-%{release} |
45 |
|
46 |
%description -n %{develname} |
47 |
%{name} is a library that defines common error values for all |
48 |
GnuPG components. Among these are GPG, GPGSM, GPGME, GPG-Agent, |
49 |
libgcrypt, pinentry, SmartCard Daemon and possibly more in the future. |
50 |
|
51 |
This package contains headers and other necessary files to develop |
52 |
or compile applications that use %{name}. |
53 |
|
54 |
%prep |
55 |
%setup -q |
56 |
%autopatch -p1 |
57 |
|
58 |
%build |
59 |
%configure --disable-static \ |
60 |
--disable-rpath \ |
61 |
--enable-install-gpg-error-config |
62 |
%make_build |
63 |
|
64 |
%check |
65 |
%__make check |
66 |
|
67 |
%install |
68 |
%make_install |
69 |
rm -f %{buildroot}%{_libdir}/*.la |
70 |
|
71 |
%find_lang %{name} |
72 |
|
73 |
%files common -f %{name}.lang |
74 |
|
75 |
%files -n %{libname} |
76 |
%{_libdir}/lib*.so.%{major}{,.*} |
77 |
|
78 |
%files -n %{develname} |
79 |
%doc AUTHORS ChangeLog NEWS README |
80 |
%{_bindir}/* |
81 |
%{_datadir}/aclocal/*.m4 |
82 |
%{_libdir}/pkgconfig/gpg-error.pc |
83 |
%{_libdir}/lib*.so |
84 |
%{_includedir}/* |
85 |
%{_datadir}/common-lisp/source/gpg-error |
86 |
%{_datadir}/libgpg-error/errorref.txt |
87 |
%{_infodir}/gpgrt.info.* |
88 |
%{_mandir}/man1/gpg-error-config.* |