]>
Commit | Line | Data |
---|---|---|
8ae88d2b | 1 | # |
34b5b739 | 2 | # Conditional build: |
8ae88d2b | 3 | %bcond_without static_libs # don't build static library |
34b5b739 | 4 | # |
ece03a20 | 5 | Summary: Assuan - an IPC library for non-persistent servers |
c8f5d633 | 6 | Summary(pl.UTF-8): Assuan - biblioteka IPC dla serwerów nie działających ciągle |
ece03a20 | 7 | Name: libassuan |
33e0c941 | 8 | Version: 2.4.3 |
3ad9d8b5 | 9 | Release: 1 |
bd58e2d4 | 10 | Epoch: 1 |
dcab0bf2 | 11 | License: LGPL v2.1+ |
ece03a20 | 12 | Group: Libraries |
7e2d47e0 | 13 | Source0: ftp://ftp.gnupg.org/gcrypt/libassuan/%{name}-%{version}.tar.bz2 |
33e0c941 | 14 | # Source0-md5: 8e01a7c72d3e5d154481230668e6eb5a |
eeebbc9d JB |
15 | Patch0: %{name}-info.patch |
16 | Patch1: %{name}-ac.patch | |
eed664e1 | 17 | Patch2: %{name}-am.patch |
3446e152 | 18 | URL: http://www.gnupg.org/related_software/libassuan/ |
0c7a4533 | 19 | BuildRequires: autoconf >= 2.61 |
17bcb123 JB |
20 | BuildRequires: automake >= 1:1.14 |
21 | BuildRequires: libgpg-error-devel >= 1.17 | |
eeebbc9d | 22 | BuildRequires: libtool >= 2:2.2.6 |
ece03a20 | 23 | BuildRequires: texinfo |
17bcb123 | 24 | Requires: libgpg-error >= 1.17 |
ece03a20 JB |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
8dda6e3c | 28 | This is the IPC library used by GnuPG 2, GPGME and a few other |
caab150c | 29 | packages. It used to be included with the latter packages but the |
ece03a20 | 30 | authors decided to make your life not too easy and separated it out to |
caab150c | 31 | a stand alone library. |
ece03a20 | 32 | |
ec7225fb JR |
33 | %description -l pl.UTF-8 |
34 | To jest biblioteka komunikacji międzyprocesowej (IPC) używana przez | |
8dda6e3c | 35 | GnuPG 2, GPGME oraz parę innych pakietów. Była dołączana do tych |
ec7225fb JR |
36 | pakietów, ale autorzy zdecydowali, żeby już nie ułatwiać tak życia i |
37 | wydzielili ją. | |
ece03a20 JB |
38 | |
39 | %package devel | |
40 | Summary: Header files for assuan library | |
c8f5d633 | 41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki assuan |
ece03a20 | 42 | Group: Development/Libraries |
e78028b0 | 43 | Conflicts: libassuan1-devel |
2fe55b7f | 44 | Requires: %{name} = %{epoch}:%{version}-%{release} |
17bcb123 | 45 | Requires: libgpg-error-devel >= 1.17 |
ece03a20 JB |
46 | |
47 | %description devel | |
48 | Header files for assuan library. | |
49 | ||
ec7225fb JR |
50 | %description devel -l pl.UTF-8 |
51 | Pliki nagłówkowe biblioteki assuan. | |
ece03a20 JB |
52 | |
53 | %package static | |
54 | Summary: Static assuan library | |
c8f5d633 | 55 | Summary(pl.UTF-8): Statyczna biblioteka assuan |
ece03a20 | 56 | Group: Development/Libraries |
2fe55b7f | 57 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
ece03a20 JB |
58 | |
59 | %description static | |
60 | Static assuan library. | |
61 | ||
ec7225fb | 62 | %description static -l pl.UTF-8 |
ece03a20 JB |
63 | Statyczna biblioteka assuan. |
64 | ||
65 | %prep | |
66 | %setup -q | |
67 | %patch0 -p1 | |
68 | %patch1 -p1 | |
eed664e1 | 69 | %patch2 -p1 |
ece03a20 JB |
70 | |
71 | %build | |
72 | %{__libtoolize} | |
a8a61be4 | 73 | %{__aclocal} -I m4 |
ece03a20 JB |
74 | %{__autoconf} |
75 | %{__autoheader} | |
76 | %{__automake} | |
2aef9d18 | 77 | %configure \ |
eeebbc9d | 78 | %{?with_static_libs:--enable-static} |
ece03a20 JB |
79 | %{__make} |
80 | ||
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %{__make} install \ | |
85 | DESTDIR=$RPM_BUILD_ROOT | |
86 | ||
dfb8334d ER |
87 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
88 | ||
ece03a20 JB |
89 | %clean |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %post -p /sbin/ldconfig | |
93 | %postun -p /sbin/ldconfig | |
94 | ||
eeebbc9d | 95 | %post devel -p /sbin/postshell |
f155d83b | 96 | -/usr/sbin/fix-info-dir -c %{_infodir} |
ece03a20 | 97 | |
eeebbc9d | 98 | %postun devel -p /sbin/postshell |
f155d83b | 99 | -/usr/sbin/fix-info-dir -c %{_infodir} |
ece03a20 JB |
100 | |
101 | %files | |
102 | %defattr(644,root,root,755) | |
103 | %doc AUTHORS ChangeLog NEWS README | |
7e2d47e0 | 104 | %attr(755,root,root) %{_libdir}/libassuan.so.*.*.* |
8dda6e3c | 105 | %attr(755,root,root) %ghost %{_libdir}/libassuan.so.0 |
ece03a20 JB |
106 | |
107 | %files devel | |
108 | %defattr(644,root,root,755) | |
109 | %attr(755,root,root) %{_bindir}/libassuan-config | |
7e2d47e0 | 110 | %attr(755,root,root) %{_libdir}/libassuan.so |
7e2d47e0 | 111 | %{_libdir}/libassuan.la |
7e2d47e0 JB |
112 | %{_includedir}/assuan.h |
113 | %{_aclocaldir}/libassuan.m4 | |
114 | %{_infodir}/assuan.info* | |
ece03a20 | 115 | |
4f55f039 | 116 | %if %{with static_libs} |
ece03a20 JB |
117 | %files static |
118 | %defattr(644,root,root,755) | |
7e2d47e0 | 119 | %{_libdir}/libassuan.a |
2aef9d18 | 120 | %endif |