3 %bcond_without static_libs # don't build static library
5 Summary: Library libgpg-error
6 Summary(pl.UTF-8): Biblioteka libgpg-error
12 Source0: ftp://ftp.gnupg.org/gcrypt/libgpg-error/%{name}-%{version}.tar.bz2
13 # Source0-md5: eb171d62d761f49e110b77b747d8a157
14 Patch0: %{name}-info.patch
15 URL: http://www.gnupg.org/related_software/libgpg-error/
16 BuildRequires: autoconf >= 2.59
17 BuildRequires: automake >= 1:1.14
18 BuildRequires: gettext-tools >= 0.19.3
19 BuildRequires: libtool >= 2:2.2.6
20 BuildRequires: texinfo
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 libgpg-error is a library that defines common error values for all
25 GnuPG components. Among these are GPG, GPGSM, GPGME, GPG-Agent,
26 libgcrypt, pinentry, SmartCard Daemon and possibly more in the future.
28 %description -l pl.UTF-8
29 libgpg-error jest biblioteką definiującą wartości błędów wspólne dla
30 komponentów GnuPG. Są wśród nich GPG, GPGSM, GPGME, GPG-Agent,
31 libgcrypt, pinentry, SmartCard Daemon i inne - w przyszłości.
34 Summary: Header files for libgpg-error
35 Summary(pl.UTF-8): Pliki nagłówkowe dla libgpg-error
36 Group: Development/Libraries
37 Requires: %{name} = %{version}-%{release}
40 libgpg-error is a library that defines common error values for all
41 GnuPG components. Among these are GPG, GPGSM, GPGME, GPG-Agent,
42 libgcrypt, pinentry, SmartCard Daemon and possibly more in the future.
44 This package contains the header files needed to develop programs that
45 use these libgpg-error.
47 %description devel -l pl.UTF-8
48 libgpg-error jest biblioteką definiującą wartości błędów wspólne dla
49 komponentów GnuPG. Są wśród nich GPG, GPGSM, GPGME, GPG-Agent,
50 libgcrypt, pinentry, SmartCard Daemon i inne - w przyszłości.
52 Pakiet zawiera pliki nagłówkowe niezbędne do kompilowania programów
53 używających biblioteki libgpg-error.
56 Summary: Static version of libgpg-error library
57 Summary(pl.UTF-8): Statyczna wersja biblioteki libgpg-error
58 Group: Development/Libraries
59 Requires: %{name}-devel = %{version}-%{release}
62 libgpg-error is a library that defines common error values for all
63 GnuPG components. Among these are GPG, GPGSM, GPGME, GPG-Agent,
64 libgcrypt, pinentry, SmartCard Daemon and possibly more in the future.
66 This package contains the static libgpg-error libraries.
68 %description static -l pl.UTF-8
69 libgpg-error jest biblioteką definiującą wartości błędów wspólne dla
70 komponentów GnuPG. Są wśród nich GPG, GPGSM, GPGME, GPG-Agent,
71 libgcrypt, pinentry, SmartCard Daemon i inne - w przyszłości.
73 Pakiet zawiera statyczne biblioteki libgpg-error.
75 %package -n common-lisp-gpg-error
76 Summary: Common Lisp binding for libgpg-error library
77 Summary(pl.UTF-8): Wiązania Common Lispa do biblioteki libgpg-error
79 Requires: %{name} = %{version}-%{release}
80 Requires: common-lisp-controller
82 %description -n common-lisp-gpg-error
83 Common Lisp binding for libgpg-error library.
85 %description -n common-lisp-gpg-error -l pl.UTF-8
86 Wiązania Common Lispa do biblioteki libgpg-error.
101 %{?with_static_libs:--enable-static}
105 rm -rf $RPM_BUILD_ROOT
108 DESTDIR=$RPM_BUILD_ROOT
110 install -d $RPM_BUILD_ROOT/%{_lib}
111 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libgpg-error.so.* $RPM_BUILD_ROOT/%{_lib}
112 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libgpg-error.so.*.*.*) \
113 $RPM_BUILD_ROOT%{_libdir}/libgpg-error.so
118 rm -rf $RPM_BUILD_ROOT
120 %post -p /sbin/ldconfig
121 %postun -p /sbin/ldconfig
123 %files -f %{name}.lang
124 %defattr(644,root,root,755)
125 %doc AUTHORS ChangeLog NEWS README THANKS
126 %attr(755,root,root) %{_bindir}/gpg-error
127 %attr(755,root,root) /%{_lib}/libgpg-error.so.*.*.*
128 %attr(755,root,root) %ghost /%{_lib}/libgpg-error.so.0
129 %{_datadir}/libgpg-error
132 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_bindir}/gpgrt-config
134 %attr(755,root,root) %{_bindir}/yat2m
135 %attr(755,root,root) %{_libdir}/libgpg-error.so
136 %{_libdir}/libgpg-error.la
137 %{_includedir}/gpg-error.h
138 %{_includedir}/gpgrt.h
139 %{_aclocaldir}/gpg-error.m4
140 %{_aclocaldir}/gpgrt.m4
141 %{_infodir}/gpgrt.info*
142 %{_pkgconfigdir}/gpg-error.pc
143 %{_datadir}/man/man1/gpgrt-config.1*
145 %if %{with static_libs}
147 %defattr(644,root,root,755)
148 %{_libdir}/libgpg-error.a
151 %files -n common-lisp-gpg-error
152 %defattr(644,root,root,755)
153 %{_datadir}/common-lisp/source/gpg-error