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