+++ /dev/null
-#
-# Conditional build:
-%bcond_without gpgsm # with gnupg S/MIME support
-%bcond_without pth # without pth-based version of library
-%bcond_without static_libs # Do not build static libraries
-#
-# TODO: separate pth version? disable by default (if !needed at all)?
-Summary: Library for accessing GnuPG
-Summary(pl): Biblioteka daj±ca dostêp do funkcji GnuPG
-Name: gpgme
-Version: 1.0.2
-Release: 5
-Epoch: 1
-License: LGPL v2.1+
-Group: Libraries
-Source0: ftp://ftp.gnupg.org/gcrypt/gpgme/%{name}-%{version}.tar.bz2
-# Source0-md5: 25513fd35593bad08c1e486878296b40
-Patch0: %{name}-info.patch
-Patch1: %{name}-gpg2.patch
-Patch2: %{name}-kill-tests.patch
-URL: http://www.gnupg.org/gpgme.html
-BuildRequires: autoconf >= 2.59
-BuildRequires: automake >= 1:1.9.3
-BuildRequires: libgpg-error-devel >= 0.5
-BuildRequires: libtool
-%{?with_pth:BuildRequires: pth-devel >= 1.2.0}
-BuildRequires: texinfo
-BuildConflicts: gnupg < 1.2.2
-%{!?with_gpgsm:Requires: gnupg >= 1.2.2}
-%{?with_gpgsm:Requires: gnupg-smime >= 1.9.8}
-Obsoletes: cryptplug
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-A library for accessing GnuPG.
-
-%description -l pl
-Biblioteka daj±ca dostêp do funkcji GnuPG.
-
-%package devel
-Summary: Header files for GPGME library
-Summary(pl): Pliki nag³ówkowe biblioteki GPGME
-Group: Development/Libraries
-Requires: %{name} = %{epoch}:%{version}-%{release}
-Requires: libgpg-error-devel >= 0.5
-
-%description devel
-Header files for GPGME library, needed for compiling programs using
-GPGME.
-
-%description devel -l pl
-Pliki nag³ówkowe biblioteki GPGME, potrzebne do kompilacji programów
-u¿ywaj±cych GPGME.
-
-%package static
-Summary: Static version of GPGME library
-Summary(pl): Statyczna wersja biblioteki GPGME
-Group: Development/Libraries
-Requires: %{name}-devel = %{epoch}:%{version}-%{release}
-
-%description static
-Static version of GPGME library.
-
-%description static -l pl
-Statyczna wersja biblioteki GPGME.
-
-%prep
-%setup -q
-%patch0 -p1
-%{?with_gpgsm:%patch1 -p1}
-%patch2 -p1
-
-%build
-%{__libtoolize}
-%{__aclocal} -I m4
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-%configure \
- %{?with_static_libs:--enable-static} \
- %{?with_gpgsm:--with-gpgsm=%{_bindir}/gpgsm} \
- %{!?with_gpgsm:--without-gpgsm} \
- %{!?with_pth:--without-pth} \
- --with-gpg=/usr/bin/gpg%{?with_gpgsm:2}
-
-%{__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 -c %{_infodir} >/dev/null 2>&1
-
-%postun devel
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
-
-%files
-%defattr(644,root,root,755)
-%doc README ChangeLog THANKS TODO NEWS AUTHORS
-%attr(755,root,root) %{_libdir}/lib*.so.*.*
-
-%files devel
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/gpgme-config
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
-%{_includedir}/*
-%{_aclocaldir}/*.m4
-%{_infodir}/*.info*
-
-%if %{with static_libs}
-%files static
-%defattr(644,root,root,755)
-%{_libdir}/lib*.a
-%endif