]>
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 |
110c52a9 | 8 | Version: 1.43 |
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 |
110c52a9 | 13 | # Source0-md5: f1e09cfa536a6e6a264dbf2ccdc2e534 |
b20d42a2 | 14 | Patch0: %{name}-info.patch |
63ee71c7 | 15 | URL: http://www.gnupg.org/related_software/libgpg-error/ |
0574e73d | 16 | BuildRequires: autoconf >= 2.59 |
43c5e4bf JB |
17 | BuildRequires: automake >= 1:1.14 |
18 | BuildRequires: gettext-tools >= 0.19.3 | |
d43bb331 | 19 | BuildRequires: libtool >= 2:2.2.6 |
c83646b6 | 20 | BuildRequires: texinfo |
e566464f | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
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. | |
27 | ||
08113de1 JR |
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. | |
e566464f | 32 | |
33 | %package devel | |
ac6b3ce0 | 34 | Summary: Header files for libgpg-error |
67bfd86b | 35 | Summary(pl.UTF-8): Pliki nagłówkowe dla libgpg-error |
e566464f | 36 | Group: Development/Libraries |
e0e9b3c0 | 37 | Requires: %{name} = %{version}-%{release} |
e566464f | 38 | |
39 | %description devel | |
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. | |
43 | ||
44 | This package contains the header files needed to develop programs that | |
6527f5ec | 45 | use these libgpg-error. |
e566464f | 46 | |
08113de1 JR |
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. | |
e566464f | 51 | |
08113de1 JR |
52 | Pakiet zawiera pliki nagłówkowe niezbędne do kompilowania programów |
53 | używających biblioteki libgpg-error. | |
e566464f | 54 | |
55 | %package static | |
ac6b3ce0 | 56 | Summary: Static version of libgpg-error library |
67bfd86b | 57 | Summary(pl.UTF-8): Statyczna wersja biblioteki libgpg-error |
e566464f | 58 | Group: Development/Libraries |
e0e9b3c0 | 59 | Requires: %{name}-devel = %{version}-%{release} |
e566464f | 60 | |
61 | %description static | |
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. | |
65 | ||
66 | This package contains the static libgpg-error libraries. | |
67 | ||
08113de1 JR |
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. | |
e566464f | 72 | |
73 | Pakiet zawiera statyczne biblioteki libgpg-error. | |
74 | ||
85df7c3f JB |
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 | |
78 | Group: Libraries | |
79 | Requires: %{name} = %{version}-%{release} | |
80 | Requires: common-lisp-controller | |
81 | ||
82 | %description -n common-lisp-gpg-error | |
83 | Common Lisp binding for libgpg-error library. | |
84 | ||
85 | %description -n common-lisp-gpg-error -l pl.UTF-8 | |
86 | Wiązania Common Lispa do biblioteki libgpg-error. | |
87 | ||
e566464f | 88 | %prep |
89 | %setup -q | |
9eac4341 | 90 | %patch0 -p1 |
e566464f | 91 | |
59fb9dc1 | 92 | %{__rm} po/stamp-po |
085a4ed1 | 93 | |
e566464f | 94 | %build |
e566464f | 95 | %{__gettextize} |
96 | %{__libtoolize} | |
d43bb331 | 97 | %{__aclocal} -I m4 |
e566464f | 98 | %{__autoconf} |
99 | %{__automake} | |
9abbe11f | 100 | %configure \ |
d43bb331 | 101 | %{?with_static_libs:--enable-static} |
e566464f | 102 | %{__make} |
103 | ||
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %{__make} install \ | |
108 | DESTDIR=$RPM_BUILD_ROOT | |
109 | ||
00f82935 | 110 | install -d $RPM_BUILD_ROOT/%{_lib} |
66cef9e0 | 111 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/libgpg-error.so.* $RPM_BUILD_ROOT/%{_lib} |
7b255389 | 112 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libgpg-error.so.*.*.*) \ |
00f82935 JB |
113 | $RPM_BUILD_ROOT%{_libdir}/libgpg-error.so |
114 | ||
15e0ae88 JB |
115 | %find_lang %{name} |
116 | ||
e566464f | 117 | %clean |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
120 | %post -p /sbin/ldconfig | |
121 | %postun -p /sbin/ldconfig | |
122 | ||
15e0ae88 | 123 | %files -f %{name}.lang |
e566464f | 124 | %defattr(644,root,root,755) |
716d2247 | 125 | %doc AUTHORS ChangeLog NEWS README THANKS |
791de322 | 126 | %attr(755,root,root) %{_bindir}/gpg-error |
00f82935 | 127 | %attr(755,root,root) /%{_lib}/libgpg-error.so.*.*.* |
7b255389 | 128 | %attr(755,root,root) %ghost /%{_lib}/libgpg-error.so.0 |
bdbff71f | 129 | %{_datadir}/libgpg-error |
e566464f | 130 | |
131 | %files devel | |
132 | %defattr(644,root,root,755) | |
133 | %attr(755,root,root) %{_bindir}/gpg-error-config | |
66cef9e0 JB |
134 | %attr(755,root,root) %{_bindir}/gpgrt-config |
135 | %attr(755,root,root) %{_bindir}/yat2m | |
00f82935 JB |
136 | %attr(755,root,root) %{_libdir}/libgpg-error.so |
137 | %{_libdir}/libgpg-error.la | |
35cefa43 | 138 | %{_includedir}/gpg-error.h |
ac6e3c58 | 139 | %{_includedir}/gpgrt.h |
35cefa43 | 140 | %{_aclocaldir}/gpg-error.m4 |
66cef9e0 | 141 | %{_aclocaldir}/gpgrt.m4 |
e71d9f4a | 142 | %{_mandir}/man1/gpgrt-config.1* |
c83646b6 | 143 | %{_infodir}/gpgrt.info* |
e71d9f4a | 144 | %{_pkgconfigdir}/gpg-error.pc |
e566464f | 145 | |
9abbe11f | 146 | %if %{with static_libs} |
e566464f | 147 | %files static |
148 | %defattr(644,root,root,755) | |
00f82935 | 149 | %{_libdir}/libgpg-error.a |
9abbe11f | 150 | %endif |
bd0125c0 | 151 | |
85df7c3f JB |
152 | %files -n common-lisp-gpg-error |
153 | %defattr(644,root,root,755) | |
154 | %{_datadir}/common-lisp/source/gpg-error |