3 %bcond_without static_libs # don't build static library
5 Summary: Assuan - an IPC library for non-persistent servers
6 Summary(pl.UTF-8): Assuan - biblioteka IPC dla serwerów nie działających ciągle
13 Source0: ftp://ftp.gnupg.org/gcrypt/libassuan/%{name}-%{version}.tar.bz2
14 # Source0-md5: 7194453152bb67e3d45da698762b5d6f
15 Patch0: %{name}-info.patch
16 Patch1: %{name}-ac.patch
17 URL: http://www.gnupg.org/related_software/libassuan/
18 BuildRequires: autoconf >= 2.61
19 BuildRequires: automake >= 1:1.14
20 BuildRequires: libgpg-error-devel >= 1.17
21 BuildRequires: libtool >= 2:2.2.6
22 BuildRequires: texinfo
23 Requires: libgpg-error >= 1.17
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This is the IPC library used by GnuPG 2, GPGME and a few other
28 packages. It used to be included with the latter packages but the
29 authors decided to make your life not too easy and separated it out to
30 a stand alone library.
32 %description -l pl.UTF-8
33 To jest biblioteka komunikacji międzyprocesowej (IPC) używana przez
34 GnuPG 2, GPGME oraz parę innych pakietów. Była dołączana do tych
35 pakietów, ale autorzy zdecydowali, żeby już nie ułatwiać tak życia i
39 Summary: Header files for assuan library
40 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki assuan
41 Group: Development/Libraries
42 Conflicts: libassuan1-devel
43 Requires: %{name} = %{epoch}:%{version}-%{release}
44 Requires: libgpg-error-devel >= 1.17
47 Header files for assuan library.
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki assuan.
53 Summary: Static assuan library
54 Summary(pl.UTF-8): Statyczna biblioteka assuan
55 Group: Development/Libraries
56 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
59 Static assuan library.
61 %description static -l pl.UTF-8
62 Statyczna biblioteka assuan.
76 %{?with_static_libs:--enable-static}
80 rm -rf $RPM_BUILD_ROOT
83 DESTDIR=$RPM_BUILD_ROOT
85 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
88 rm -rf $RPM_BUILD_ROOT
90 %post -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
93 %post devel -p /sbin/postshell
94 -/usr/sbin/fix-info-dir -c %{_infodir}
96 %postun devel -p /sbin/postshell
97 -/usr/sbin/fix-info-dir -c %{_infodir}
100 %defattr(644,root,root,755)
101 %doc AUTHORS ChangeLog NEWS README
102 %attr(755,root,root) %{_libdir}/libassuan.so.*.*.*
103 %attr(755,root,root) %ghost %{_libdir}/libassuan.so.0
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_bindir}/libassuan-config
108 %attr(755,root,root) %{_libdir}/libassuan.so
109 %{_libdir}/libassuan.la
110 %{_includedir}/assuan.h
111 %{_aclocaldir}/libassuan.m4
112 %{_infodir}/assuan.info*
113 %{_pkgconfigdir}/libassuan.pc
115 %if %{with static_libs}
117 %defattr(644,root,root,755)
118 %{_libdir}/libassuan.a