2007-01-16 00:22:02 +01:00
|
|
|
#
|
2011-10-02 20:43:15 +02:00
|
|
|
# spec file for package libgpg-error
|
2007-01-16 00:22:02 +01:00
|
|
|
#
|
2014-04-28 11:26:48 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:22:02 +01:00
|
|
|
#
|
2008-11-02 15:42:58 +01: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.
|
|
|
|
|
2007-01-16 00:22:02 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libgpg-error
|
2014-09-25 07:48:11 +02:00
|
|
|
Version: 1.16
|
2012-02-12 23:26:04 +01:00
|
|
|
Release: 0
|
2010-12-03 12:58:18 +01:00
|
|
|
Summary: Library That Defines Common Error Values for All GnuPG Components
|
2013-02-03 08:05:05 +01:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+
|
2007-01-16 00:22:02 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-02-12 23:26:04 +01:00
|
|
|
Url: http://www.gnupg.org/
|
2013-02-26 09:32:40 +01:00
|
|
|
Source: ftp://ftp.gnupg.org/gcrypt/libgpg-error/%{name}-%{version}.tar.bz2
|
|
|
|
Source1: ftp://ftp.gnupg.org/gcrypt/libgpg-error/%{name}-%{version}.tar.bz2.sig
|
|
|
|
# http://www.gnupg.org/signature_key.en.html
|
2014-04-28 11:26:48 +02:00
|
|
|
Source2: %{name}.keyring
|
2013-02-26 09:32:40 +01:00
|
|
|
Source3: baselibs.conf
|
2011-11-21 10:33:28 +01:00
|
|
|
BuildRequires: libtool
|
2014-04-28 11:26:48 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-06-18 10:47:09 +02:00
|
|
|
#BuildRequires: gpg-offline
|
2007-01-16 00:22:02 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This is a library that defines common error values for all GnuPG
|
|
|
|
components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
|
|
|
|
pinentry, SmartCard Daemon, and possibly more in the future.
|
|
|
|
|
2007-11-22 18:06:02 +01:00
|
|
|
%package -n libgpg-error0
|
2010-12-03 12:58:18 +01:00
|
|
|
Summary: Library That Defines Common Error Values for All GnuPG Components
|
2013-02-03 08:05:05 +01:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+
|
2007-11-22 18:06:02 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-04-28 11:26:48 +02:00
|
|
|
#
|
|
|
|
Provides: libgpg-error = %{version}
|
|
|
|
Obsoletes: libgpg-error < %{version}
|
2009-01-29 23:15:33 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libgpg-error-64bit
|
|
|
|
%endif
|
2007-11-22 18:06:02 +01:00
|
|
|
|
|
|
|
%description -n libgpg-error0
|
|
|
|
This is a library that defines common error values for all GnuPG
|
|
|
|
components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
|
|
|
|
pinentry, SmartCard Daemon, and possibly more in the future.
|
|
|
|
|
2007-01-16 00:22:02 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Development package for libgpg-error
|
2013-02-03 08:05:05 +01:00
|
|
|
License: GPL-2.0+ and LGPL-2.1+ and MIT
|
2007-01-16 00:22:02 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-04-28 11:26:48 +02:00
|
|
|
#
|
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libgpg-error0 = %{version}
|
2008-11-02 15:42:58 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libgpg-error-devel-64bit
|
|
|
|
%endif
|
2007-01-16 00:22:02 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Files needed for software development using libgpg-error.
|
|
|
|
|
|
|
|
%prep
|
2014-04-28 11:26:48 +02:00
|
|
|
%setup -q -n libgpg-error-%{version}
|
2007-01-16 00:22:02 +01:00
|
|
|
|
|
|
|
%build
|
2012-02-12 23:26:04 +01:00
|
|
|
%configure --disable-static --with-pic
|
2010-12-03 12:58:18 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:22:02 +01:00
|
|
|
|
|
|
|
%install
|
2014-04-28 11:26:48 +02:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
2012-02-12 23:26:04 +01:00
|
|
|
rm %{buildroot}%{_libdir}/libgpg-error.la
|
2007-01-16 00:22:02 +01:00
|
|
|
# Drop the lisp stuff, it depends on ASDF and CFFI
|
|
|
|
# which needs to be packaged first
|
2010-12-03 12:58:18 +01:00
|
|
|
rm -r %{buildroot}%{_datadir}/common-lisp
|
2007-11-22 18:06:02 +01:00
|
|
|
%find_lang %{name}
|
2007-01-16 00:22:02 +01:00
|
|
|
|
2014-04-28 11:26:48 +02:00
|
|
|
%check
|
|
|
|
make check %{?_smp_mflags}
|
|
|
|
%{buildroot}/%{_bindir}/gpg-error-config --libs | grep -q -v "\-lpthread"
|
|
|
|
%{buildroot}/%{_bindir}/gpg-error-config --mt --libs | grep -q "\-lpthread"
|
2007-01-16 00:22:02 +01:00
|
|
|
|
2009-02-23 12:54:33 +01:00
|
|
|
%post -n libgpg-error0 -p /sbin/ldconfig
|
2007-01-16 00:22:02 +01:00
|
|
|
|
2009-02-23 12:54:33 +01:00
|
|
|
%postun -n libgpg-error0 -p /sbin/ldconfig
|
2007-01-16 00:22:02 +01:00
|
|
|
|
2007-11-22 18:06:02 +01:00
|
|
|
%files -n libgpg-error0 -f %{name}.lang
|
2007-01-16 00:22:02 +01:00
|
|
|
%defattr(-,root,root)
|
2012-02-12 23:26:04 +01:00
|
|
|
%{_libdir}/libgpg-error*.so.*
|
2007-01-16 00:22:02 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2007-11-22 18:06:02 +01:00
|
|
|
%doc README NEWS ChangeLog COPYING.LIB COPYING AUTHORS ABOUT-NLS
|
2010-12-03 12:58:18 +01:00
|
|
|
%{_datadir}/aclocal/gpg-error.m4
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_libdir}/libgpg-error*.so
|
2007-01-16 00:22:02 +01:00
|
|
|
|
2007-11-22 18:06:02 +01:00
|
|
|
%changelog
|