# # spec file for package libgpg-error (Version 1.4) # # Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: libgpg-error URL: http://www.gnupg.org/ Version: 1.4 Release: 18 Summary: Library That Defines Common Error Values for All GnuPG Components License: GNU General Public License (GPL), GNU Library General Public License v. 2.0 and 2.1 (LGPL) Group: Development/Libraries/C and C++ Autoreqprov: on Source: %name-%version.tar.bz2 # 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. Authors: -------- Marcus Brinkmann %package devel Summary: Development package for libgpg-error Group: Development/Libraries/C and C++ %if %nld_build Conflicts: libgpg-error-devel %else Provides: libgpg-error:/usr/include/gpg-error.h %endif Requires: libgpg-error == %version %description devel Files needed for software development using libgpg-error. Authors: -------- Marcus Brinkmann %prep %setup -q -n libgpg-error-%version autoreconf --force %if %nld_build %patch %endif %build libtoolize --force aclocal -I m4 automake -a autoconf ./configure --prefix=%{_prefix} \ --sysconfdir=%{_sysconfdir} \ --libdir=/%{_lib} \ --infodir=%{_infodir} \ CFLAGS="$RPM_OPT_FLAGS" make %install make DESTDIR=$RPM_BUILD_ROOT install rm $RPM_BUILD_ROOT/%{_lib}/libgpg-error.la mkdir -p $RPM_BUILD_ROOT%{_libdir} rm $RPM_BUILD_ROOT/%{_lib}/libgpg-error.so ln -s /%{_lib}/libgpg-error.so.0 $RPM_BUILD_ROOT%{_libdir}/libgpg-error.so mv $RPM_BUILD_ROOT/%{_lib}/libgpg-error.a $RPM_BUILD_ROOT%{_libdir} # Drop the lisp stuff, it depends on ASDF and CFFI # which needs to be packaged first rm -r %{buildroot}/usr/share/common-lisp %clean rm -rf $RPM_BUILD_ROOT %post %run_ldconfig %postun %run_ldconfig %files %defattr(-,root,root) %doc README NEWS ChangeLog COPYING.LIB COPYING AUTHORS ABOUT-NLS %_datadir/locale/*/LC_MESSAGES/libgpg-error*.mo /%_lib/libgpg-error*.so.* %files devel %defattr(-,root,root) %_datadir/aclocal/gpg-error.m4 %_includedir/* %_bindir/* %_libdir/libgpg-error*.a %_libdir/libgpg-error*.so %changelog -n libgpg-error * Wed Dec 13 2006 - mkoenig@suse.de - get rid of .la file and fix devel so link * Tue Dec 05 2006 - mkoenig@suse.de - move shared lib to /%%_lib * Tue Sep 19 2006 - mkoenig@suse.de - update to version 1.4: * New error codes for the Assuan IPC library. * New error code GPG_ERR_MISSING_ERRNO * New error source GPG_ERR_SOURCE_ANY * New convenience functions gpg_err_code_from_syserror and gpg_error_from_syserror * Thu Jul 13 2006 - mskibbe@suse.de - add autoreconf --force ( includes the missing -fPIC option while build ) * Wed Jul 12 2006 - mskibbe@suse.de - update to version 1.3 which o includes fixes in Makefiles o fix cast problems o include utf8 functions o add some languages * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires * Thu Jun 23 2005 - hvogel@suse.de - require libgpg-error - add %%clean section * Thu Oct 14 2004 - hvogel@suse.de - update to version 1.0 * Mon Sep 27 2004 - hvogel@suse.de - fixed ac-quotation of gpg-error.m4 * Mon Jul 19 2004 - hvogel@suse.de - correct nld_build if statement * Wed Jul 14 2004 - adrian@suse.de - create -devel subpackage - prepare for NLD * Mon May 24 2004 - ro@suse.de - added return value to non-void function (main) * Wed May 19 2004 - hvogel@suse.de - update to version 0.7 * Tue Feb 17 2004 - hvogel@suse.de - initial package, version 0.6