Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1571943
 поиск   регистрация   авторизация 
 
Группа :: Система/Библиотеки
Пакет: gpgme

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Name: gpgme
Version: 1.1.2
Release: alt0.1.M24
#define cvsdate 20020829

%define min_gnupg_version 1.9.6

Summary: GnuPG Made Easy!
License: GPL
Group: System/Libraries
URL: http://www.gnupg.org/related_software/gpgme/index.html

%ifdef cvsdate
Source: %name-%cvsdate.tar.bz2
%else
Source: ftp://ftp.gnupg.org/gcrypt/%name/%name-%version.tar.bz2
%endif

Patch1: %name-0.3.9-alt-aclocal.patch
Patch2: %name-0.3.16-fix-select-status.patch
Patch3: gpgme-info.patch

Requires: gnupg2 >= %min_gnupg_version
BuildPreReq: gnupg2 >= %min_gnupg_version

%ifdef cvsdate
BuildPreReq: autoconf_2.5 >= 2.57
BuildPreReq: automake_1.7
%endif

%def_disable static
%{?_enable_static:BuildPreReq: glibc-devel-static}

# Automatically added by buildreq on Mon Oct 11 2004 (-bi)

#BuildRequires: gcc-c++ gcc-g77 gnupg gnupg2 libgpg-error-devel libpth-devel libstdc++-devel python-base python-modules-compiler python-modules-encodings rpm-build-python
BuildRequires: gcc-c++ gnupg2 libgpg-error-devel libpth-devel libstdc++-devel

%package -n lib%{name}1
Summary: GnuPG Made Easy!
Group: System/Libraries
Requires: gnupg2 >= %min_gnupg_version

%package -n lib%{name}1-devel
Summary: Include files for development with GPGME
Group: System/Libraries
Requires: lib%{name}1 = %version-%release

%package -n lib%{name}1-devel-static
Summary: Static libraries for development with GPGME
Group: System/Libraries
Requires: lib%{name}1-devel = %version-%release

%description
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG easier
for applications. It provides a High-Level Crypto API for encryption,
decryption, signing, signature verification and key management.

%description -n lib%{name}1
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG easier
for applications. It provides a High-Level Crypto API for encryption,
decryption, signing, signature verification and key management.

%description -n lib%{name}1-devel
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG easier
for applications. It provides a High-Level Crypto API for encryption,
decryption, signing, signature verification and key management.

This package contains include files required for development of GPGME-based
applications.

%description -n lib%{name}1-devel-static
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG easier
for applications. It provides a High-Level Crypto API for encryption,
decryption, signing, signature verification and key management.

This package contains static libraries required for development of GPGME-based
statically linked applications.

%prep
%setup -q %{?cvsdate: -n %name }
%patch1 -p1
#%patch2 -p1
%patch3 -p1

%ifdef cvsdate
aclocal-1.7
autoheader_2.5
automake-1.7 --gnu --add-missing --copy
autoconf_2.5
%endif

%build
mkdir -p tmp_bin
ln -sf /usr/bin/gpg2 tmp_bin/gpg
export PATH=$PWD/tmp_bin:$PATH

%{?!_enable_static:export lt_cv_prog_cc_static_works=no}
# --enable-maintainer-mode is required to generate the info file
# when building from CVS snapshot
%configure \
%{?cvsdate: --enable-maintainer-mode } \
%{subst_enable static} \
--with-gpg=/usr/bin/gpg2 \
--with-gpgsm=/usr/bin/gpgsm

%make_build
#%make check

%install
%makeinstall

%post -n lib%{name}1 -p %post_ldconfig
%postun -n lib%{name}1 -p %postun_ldconfig

%post -n lib%{name}1-devel
%install_info %name.info

%preun -n lib%{name}1-devel
%uninstall_info %name.info

%files -n lib%{name}1
%_libdir/*.so.*
%doc AUTHORS NEWS README THANKS TODO ChangeLog

%files -n lib%{name}1-devel
%_bindir/*
%_includedir/*.h
%_libdir/*.so
%_datadir/aclocal/*.m4
%_infodir/%name.info*

%if_enabled static
%files -n lib%{name}1-devel-static
%_libdir/*.a
%endif

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005