# # Conditional build: %bcond_without static_libs # don't build static library # Summary: Assuan - an IPC library for non-persistent servers Summary(pl): Assuan - biblioteka IPC dla serwerów nie działających ciągle Name: libassuan Version: 0.6.10 Release: 1 Epoch: 1 License: LGPL Group: Libraries Source0: ftp://ftp.gnupg.org/gcrypt/alpha/libassuan/%{name}-%{version}.tar.gz # Source0-md5: 4cde037c3fcb2f0eeb695b1db6e56bba Patch0: %{name}-shared.patch Patch1: %{name}-info.patch URL: http://www.gnupg.org/related_software/libassuan/ BuildRequires: autoconf >= 2.59 BuildRequires: automake >= 1:1.9.3 BuildRequires: libtool BuildRequires: texinfo BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This is the IPC library used by GnuPG 1.9, GPGME and a few other packages. It used to be included with the latter packages but the authors decided to make your life not too easy and separated it out to a stand alone library. %description -l pl To jest biblioteka komunikacji międzyprocesowej (IPC) używana przez GnuPG 1.9, GPGME oraz parę innych pakietów. Była dołączana do tych pakietów, ale autorzy zdecydowali, żeby już nie ułatwiać tak życia i wydzielili ją. %package devel Summary: Header files for assuan library Summary(pl): Pliki nagłówkowe biblioteki assuan Group: Development/Libraries Requires: %{name} = %{epoch}:%{version}-%{release} %description devel Header files for assuan library. %description devel -l pl Pliki nagłówkowe biblioteki assuan. %package static Summary: Static assuan library Summary(pl): Statyczna biblioteka assuan Group: Development/Libraries Requires: %{name}-devel = %{epoch}:%{version}-%{release} %description static Static assuan library. %description static -l pl Statyczna biblioteka assuan. %prep %setup -q %patch0 -p1 %patch1 -p1 %build %{__libtoolize} %{__aclocal} %{__autoconf} %{__autoheader} %{__automake} %configure \ %{!?with_static_libs:--disable-static} %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post devel [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 %postun devel [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 %files %defattr(644,root,root,755) %doc AUTHORS ChangeLog NEWS README %attr(755,root,root) %{_libdir}/lib*.so.*.*.* %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/libassuan-config %attr(755,root,root) %{_libdir}/lib*.so %{_libdir}/lib*.la %{_includedir}/*.h %{_aclocaldir}/*.m4 %{_infodir}/*.info* %if %{with static_libs} %files static %defattr(644,root,root,755) %{_libdir}/lib*.a %endif