cvsdist 14b0010
Name: libgcrypt
13d88a8
Version: 1.2.4
db8737b
Release: 3
f0681c1
Source0: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2
f0681c1
Source1: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2.sig
cvsdist 43bf1a0
Source2: wk@g10code.com
884ac1e
Patch0: libgcrypt-1.2.2-lib64.patch
b03ca47
License: LGPLv2+
cvsdist 14b0010
Summary: A general-purpose cryptography library.
cvsdist 14b0010
BuildRoot: %{_tmppath}/%{name}-%{version}-root
dc30f1f
BuildRequires: libgpg-error-devel pkgconfig
cvsdist 14b0010
Group: System Environment/Libraries
cvsdist 14b0010
cvsdist 14b0010
%package devel
cvsdist 14b0010
Summary: Development files for the %{name} package.
cvsdist 14b0010
Group: Development/Libraries
cvsdist 14b0010
PreReq: /sbin/install-info
cvsdist 5ec77af
Requires: libgpg-error-devel
cvsdist 14b0010
Requires: %{name} = %{version}-%{release}
cvsdist 14b0010
cvsdist 14b0010
%description
cvsdist 14b0010
Libgcrypt is a general purpose crypto library based on the code used
cvsdist 14b0010
in GNU Privacy Guard.  This is a development version.
cvsdist 14b0010
cvsdist 14b0010
%description devel
cvsdist 14b0010
Libgcrypt is a general purpose crypto library based on the code used
cvsdist 14b0010
in GNU Privacy Guard.  This package contains files needed to develop
cvsdist 14b0010
applications using libgcrypt.
cvsdist 14b0010
cvsdist 14b0010
%prep
cvsdist 14b0010
%setup -q
884ac1e
#%patch0 -p1 -b .lib64
cvsdist 14b0010
cvsdist 14b0010
%build
b03ca47
%configure --disable-asm --disable-static --enable-random=linux
cvsdist 14b0010
make
f0681c1
make check
cvsdist 14b0010
cvsdist 14b0010
%install
cvsdist 14b0010
rm -fr $RPM_BUILD_ROOT
cvsdist 14b0010
%makeinstall
cvsdist 14b0010
884ac1e
# Change /usr/lib64 back to /usr/lib.  This saves us from having to patch the
884ac1e
# script to "know" that -L/usr/lib64 should be suppressed, and also removes
884ac1e
# a file conflict between 32- and 64-bit versions of this package.
884ac1e
sed -i -e 's,^libdir="/usr/lib.*"$,libdir="/usr/lib",g' $RPM_BUILD_ROOT/%{_bindir}/libgcrypt-config
cvsdist 14b0010
cvsdist 5ec77af
rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir ${RPM_BUILD_ROOT}/%{_libdir}/*.la
cvsdist 584927c
/sbin/ldconfig -n $RPM_BUILD_ROOT/%{_libdir}
cvsdist 14b0010
1b380ca
# Relocate the shared libraries to /%{_lib}.
1b380ca
mkdir -p $RPM_BUILD_ROOT/%{_lib}
1b380ca
for shlib in $RPM_BUILD_ROOT/%{_libdir}/*.so* ; do
1b380ca
	if test -L "$shlib" ; then
1b380ca
		rm "$shlib"
1b380ca
	else
1b380ca
		mv "$shlib" $RPM_BUILD_ROOT/%{_lib}/
1b380ca
	fi
1b380ca
done
1b380ca
# Figure out where /%{_lib} is relative to %{_libdir}.
1b380ca
touch $RPM_BUILD_ROOT/root_marker
1b380ca
relroot=..
1b380ca
while ! test -f $RPM_BUILD_ROOT/%{_libdir}/$relroot/root_marker ; do
1b380ca
	relroot=$relroot/..
1b380ca
done
1b380ca
# Overwrite development symlinks.
1b380ca
pushd $RPM_BUILD_ROOT/%{_libdir}
1b380ca
for shlib in $relroot/%{_lib}/lib*.so.* ; do
1b380ca
	shlib=`echo "$shlib" | sed -e 's,//,/,g'`
1b380ca
	target=`basename "$shlib" | sed -e 's,\.so.*,,g'`.so
1b380ca
	ln -sf $shlib $target
1b380ca
done
1b380ca
popd
1b380ca
rm -f $RPM_BUILD_ROOT/root_marker
1b380ca
cvsdist 14b0010
%clean
cvsdist 14b0010
rm -fr $RPM_BUILD_ROOT
cvsdist 14b0010
cvsdist 14b0010
%post -p /sbin/ldconfig
cvsdist 14b0010
cvsdist 14b0010
%postun -p /sbin/ldconfig
cvsdist 14b0010
cvsdist 14b0010
%post devel
cvsdist 14b0010
/sbin/install-info %{_infodir}/gcrypt.info.gz %{_infodir}/dir
2b15591
exit 0
cvsdist 14b0010
cvsdist 14b0010
%preun devel
cvsdist 14b0010
if [ $1 = 0 ]; then
cvsdist 14b0010
    /sbin/install-info --delete %{_infodir}/gcrypt.info.gz %{_infodir}/dir
cvsdist 14b0010
fi
2b15591
exit 0
cvsdist 14b0010
cvsdist 14b0010
%files
cvsdist 14b0010
%defattr(-,root,root)
1b380ca
/%{_lib}/*.so.*
cvsdist 14b0010
#%{_libdir}/%{name}
cvsdist 14b0010
cvsdist 14b0010
%files devel
cvsdist 14b0010
%defattr(-,root,root)
cvsdist 14b0010
%{_bindir}/%{name}-config
cvsdist 14b0010
%{_includedir}/*
cvsdist 14b0010
%{_libdir}/*.so
cvsdist 14b0010
%{_datadir}/aclocal/*
cvsdist 14b0010
#%{_datadir}/%{name}
cvsdist 14b0010
cvsdist 14b0010
%{_infodir}/gcrypt.info*
cvsdist 14b0010
cvsdist 14b0010
%changelog
b03ca47
* Thu Aug 16 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.2.4-4
b03ca47
- clarify license
b03ca47
- force use of the linux /dev/random RNG, to avoid accidentally falling back
b03ca47
  to others which would affect the license of the resulting library
b03ca47
db8737b
* Mon Jul 30 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.2.4-3
db8737b
- disable static libraries (part of #249815)
db8737b
1b380ca
* Fri Jul 27 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.2.4-2
1b380ca
- move libgcrypt shared library to /%{_lib} (#249815)
1b380ca
13d88a8
* Tue Feb  6 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.2.4-1
13d88a8
- update to 1.2.4
13d88a8
2b15591
* Mon Jan 22 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.2.3-2
2b15591
- make use of install-info more failsafe (Ville Skyttä, #223705)
2b15591
ceaccca
* Fri Sep  1 2006 Nalin Dahyabhai <nalin@redhat.com> - 1.2.3-1
ceaccca
- update to 1.2.3
ceaccca
38f71b7
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.2.2-3.1
38f71b7
- rebuild
38f71b7
dc30f1f
* Mon Jun 05 2006 Jesse Keating <jkeating@redhat.com> 1.2.2-3
dc30f1f
- Added missing buildreq pkgconfig
dc30f1f
884ac1e
* Tue May 16 2006 Nalin Dahyabhai <nalin@redhat.com> 1.2.2-2
884ac1e
- remove file conflicts in libgcrypt-config by making the 64-bit version
884ac1e
  think the libraries are in /usr/lib (which is wrong, but which it also
884ac1e
  prunes from the suggest --libs output, so no harm done, hopefully)
884ac1e
d9774b4
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.2.2-1.2.1
d9774b4
- bump again for double-long bug on ppc(64)
d9774b4
9d0e976
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.2.2-1.2
9d0e976
- rebuilt for new gcc4.1 snapshot and glibc changes
9d0e976
6578d14
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
6578d14
- rebuilt
6578d14
1725944
* Wed Oct  5 2005 Nalin Dahyabhai <nalin@redhat.com> 1.2.2-1
1725944
- update to 1.2.2
1725944
1725944
* Wed Mar 16 2005 Nalin Dahyabhai <nalin@redhat.com> 1.2.1-1
f0681c1
- update to 1.2.1
f0681c1
cvsdist 584927c
* Fri Jul 30 2004 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 584927c
- another try to package the symlink
cvsdist 584927c
cvsdist 61ab57a
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 61ab57a
- rebuilt
cvsdist 61ab57a
cvsdist 5ec77af
* Sun May  2 2004 Bill Nottingham <notting@redhat.com> - 1.2.0-1
cvsdist 5ec77af
- update to official 1.2.0
cvsdist 5ec77af
cvsdist 5ec77af
* Fri Apr 16 2004 Bill Nottingham <notting@redhat.com> - 1.1.94-1
cvsdist 5ec77af
- update to 1.1.94
cvsdist 5ec77af
cvsdist 90149ee
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 90149ee
- rebuilt
cvsdist 90149ee
cvsdist 90149ee
* Sat Feb 21 2004 Florian La Roche <Florian.LaRoche@redhat.de>
cvsdist 90149ee
- add symlinks to shared libs at compile time
cvsdist 90149ee
cvsdist 90149ee
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 90149ee
- rebuilt
cvsdist 90149ee
cvsdist 43bf1a0
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist 43bf1a0
- rebuilt
cvsdist 43bf1a0
cvsdist 43bf1a0
* Thu Mar 20 2003 Jeff Johnson <jbj@redhat.com> 1.1.12-1
cvsdist 43bf1a0
- upgrade to 1.1.12 (beta).
cvsdist 43bf1a0
cvsdist 14b0010
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cvsdist 14b0010
- automated rebuild
cvsdist 14b0010
cvsdist 14b0010
* Sun May 26 2002 Tim Powers <timp@redhat.com>
cvsdist 14b0010
- automated rebuild
cvsdist 14b0010
cvsdist 14b0010
* Tue May 21 2002 Jeff Johnson <jbj@redhat.com>
cvsdist 14b0010
- update to 1.1.7
cvsdist 14b0010
- change license to LGPL.
cvsdist 14b0010
- include splint annotations patch.
cvsdist 14b0010
- install info pages.
cvsdist 14b0010
cvsdist 14b0010
* Tue Apr  2 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.6-1
cvsdist 14b0010
- update to 1.1.6
cvsdist 14b0010
cvsdist 14b0010
* Thu Jan 10 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-1
cvsdist 14b0010
- fix the Source tag so that it's a real URL
cvsdist 14b0010
cvsdist 14b0010
* Wed Dec 20 2001 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 14b0010
- initial package