libgpg-error/libgpg-error.spec
Cristian Rodríguez 2813ba4e70 Accepting request 86105 from home:elvigia:branches:Base:System
-  Update to version 1.10
* Define GPG_ERR_ENABLE_ERRNO_MACROS.
* Add GPG_ERR_NOT_INITIALIZED.
* Add GPG_ERR_MISSING_ISSUER_CERT

OBS-URL: https://build.opensuse.org/request/show/86105
OBS-URL: https://build.opensuse.org/package/show/Base:System/libgpg-error?expand=0&rev=14
2011-10-02 18:43:15 +00:00

116 lines
3.4 KiB
RPMSpec

#
# spec file for package libgpg-error
#
# Copyright (c) 2011 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.10
Release: 1
License: GPLv2+ ; LGPLv2.1+
Summary: Library That Defines Common Error Values for All GnuPG Components
Url: http://www.gnupg.org/
Group: Development/Libraries/C and C++
Source: %name-%version.tar.bz2
Source2: baselibs.conf
# rename package to "libgpg-error-nld" and set this to 1 for NLD
%define nld_build 0
Patch0: %name-nld-build.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
License: GPLv2+ ; LGPLv2.1+
Summary: Library That Defines Common Error Values for All GnuPG Components
Group: Development/Libraries/C and C++
# bug437293
%ifarch ppc64
Obsoletes: libgpg-error-64bit
%endif
#
Provides: libgpg-error = %version
Obsoletes: libgpg-error < %version
%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
License: GPLv2+ ; LGPLv2.1+ ; MIT License (or similar)
Summary: Development package for libgpg-error
Group: Development/Libraries/C and C++
# bug437293
%ifarch ppc64
Obsoletes: libgpg-error-devel-64bit
%endif
#
%if %nld_build
Conflicts: libgpg-error-devel
%endif
Requires: glibc-devel
Requires: libgpg-error0 = %version
%description devel
Files needed for software development using libgpg-error.
%prep
%setup -q -n libgpg-error-%version
%if %nld_build
%patch0
%endif
%build
autoreconf -fiv
%configure --disable-static --with-pic --libdir=/%{_lib}
make %{?_smp_mflags}
%install
%make_install
rm %{buildroot}/%{_lib}/libgpg-error.la
mkdir -p %{buildroot}%{_libdir}
ln -s -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/%{name}.so) %{buildroot}%{_libdir}/%{name}.so
rm -v %{buildroot}/%{_lib}/%{name}.so
# 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}
%clean
rm -rf %{buildroot}
%post -n libgpg-error0 -p /sbin/ldconfig
%postun -n libgpg-error0 -p /sbin/ldconfig
%files -n libgpg-error0 -f %{name}.lang
%defattr(-,root,root)
/%{_lib}/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