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: d5cee3492f0e0c4fd537af798621dd5b
15 Patch0: %{name}-info.patch
16 Patch1: %{name}-ac.patch
17 Patch2: %{name}-am.patch
18 URL: http://www.gnupg.org/related_software/libassuan/
19 BuildRequires: autoconf >= 2.61
20 BuildRequires: automake >= 1:1.14
21 BuildRequires: libgpg-error-devel >= 1.17
22 BuildRequires: libtool >= 2:2.2.6
23 BuildRequires: texinfo
24 Requires: libgpg-error >= 1.17
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This is the IPC library used by GnuPG 2, GPGME and a few other
29 packages. It used to be included with the latter packages but the
30 authors decided to make your life not too easy and separated it out to
31 a stand alone library.
33 %description -l pl.UTF-8
34 To jest biblioteka komunikacji międzyprocesowej (IPC) używana przez
35 GnuPG 2, GPGME oraz parę innych pakietów. Była dołączana do tych
36 pakietów, ale autorzy zdecydowali, żeby już nie ułatwiać tak życia i
40 Summary: Header files for assuan library
41 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki assuan
42 Group: Development/Libraries
43 Conflicts: libassuan1-devel
44 Requires: %{name} = %{epoch}:%{version}-%{release}
45 Requires: libgpg-error-devel >= 1.17
48 Header files for assuan library.
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe biblioteki assuan.
54 Summary: Static assuan library
55 Summary(pl.UTF-8): Statyczna biblioteka assuan
56 Group: Development/Libraries
57 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
60 Static assuan library.
62 %description static -l pl.UTF-8
63 Statyczna biblioteka assuan.
78 %{?with_static_libs:--enable-static}
82 rm -rf $RPM_BUILD_ROOT
85 DESTDIR=$RPM_BUILD_ROOT
87 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
90 rm -rf $RPM_BUILD_ROOT
92 %post -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
95 %post devel -p /sbin/postshell
96 -/usr/sbin/fix-info-dir -c %{_infodir}
98 %postun devel -p /sbin/postshell
99 -/usr/sbin/fix-info-dir -c %{_infodir}
102 %defattr(644,root,root,755)
103 %doc AUTHORS ChangeLog NEWS README
104 %attr(755,root,root) %{_libdir}/libassuan.so.*.*.*
105 %attr(755,root,root) %ghost %{_libdir}/libassuan.so.0
108 %defattr(644,root,root,755)
109 %attr(755,root,root) %{_bindir}/libassuan-config
110 %attr(755,root,root) %{_libdir}/libassuan.so
111 %{_libdir}/libassuan.la
112 %{_includedir}/assuan.h
113 %{_aclocaldir}/libassuan.m4
114 %{_infodir}/assuan.info*
115 %{_pkgconfigdir}/libassuan.pc
117 %if %{with static_libs}
119 %defattr(644,root,root,755)
120 %{_libdir}/libassuan.a