2007-01-16 00:21:27 +01:00
|
|
|
#
|
2011-07-29 17:28:08 +02:00
|
|
|
# spec file for package libassuan
|
2007-01-16 00:21:27 +01:00
|
|
|
#
|
2018-02-26 10:33:44 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:21:27 +01:00
|
|
|
#
|
2009-06-02 12:27:57 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-20 13:37:21 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:21:27 +01:00
|
|
|
#
|
|
|
|
|
2012-11-18 10:43:00 +01:00
|
|
|
|
2007-01-25 18:04:36 +01:00
|
|
|
Name: libassuan
|
2018-12-15 10:09:42 +01:00
|
|
|
Version: 2.5.2
|
2011-12-25 23:18:36 +01:00
|
|
|
Release: 0
|
2011-07-29 17:28:08 +02:00
|
|
|
Summary: IPC library used by GnuPG version 2
|
2018-12-15 10:09:42 +01:00
|
|
|
License: GPL-3.0-or-later AND LGPL-2.1-or-later
|
2011-07-29 17:28:08 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-11-18 10:43:00 +01:00
|
|
|
Url: http://www.gnupg.org/related_software/libassuan/index.en.html
|
2014-08-21 15:11:28 +02:00
|
|
|
Source0: ftp://ftp.gnupg.org/gcrypt/libassuan/%{name}-%{version}.tar.bz2
|
2010-04-07 22:08:02 +02:00
|
|
|
Source1: baselibs.conf
|
2013-08-20 14:19:01 +02:00
|
|
|
Source2: ftp://ftp.gnupg.org/gcrypt/libassuan/%{name}-%{version}.tar.bz2.sig
|
|
|
|
# http://www.gnupg.org/signature_key.en.html
|
|
|
|
Source3: libassuan.keyring
|
2015-11-05 11:17:36 +01:00
|
|
|
BuildRequires: libgpg-error-devel >= 1.17
|
2014-08-21 15:11:28 +02:00
|
|
|
Requires: %{install_info_prereq}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-16 00:21:27 +01:00
|
|
|
|
|
|
|
%description
|
2007-08-15 20:31:14 +02:00
|
|
|
Libassuan is the IPC library used by gpg2 (GnuPG version 2)
|
|
|
|
|
2010-04-01 15:28:54 +02:00
|
|
|
%package -n libassuan0
|
2011-07-29 17:28:08 +02:00
|
|
|
Summary: IPC library used by GnuPG version 2
|
2012-11-18 10:43:00 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2007-01-16 00:21:27 +01:00
|
|
|
|
2010-04-01 15:28:54 +02:00
|
|
|
%description -n libassuan0
|
|
|
|
Libassuan is the IPC library used by gpg2 (GnuPG version 2)
|
2007-01-16 00:21:27 +01:00
|
|
|
|
2007-07-27 01:44:12 +02:00
|
|
|
%package devel
|
2010-04-01 15:28:54 +02:00
|
|
|
Summary: IPC library used by GnuPG version 2
|
2012-11-18 10:43:00 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-04-01 15:28:54 +02:00
|
|
|
Requires: libassuan0 = %{version}
|
2012-11-18 10:43:00 +01:00
|
|
|
Requires: libgpg-error-devel
|
2007-07-27 01:44:12 +02:00
|
|
|
|
|
|
|
%description devel
|
2007-08-15 20:31:14 +02:00
|
|
|
Libassuan is the IPC library used by gpg2 (GnuPG version 2)
|
|
|
|
|
|
|
|
gpgme also uses libassuan to communicate with a libassuan-enabled GnuPG
|
|
|
|
v2 server, but it uses it's own copy of libassuan.
|
2007-07-27 01:44:12 +02:00
|
|
|
|
2007-01-16 00:21:27 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2007-07-27 01:44:12 +02:00
|
|
|
# Compile with PIC, library is linked into shared libraries:
|
2013-06-11 14:43:36 +02:00
|
|
|
export CFLAGS="%{optflags} $(getconf LFS_CFLAGS)"
|
2007-07-27 01:44:12 +02:00
|
|
|
export LDFLAGS="-fPIC"
|
|
|
|
%configure
|
2010-11-01 09:29:21 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:21:27 +01:00
|
|
|
|
|
|
|
%install
|
2014-12-29 10:01:16 +01:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
2014-08-21 15:11:28 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2010-04-01 15:28:54 +02:00
|
|
|
|
2013-08-20 14:19:01 +02:00
|
|
|
%check
|
2014-08-21 15:11:28 +02:00
|
|
|
make check %{?_smp_mflags}
|
2013-08-20 14:19:01 +02:00
|
|
|
|
2011-07-29 17:28:08 +02:00
|
|
|
%post -n libassuan0 -p /sbin/ldconfig
|
2010-04-01 15:28:54 +02:00
|
|
|
|
2011-07-29 17:28:08 +02:00
|
|
|
%postun -n libassuan0 -p /sbin/ldconfig
|
2007-01-16 00:21:27 +01:00
|
|
|
|
2007-07-27 01:44:12 +02:00
|
|
|
%post devel
|
2007-01-16 00:21:27 +01:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/assuan.info.gz
|
|
|
|
|
2007-07-27 01:44:12 +02:00
|
|
|
%postun devel
|
2007-01-16 00:21:27 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/assuan.info.gz
|
|
|
|
|
2010-04-01 15:28:54 +02:00
|
|
|
%files -n libassuan0
|
2007-01-16 00:21:27 +01:00
|
|
|
%defattr(-,root,root)
|
2018-02-26 10:33:44 +01:00
|
|
|
%license COPYING
|
2008-01-09 21:25:33 +01:00
|
|
|
%doc AUTHORS ChangeLog NEWS README THANKS
|
2010-04-01 15:28:54 +02:00
|
|
|
%{_libdir}/libassuan.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2018-12-15 10:09:42 +01:00
|
|
|
%{_libdir}/pkgconfig/libassuan.pc
|
2015-11-05 11:17:36 +01:00
|
|
|
%{_infodir}/assuan*
|
2010-04-01 15:28:54 +02:00
|
|
|
%{_includedir}/*.h
|
|
|
|
%{_bindir}/*-config
|
2011-12-25 23:18:36 +01:00
|
|
|
%dir %{_datadir}/aclocal
|
2010-04-01 15:28:54 +02:00
|
|
|
%{_datadir}/aclocal/*.m4
|
|
|
|
%{_libdir}/libassuan.so
|
2007-01-16 00:21:27 +01:00
|
|
|
|
2007-07-27 01:44:12 +02:00
|
|
|
%changelog
|