Marcus Meissner
526c34bdaf
libgpg-error 1.13 OBS-URL: https://build.opensuse.org/request/show/231581 OBS-URL: https://build.opensuse.org/package/show/Base:System/libgpg-error?expand=0&rev=27
109 lines
3.4 KiB
RPMSpec
109 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package libgpg-error
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: libgpg-error
|
|
Version: 1.13
|
|
Release: 0
|
|
Summary: Library That Defines Common Error Values for All GnuPG Components
|
|
License: GPL-2.0+ and LGPL-2.1+
|
|
Group: Development/Libraries/C and C++
|
|
Url: http://www.gnupg.org/
|
|
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
|
|
Source2: %{name}.keyring
|
|
Source3: baselibs.conf
|
|
BuildRequires: libtool
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
#BuildRequires: gpg-offline
|
|
|
|
%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.
|
|
|
|
%package -n libgpg-error0
|
|
Summary: Library That Defines Common Error Values for All GnuPG Components
|
|
License: GPL-2.0+ and LGPL-2.1+
|
|
Group: Development/Libraries/C and C++
|
|
#
|
|
Provides: libgpg-error = %{version}
|
|
Obsoletes: libgpg-error < %{version}
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: libgpg-error-64bit
|
|
%endif
|
|
|
|
%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.
|
|
|
|
%package devel
|
|
Summary: Development package for libgpg-error
|
|
License: GPL-2.0+ and LGPL-2.1+ and MIT
|
|
Group: Development/Libraries/C and C++
|
|
#
|
|
Requires: glibc-devel
|
|
Requires: libgpg-error0 = %{version}
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: libgpg-error-devel-64bit
|
|
%endif
|
|
|
|
%description devel
|
|
Files needed for software development using libgpg-error.
|
|
|
|
%prep
|
|
%setup -q -n libgpg-error-%{version}
|
|
|
|
%build
|
|
%configure --disable-static --with-pic
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
rm %{buildroot}%{_libdir}/libgpg-error.la
|
|
# Drop the lisp stuff, it depends on ASDF and CFFI
|
|
# which needs to be packaged first
|
|
rm -r %{buildroot}%{_datadir}/common-lisp
|
|
%find_lang %{name}
|
|
|
|
%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"
|
|
|
|
%post -n libgpg-error0 -p /sbin/ldconfig
|
|
|
|
%postun -n libgpg-error0 -p /sbin/ldconfig
|
|
|
|
%files -n libgpg-error0 -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libgpg-error*.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%doc README NEWS ChangeLog COPYING.LIB COPYING AUTHORS ABOUT-NLS
|
|
%{_datadir}/aclocal/gpg-error.m4
|
|
%{_includedir}/*
|
|
%{_bindir}/*
|
|
%{_libdir}/libgpg-error*.so
|
|
|
|
%changelog
|