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