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
|
|
|
#
|
2012-02-12 23:26:04 +01:00
|
|
|
# Copyright (c) 2012 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
|
2011-10-02 20:43:15 +02:00
|
|
|
Version: 1.10
|
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
|
2012-02-12 23:26:04 +01:00
|
|
|
License: GPL-2.0+ ; 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/
|
2007-01-16 00:22:02 +01:00
|
|
|
Source: %name-%version.tar.bz2
|
2010-02-12 07:58:36 +01:00
|
|
|
Source2: baselibs.conf
|
2007-01-16 00:22:02 +01:00
|
|
|
# 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
|
2011-11-21 10:33:28 +01:00
|
|
|
BuildRequires: libtool
|
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
|
2012-02-12 23:26:04 +01:00
|
|
|
License: GPL-2.0+ ; LGPL-2.1+
|
2007-11-22 18:06:02 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2009-01-29 23:15:33 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libgpg-error-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-11-22 18:06:02 +01:00
|
|
|
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.
|
|
|
|
|
2007-01-16 00:22:02 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Development package for libgpg-error
|
2012-02-12 23:26:04 +01:00
|
|
|
License: GPL-2.0+ ; LGPL-2.1+ ; MIT
|
2007-01-16 00:22:02 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
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
|
|
|
%if %nld_build
|
|
|
|
Conflicts: libgpg-error-devel
|
|
|
|
%endif
|
2010-12-03 12:58:18 +01:00
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libgpg-error0 = %version
|
2007-01-16 00:22:02 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Files needed for software development using libgpg-error.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n libgpg-error-%version
|
|
|
|
%if %nld_build
|
2009-08-28 17:51:04 +02:00
|
|
|
%patch0
|
2007-01-16 00:22:02 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%build
|
2009-02-23 12:54:33 +01:00
|
|
|
autoreconf -fiv
|
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
|
2010-12-03 12:58:18 +01:00
|
|
|
%make_install
|
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
|
|
|
|
|
|
|
%clean
|
2010-12-03 12:58:18 +01:00
|
|
|
rm -rf %{buildroot}
|
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
|