Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37515949
en ru br
Репозитории ALT
S:1.22.0-alt2
5.1: 1.2.0-alt1
4.1: 1.1.7-alt1.M41.1
4.0: 1.1.6-alt1
3.0: 1.0.3-alt1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: gpgme

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

Name: gpgme
Version: 1.1.7
Release: alt1.M41.1
#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: 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
Summary: GnuPG Made Easy!
Group: System/Libraries
Requires: gnupg2 >= %min_gnupg_version
Provides: libgpgme1 = %version-%release
Obsoletes: libgpgme1 < %version-%release

%package -n lib%name-devel
Summary: Include files for development with GPGME
Group: System/Libraries
Requires: lib%name = %version-%release
Requires: libgpg-error-devel
Provides: libgpgme1-devel = %version-%release
Obsoletes: libgpgme1-devel < %version-%release

%package -n lib%name-devel-static
Summary: Static libraries for development with GPGME
Group: System/Libraries
Requires: lib%name-devel = %version-%release
Provides: libgpgme1-devel-static = %version-%release
Obsoletes: libgpgme1-devel-static < %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
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-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-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

%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 %_bindir/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=%_bindir/gpg2 \
--with-gpgsm=%_bindir/gpgsm

%make_build
%make check

%install
%makeinstall

%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig

%post -n lib%name-devel
%install_info %name.info

%preun -n lib%name-devel
%uninstall_info %name.info

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

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

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

%changelog

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

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin