83794e3
Summary: Library for error values used by GnuPG components
cvsdist bf46837
Name: libgpg-error
83794e3
Version: 1.6
da7e074
Release: 2
752a599
URL: ftp://ftp.gnupg.org/gcrypt/libgpg-error/
fd8a76a
Source0: ftp://ftp.gnupg.org/gcrypt/libgpg-error/%{name}-%{version}.tar.bz2
fd8a76a
Source1: ftp://ftp.gnupg.org/gcrypt/libgpg-error/%{name}-%{version}.tar.bz2.sig
cvsdist bf46837
Source2: wk@g10code.com
cvsdist bf46837
Group: System Environment/Libraries
6c18c32
License: LGPLv2+
6c66cae
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
83794e3
BuildRequires: gawk, gettext
2f23fcd
Requires(post): /sbin/ldconfig
2f23fcd
Requires(postun): /sbin/ldconfig
cvsdist bf46837
cvsdist bf46837
%description
cvsdist bf46837
This is a library that defines common error values for all GnuPG
cvsdist bf46837
components.  Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
cvsdist bf46837
pinentry, SmartCard Daemon and possibly more in the future.
cvsdist bf46837
cvsdist bf46837
%package devel
cvsdist bf46837
Summary: Development files for the %{name} package
cvsdist bf46837
Group: Development/Libraries
cvsdist bf46837
Requires: %{name} = %{version}-%{release}
cvsdist bf46837
cvsdist bf46837
%description devel
cvsdist bf46837
This is a library that defines common error values for all GnuPG
cvsdist bf46837
components.  Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
cvsdist bf46837
pinentry, SmartCard Daemon and possibly more in the future. This package
cvsdist bf46837
contains files necessary to develop applications using libgpg-error.
cvsdist bf46837
cvsdist bf46837
%prep
cvsdist bf46837
%setup -q
6c66cae
# The config script already suppresses the -L if it's /usr/lib, so cheat and
6c66cae
# set it to a value which we know will be suppressed.
cf2d64b
sed -i -e 's|^libdir=@libdir@$|libdir=@exec_prefix@/lib|g' src/gpg-error-config.in
cvsdist bf46837
cvsdist bf46837
%build
07c09f1
%configure --disable-static
cvsdist bf46837
make
cvsdist bf46837
cvsdist bf46837
%install
cvsdist bf46837
rm -fr $RPM_BUILD_ROOT
83794e3
make install DESTDIR=$RPM_BUILD_ROOT
cvsdist bf46837
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
37e449a
rm -rf $RPM_BUILD_ROOT/%{_datadir}/common-lisp
cvsdist bf46837
cvsdist bf46837
%find_lang %{name}
cvsdist bf46837
c7f3772
# Relocate the shared libraries to /%{_lib}.
c7f3772
mkdir -p $RPM_BUILD_ROOT/%{_lib}
c7f3772
for shlib in $RPM_BUILD_ROOT/%{_libdir}/*.so* ; do
c7f3772
	if test -L "$shlib" ; then
c7f3772
		rm "$shlib"
c7f3772
	else
c7f3772
		mv "$shlib" $RPM_BUILD_ROOT/%{_lib}/
c7f3772
	fi
c7f3772
done
c7f3772
# Figure out where /%{_lib} is relative to %{_libdir}.
c7f3772
touch $RPM_BUILD_ROOT/root_marker
c7f3772
relroot=..
c7f3772
while ! test -f $RPM_BUILD_ROOT/%{_libdir}/$relroot/root_marker ; do
c7f3772
	relroot=$relroot/..
c7f3772
done
c7f3772
# Overwrite development symlinks.
c7f3772
pushd $RPM_BUILD_ROOT/%{_libdir}
c7f3772
for shlib in $relroot/%{_lib}/lib*.so.* ; do
c7f3772
	shlib=`echo "$shlib" | sed -e 's,//,/,g'`
c7f3772
	target=`basename "$shlib" | sed -e 's,\.so.*,,g'`.so
c7f3772
	ln -sf $shlib $target
c7f3772
done
c7f3772
popd
73dc307
# Add the soname symlink.
73dc307
/sbin/ldconfig -n $RPM_BUILD_ROOT/%{_lib}/
c7f3772
rm -f $RPM_BUILD_ROOT/root_marker
c7f3772
83794e3
%check
83794e3
make check
83794e3
cvsdist bf46837
%clean
cvsdist bf46837
rm -fr $RPM_BUILD_ROOT
cvsdist bf46837
cvsdist bf46837
%post -p /sbin/ldconfig
cvsdist bf46837
cvsdist bf46837
%postun -p /sbin/ldconfig
cvsdist bf46837
cvsdist bf46837
%files -f %{name}.lang
cvsdist bf46837
%defattr(-,root,root)
2f23fcd
%doc COPYING COPYING.LIB AUTHORS README NEWS ChangeLog
cvsdist bf46837
%{_bindir}/gpg-error
c7f3772
/%{_lib}/libgpg-error.so.*
cvsdist bf46837
cvsdist bf46837
%files devel
cvsdist bf46837
%defattr(-,root,root)
cvsdist bf46837
%{_bindir}/gpg-error-config
cvsdist bf46837
%{_libdir}/libgpg-error.so
cvsdist bf46837
%{_includedir}/gpg-error.h
cvsdist bf46837
%{_datadir}/aclocal/gpg-error.m4
cvsdist bf46837
cvsdist bf46837
%changelog
da7e074
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.6-2
da7e074
- Autorebuild for GCC 4.3
da7e074
2f23fcd
* Fri Dec  7 2007 Nalin Dahyabhai <nalin@redhat.com>
2f23fcd
- remove the generic install docs (#226021)
2f23fcd
83794e3
* Fri Dec  7 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.6-1
83794e3
- update to 1.6
83794e3
- add suggested summary, buildrequires, and modify install call as suggested
83794e3
  by package review (#226021)
83794e3
73dc307
* Mon Oct 15 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.5-6
73dc307
- use ldconfig to make the soname symlink so that it gets packaged (#331241)
73dc307
fa1aec5
* Wed Aug 22 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.5-5
fa1aec5
- add missing gawk buildrequirement
fa1aec5
6c18c32
* Thu Aug 16 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.5-4
6c18c32
- clarify license
6c18c32
07c09f1
* Mon Jul 30 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.5-3
07c09f1
- disable static libraries (part of #249815)
07c09f1
c7f3772
* Fri Jul 27 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.5-2
c7f3772
- move libgpg-error shared library to /%{_lib} (#249816)
c7f3772
6c66cae
* Thu Jul 19 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.5-1
6c66cae
- update to 1.5
6c66cae
5761a8a
* Sun Oct 01 2006 Jesse Keating <jkeating@redhat.com> - 1.4-2
5761a8a
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
5761a8a
37e449a
* Mon Sep 18 2006 Bill Nottngham <notting@redhat.com> - 1.4-1
37e449a
- update to 1.4
37e449a
- don't ship lisp bindings
37e449a
805e701
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.3-3.1
805e701
- rebuild
805e701
cf2d64b
* Mon Jun  5 2006 Nalin Dahyabhai <nalin@redhat.com> 1.3-3
cf2d64b
- give gpg-error-config libdir=@exec_prefix@/lib instead of @libdir@, so that
cf2d64b
  it agrees on 32- and 64-bit arches (it suppresses the -L argument if @libdir@
cf2d64b
  is /usr/lib, so this should be cleaner than adding a non-standard .pc file
cf2d64b
  which upstream developers might inadvertently think they can depend to be on
cf2d64b
  every system which provides this library)
cf2d64b
a0cd2ed
* Mon May 15 2006 Karsten Hopp <karsten@redhat.de> 1.3-2
a0cd2ed
- switch to pkgconfig so that gpg-error-config can be the same on 
a0cd2ed
  32bit and 64bit archs
a0cd2ed
fd8a76a
* Tue May  2 2006 Nalin Dahyabhai <nalin@redhat.com> - 1.3-1
fd8a76a
- update to version 1.3
fd8a76a
8924214
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.1-1.2.1
8924214
- bump again for double-long bug on ppc(64)
8924214
a1098eb
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.1-1.2
a1098eb
- rebuilt for new gcc4.1 snapshot and glibc changes
a1098eb
bcb44d3
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
bcb44d3
- rebuilt
bcb44d3
fc2ce90
* Wed Nov 30 2005 Karsten Hopp <karsten@redhat.de> 1.1-1
fc2ce90
- update
fc2ce90
752a599
* Wed Mar  2 2005 Bill Nottingham <notting@redhat.com> - 1.0-2
752a599
- we can rebuild it. we have the technology.
752a599
cvsdist 319895c
* Tue Aug 31 2004 Bill Nottingham <notting@redhat.com> - 1.0-1
cvsdist 319895c
- update to 1.0
cvsdist 319895c
cvsdist 94044ee
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 94044ee
- rebuilt
cvsdist 94044ee
cvsdist 319895c
* Fri Apr 16 2004 Bill Nottingham <notting@redhat.com> - 0.7-1
fc2ce90
- adapt upstream specfile