]>
Commit | Line | Data |
---|---|---|
35cefa43 | 1 | # |
9abbe11f | 2 | # Conditional build: |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
e566464f | 5 | Summary: Library libgpg-error |
67bfd86b | 6 | Summary(pl.UTF-8): Biblioteka libgpg-error |
e566464f | 7 | Name: libgpg-error |
bdbff71f | 8 | Version: 1.26 |
e78023d9 | 9 | Release: 1 |
9b11502f | 10 | License: LGPL v2.1+ |
e566464f | 11 | Group: Libraries |
ca15b246 | 12 | Source0: ftp://ftp.gnupg.org/gcrypt/libgpg-error/%{name}-%{version}.tar.bz2 |
bdbff71f | 13 | # Source0-md5: 97456709dbbcbb69354317ffe3e347cd |
ac6b3ce0 | 14 | Patch0: %{name}-pl.po-update.patch |
c83646b6 | 15 | Patch1: %{name}-info.patch |
63ee71c7 | 16 | URL: http://www.gnupg.org/related_software/libgpg-error/ |
0574e73d | 17 | BuildRequires: autoconf >= 2.59 |
43c5e4bf JB |
18 | BuildRequires: automake >= 1:1.14 |
19 | BuildRequires: gettext-tools >= 0.19.3 | |
d43bb331 | 20 | BuildRequires: libtool >= 2:2.2.6 |
c83646b6 | 21 | BuildRequires: texinfo |
e566464f | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | libgpg-error is a library that defines common error values for all | |
26 | GnuPG components. Among these are GPG, GPGSM, GPGME, GPG-Agent, | |
27 | libgcrypt, pinentry, SmartCard Daemon and possibly more in the future. | |
28 | ||
08113de1 JR |
29 | %description -l pl.UTF-8 |
30 | libgpg-error jest biblioteką definiującą wartości błędów wspólne dla | |
31 | komponentów GnuPG. Są wśród nich GPG, GPGSM, GPGME, GPG-Agent, | |
32 | libgcrypt, pinentry, SmartCard Daemon i inne - w przyszłości. | |
e566464f | 33 | |
34 | %package devel | |
ac6b3ce0 | 35 | Summary: Header files for libgpg-error |
67bfd86b | 36 | Summary(pl.UTF-8): Pliki nagłówkowe dla libgpg-error |
e566464f | 37 | Group: Development/Libraries |
e0e9b3c0 | 38 | Requires: %{name} = %{version}-%{release} |
e566464f | 39 | |
40 | %description devel | |
41 | libgpg-error is a library that defines common error values for all | |
42 | GnuPG components. Among these are GPG, GPGSM, GPGME, GPG-Agent, | |
43 | libgcrypt, pinentry, SmartCard Daemon and possibly more in the future. | |
44 | ||
45 | This package contains the header files needed to develop programs that | |
6527f5ec | 46 | use these libgpg-error. |
e566464f | 47 | |
08113de1 JR |
48 | %description devel -l pl.UTF-8 |
49 | libgpg-error jest biblioteką definiującą wartości błędów wspólne dla | |
50 | komponentów GnuPG. Są wśród nich GPG, GPGSM, GPGME, GPG-Agent, | |
51 | libgcrypt, pinentry, SmartCard Daemon i inne - w przyszłości. | |
e566464f | 52 | |
08113de1 JR |
53 | Pakiet zawiera pliki nagłówkowe niezbędne do kompilowania programów |
54 | używających biblioteki libgpg-error. | |
e566464f | 55 | |
56 | %package static | |
ac6b3ce0 | 57 | Summary: Static version of libgpg-error library |
67bfd86b | 58 | Summary(pl.UTF-8): Statyczna wersja biblioteki libgpg-error |
e566464f | 59 | Group: Development/Libraries |
e0e9b3c0 | 60 | Requires: %{name}-devel = %{version}-%{release} |
e566464f | 61 | |
62 | %description static | |
63 | libgpg-error is a library that defines common error values for all | |
64 | GnuPG components. Among these are GPG, GPGSM, GPGME, GPG-Agent, | |
65 | libgcrypt, pinentry, SmartCard Daemon and possibly more in the future. | |
66 | ||
67 | This package contains the static libgpg-error libraries. | |
68 | ||
08113de1 JR |
69 | %description static -l pl.UTF-8 |
70 | libgpg-error jest biblioteką definiującą wartości błędów wspólne dla | |
71 | komponentów GnuPG. Są wśród nich GPG, GPGSM, GPGME, GPG-Agent, | |
72 | libgcrypt, pinentry, SmartCard Daemon i inne - w przyszłości. | |
e566464f | 73 | |
74 | Pakiet zawiera statyczne biblioteki libgpg-error. | |
75 | ||
85df7c3f JB |
76 | %package -n common-lisp-gpg-error |
77 | Summary: Common Lisp binding for libgpg-error library | |
78 | Summary(pl.UTF-8): Wiązania Common Lispa do biblioteki libgpg-error | |
79 | Group: Libraries | |
80 | Requires: %{name} = %{version}-%{release} | |
81 | Requires: common-lisp-controller | |
82 | ||
83 | %description -n common-lisp-gpg-error | |
84 | Common Lisp binding for libgpg-error library. | |
85 | ||
86 | %description -n common-lisp-gpg-error -l pl.UTF-8 | |
87 | Wiązania Common Lispa do biblioteki libgpg-error. | |
88 | ||
e566464f | 89 | %prep |
90 | %setup -q | |
9eac4341 | 91 | %patch0 -p1 |
c83646b6 | 92 | %patch1 -p1 |
e566464f | 93 | |
59fb9dc1 | 94 | %{__rm} po/stamp-po |
085a4ed1 | 95 | |
e566464f | 96 | %build |
e566464f | 97 | %{__gettextize} |
98 | %{__libtoolize} | |
d43bb331 | 99 | %{__aclocal} -I m4 |
e566464f | 100 | %{__autoconf} |
101 | %{__automake} | |
9abbe11f | 102 | %configure \ |
d43bb331 | 103 | %{?with_static_libs:--enable-static} |
e566464f | 104 | %{__make} |
105 | ||
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
109 | %{__make} install \ | |
110 | DESTDIR=$RPM_BUILD_ROOT | |
111 | ||
00f82935 | 112 | install -d $RPM_BUILD_ROOT/%{_lib} |
7b255389 JB |
113 | mv -f $RPM_BUILD_ROOT%{_libdir}/libgpg-error.so.* $RPM_BUILD_ROOT/%{_lib} |
114 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libgpg-error.so.*.*.*) \ | |
00f82935 JB |
115 | $RPM_BUILD_ROOT%{_libdir}/libgpg-error.so |
116 | ||
15e0ae88 JB |
117 | %find_lang %{name} |
118 | ||
e566464f | 119 | %clean |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
122 | %post -p /sbin/ldconfig | |
123 | %postun -p /sbin/ldconfig | |
124 | ||
15e0ae88 | 125 | %files -f %{name}.lang |
e566464f | 126 | %defattr(644,root,root,755) |
716d2247 | 127 | %doc AUTHORS ChangeLog NEWS README THANKS |
791de322 | 128 | %attr(755,root,root) %{_bindir}/gpg-error |
00f82935 | 129 | %attr(755,root,root) /%{_lib}/libgpg-error.so.*.*.* |
7b255389 | 130 | %attr(755,root,root) %ghost /%{_lib}/libgpg-error.so.0 |
bdbff71f | 131 | %{_datadir}/libgpg-error |
e566464f | 132 | |
133 | %files devel | |
134 | %defattr(644,root,root,755) | |
135 | %attr(755,root,root) %{_bindir}/gpg-error-config | |
00f82935 JB |
136 | %attr(755,root,root) %{_libdir}/libgpg-error.so |
137 | %{_libdir}/libgpg-error.la | |
35cefa43 JB |
138 | %{_includedir}/gpg-error.h |
139 | %{_aclocaldir}/gpg-error.m4 | |
c83646b6 JB |
140 | %{_mandir}/man1/gpg-error-config.1* |
141 | %{_infodir}/gpgrt.info* | |
e566464f | 142 | |
9abbe11f | 143 | %if %{with static_libs} |
e566464f | 144 | %files static |
145 | %defattr(644,root,root,755) | |
00f82935 | 146 | %{_libdir}/libgpg-error.a |
9abbe11f | 147 | %endif |
bd0125c0 | 148 | |
85df7c3f JB |
149 | %files -n common-lisp-gpg-error |
150 | %defattr(644,root,root,755) | |
151 | %{_datadir}/common-lisp/source/gpg-error |