cvsdist 14b001
Name: libgcrypt
0b312a
Version: 1.4.4
7de504
Release: 2%{?dist}
0b312a
Source0: libgcrypt-%{version}-hobbled.tar.bz2
0b312a
# The original libgcrypt sources now contain potentially patented ECC
0b312a
# cipher support. We have to remove it in the tarball we ship with
0b312a
# the hobble-libgcrypt script.
0b312a
#Source0: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2
0b312a
#Source1: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2.sig
cvsdist 43bf1a
Source2: wk@g10code.com
0b312a
Source3: hobble-libgcrypt
0b312a
Patch1: libgcrypt-1.4.4-fips-no-access.patch
0b312a
cfb345
# Technically LGPLv2.1+, but Fedora's table doesn't draw a distinction.
b03ca4
License: LGPLv2+
0be77f
Summary: A general-purpose cryptography library
cvsdist 14b001
BuildRoot: %{_tmppath}/%{name}-%{version}-root
cfb345
BuildRequires: gawk, libgpg-error-devel >= 1.4, pkgconfig
cvsdist 14b001
Group: System Environment/Libraries
cvsdist 14b001
cvsdist 14b001
%package devel
cvsdist 14b001
Summary: Development files for the %{name} package.
cvsdist 14b001
Group: Development/Libraries
cvsdist 14b001
PreReq: /sbin/install-info
cvsdist 5ec77a
Requires: libgpg-error-devel
cvsdist 14b001
Requires: %{name} = %{version}-%{release}
cvsdist 14b001
cvsdist 14b001
%description
cvsdist 14b001
Libgcrypt is a general purpose crypto library based on the code used
cvsdist 14b001
in GNU Privacy Guard.  This is a development version.
cvsdist 14b001
cvsdist 14b001
%description devel
cvsdist 14b001
Libgcrypt is a general purpose crypto library based on the code used
cvsdist 14b001
in GNU Privacy Guard.  This package contains files needed to develop
cvsdist 14b001
applications using libgcrypt.
cvsdist 14b001
cvsdist 14b001
%prep
cvsdist 14b001
%setup -q
0b312a
%{SOURCE3}
0b312a
%patch1 -p1 -b .no-access
cvsdist 14b001
cvsdist 14b001
%build
328eeb
%configure --disable-static \
328eeb
%ifarch sparc64
328eeb
     --disable-asm \
328eeb
%endif
0b312a
     --enable-noexecstack \
0b312a
     --enable-pubkey-ciphers='dsa elgamal rsa'
6e274a
make %{?_smp_mflags}
665b2f
665b2f
%check
f0681c
make check
cvsdist 14b001
cvsdist 14b001
%install
cvsdist 14b001
rm -fr $RPM_BUILD_ROOT
cvsdist 14b001
%makeinstall
cvsdist 14b001
884ac1
# Change /usr/lib64 back to /usr/lib.  This saves us from having to patch the
884ac1
# script to "know" that -L/usr/lib64 should be suppressed, and also removes
884ac1
# a file conflict between 32- and 64-bit versions of this package.
884ac1
sed -i -e 's,^libdir="/usr/lib.*"$,libdir="/usr/lib",g' $RPM_BUILD_ROOT/%{_bindir}/libgcrypt-config
cvsdist 14b001
cvsdist 5ec77a
rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir ${RPM_BUILD_ROOT}/%{_libdir}/*.la
cvsdist 584927
/sbin/ldconfig -n $RPM_BUILD_ROOT/%{_libdir}
cvsdist 14b001
1b380c
# Relocate the shared libraries to /%{_lib}.
1b380c
mkdir -p $RPM_BUILD_ROOT/%{_lib}
1b380c
for shlib in $RPM_BUILD_ROOT/%{_libdir}/*.so* ; do
1b380c
	if test -L "$shlib" ; then
1b380c
		rm "$shlib"
1b380c
	else
1b380c
		mv "$shlib" $RPM_BUILD_ROOT/%{_lib}/
1b380c
	fi
1b380c
done
665b2f
1b380c
# Figure out where /%{_lib} is relative to %{_libdir}.
1b380c
touch $RPM_BUILD_ROOT/root_marker
1b380c
relroot=..
1b380c
while ! test -f $RPM_BUILD_ROOT/%{_libdir}/$relroot/root_marker ; do
1b380c
	relroot=$relroot/..
1b380c
done
665b2f
1b380c
# Overwrite development symlinks.
1b380c
pushd $RPM_BUILD_ROOT/%{_libdir}
1b380c
for shlib in $relroot/%{_lib}/lib*.so.* ; do
1b380c
	shlib=`echo "$shlib" | sed -e 's,//,/,g'`
1b380c
	target=`basename "$shlib" | sed -e 's,\.so.*,,g'`.so
1b380c
	ln -sf $shlib $target
1b380c
done
1b380c
popd
665b2f
9f9b61
# Add soname symlink.
9f9b61
/sbin/ldconfig -n $RPM_BUILD_ROOT/%{_lib}/
1b380c
rm -f $RPM_BUILD_ROOT/root_marker
1b380c
0be77f
# Create /etc/gcrypt (hardwired, not dependent on the configure invocation) so
0be77f
# that _someone_ owns it.
0be77f
mkdir -p -m 755 $RPM_BUILD_ROOT/etc/gcrypt
0be77f
cvsdist 14b001
%clean
cvsdist 14b001
rm -fr $RPM_BUILD_ROOT
cvsdist 14b001
cvsdist 14b001
%post -p /sbin/ldconfig
cvsdist 14b001
cvsdist 14b001
%postun -p /sbin/ldconfig
cvsdist 14b001
cvsdist 14b001
%post devel
cvsdist 14b001
/sbin/install-info %{_infodir}/gcrypt.info.gz %{_infodir}/dir
2b1559
exit 0
cvsdist 14b001
cvsdist 14b001
%preun devel
cvsdist 14b001
if [ $1 = 0 ]; then
cvsdist 14b001
    /sbin/install-info --delete %{_infodir}/gcrypt.info.gz %{_infodir}/dir
cvsdist 14b001
fi
2b1559
exit 0
cvsdist 14b001
cvsdist 14b001
%files
cvsdist 14b001
%defattr(-,root,root)
0be77f
%dir /etc/gcrypt
1b380c
/%{_lib}/*.so.*
cvsdist 14b001
#%{_libdir}/%{name}
cvsdist 14b001
cvsdist 14b001
%files devel
cvsdist 14b001
%defattr(-,root,root)
cvsdist 14b001
%{_bindir}/%{name}-config
665b2f
%{_bindir}/dumpsexp
569a42
%{_bindir}/hmac256
cvsdist 14b001
%{_includedir}/*
cvsdist 14b001
%{_libdir}/*.so
cvsdist 14b001
%{_datadir}/aclocal/*
cvsdist 14b001
#%{_datadir}/%{name}
cvsdist 14b001
cvsdist 14b001
%{_infodir}/gcrypt.info*
cvsdist 14b001
cvsdist 14b001
%changelog
7de504
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-2
7de504
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
7de504
0b312a
* Fri Jan 30 2009 Tomas Mraz <tmraz@redhat.com> 1.4.4-1
0b312a
- update to 1.4.4
0b312a
- do not abort when the fips mode kernel flag is inaccessible
0b312a
  due to permissions (#470219)
0b312a
- hobble the library to drop the ECC support
0b312a
328eeb
* Mon Oct 20 2008 Dennis Gilmore <dennis@ausil.us> 1.4.3-2
328eeb
- disable asm on sparc64
328eeb
0be77f
* Thu Sep 18 2008 Nalin Dahyabhai <nalin@redhat.com> 1.4.3-1
0be77f
- update to 1.4.3
0be77f
- own /etc/gcrypt
0be77f
6e274a
* Mon Sep 15 2008 Nalin Dahyabhai <nalin@redhat.com>
6e274a
- invoke make with %%{?_smp_mflags} to build faster on multi-processor
6e274a
  systems (Steve Grubb)
6e274a
569a42
* Mon Sep  8 2008 Nalin Dahyabhai <nalin@redhat.com> 1.4.2-1
569a42
- update to 1.4.2
569a42
cfb345
* Tue Apr 29 2008 Nalin Dahyabhai <nalin@redhat.com> 1.4.1-1
cfb345
- update to 1.4.1
cfb345
- bump libgpgerror-devel requirement to 1.4, matching the requirement enforced
cfb345
  by the configure script
cfb345
a56262
* Thu Apr  3 2008 Joe Orton <jorton@redhat.com> 1.4.0-3
a56262
- add patch from upstream to fix severe performance regression
a56262
  in entropy gathering
a56262
dac6bc
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.4.0-2
dac6bc
- Autorebuild for GCC 4.3
dac6bc
665b2f
* Mon Dec 10 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.4.0-1
665b2f
- update to 1.4.0
665b2f
9f9b61
* Tue Oct 16 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.2.4-6
9f9b61
- use ldconfig to build the soname symlink for packaging along with the
9f9b61
  shared library (#334731)
9f9b61
710edd
* Wed Aug 22 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.2.4-5
710edd
- add missing gawk buildrequirement
710edd
- switch from explicitly specifying the /dev/random RNG to just verifying
710edd
  that the non-LGPL ones were disabled by the configure script
710edd
b03ca4
* Thu Aug 16 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.2.4-4
b03ca4
- clarify license
b03ca4
- force use of the linux /dev/random RNG, to avoid accidentally falling back
b03ca4
  to others which would affect the license of the resulting library
b03ca4
db8737
* Mon Jul 30 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.2.4-3
db8737
- disable static libraries (part of #249815)
db8737
1b380c
* Fri Jul 27 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.2.4-2
1b380c
- move libgcrypt shared library to /%{_lib} (#249815)
1b380c
13d88a
* Tue Feb  6 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.2.4-1
13d88a
- update to 1.2.4
13d88a
2b1559
* Mon Jan 22 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.2.3-2
2b1559
- make use of install-info more failsafe (Ville Skyttä, #223705)
2b1559
ceaccc
* Fri Sep  1 2006 Nalin Dahyabhai <nalin@redhat.com> - 1.2.3-1
ceaccc
- update to 1.2.3
ceaccc
38f71b
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.2.2-3.1
38f71b
- rebuild
38f71b
dc30f1
* Mon Jun 05 2006 Jesse Keating <jkeating@redhat.com> 1.2.2-3
dc30f1
- Added missing buildreq pkgconfig
dc30f1
884ac1
* Tue May 16 2006 Nalin Dahyabhai <nalin@redhat.com> 1.2.2-2
884ac1
- remove file conflicts in libgcrypt-config by making the 64-bit version
884ac1
  think the libraries are in /usr/lib (which is wrong, but which it also
884ac1
  prunes from the suggest --libs output, so no harm done, hopefully)
884ac1
d9774b
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.2.2-1.2.1
d9774b
- bump again for double-long bug on ppc(64)
d9774b
9d0e97
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.2.2-1.2
9d0e97
- rebuilt for new gcc4.1 snapshot and glibc changes
9d0e97
6578d1
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
6578d1
- rebuilt
6578d1
172594
* Wed Oct  5 2005 Nalin Dahyabhai <nalin@redhat.com> 1.2.2-1
172594
- update to 1.2.2
172594
172594
* Wed Mar 16 2005 Nalin Dahyabhai <nalin@redhat.com> 1.2.1-1
f0681c
- update to 1.2.1
f0681c
cvsdist 584927
* Fri Jul 30 2004 Florian La Roche <florian.laroche@redhat.de>
cvsdist 584927
- another try to package the symlink
cvsdist 584927
cvsdist 61ab57
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 61ab57
- rebuilt
cvsdist 61ab57
cvsdist 5ec77a
* Sun May  2 2004 Bill Nottingham <notting@redhat.com> - 1.2.0-1
cvsdist 5ec77a
- update to official 1.2.0
cvsdist 5ec77a
cvsdist 5ec77a
* Fri Apr 16 2004 Bill Nottingham <notting@redhat.com> - 1.1.94-1
cvsdist 5ec77a
- update to 1.1.94
cvsdist 5ec77a
cvsdist 90149e
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 90149e
- rebuilt
cvsdist 90149e
cvsdist 90149e
* Sat Feb 21 2004 Florian La Roche <florian.laroche@redhat.de>
cvsdist 90149e
- add symlinks to shared libs at compile time
cvsdist 90149e
cvsdist 90149e
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 90149e
- rebuilt
cvsdist 90149e
cvsdist 43bf1a
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist 43bf1a
- rebuilt
cvsdist 43bf1a
cvsdist 43bf1a
* Thu Mar 20 2003 Jeff Johnson <jbj@redhat.com> 1.1.12-1
cvsdist 43bf1a
- upgrade to 1.1.12 (beta).
cvsdist 43bf1a
cvsdist 14b001
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cvsdist 14b001
- automated rebuild
cvsdist 14b001
cvsdist 14b001
* Sun May 26 2002 Tim Powers <timp@redhat.com>
cvsdist 14b001
- automated rebuild
cvsdist 14b001
cvsdist 14b001
* Tue May 21 2002 Jeff Johnson <jbj@redhat.com>
cvsdist 14b001
- update to 1.1.7
cvsdist 14b001
- change license to LGPL.
cvsdist 14b001
- include splint annotations patch.
cvsdist 14b001
- install info pages.
cvsdist 14b001
cvsdist 14b001
* Tue Apr  2 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.6-1
cvsdist 14b001
- update to 1.1.6
cvsdist 14b001
cvsdist 14b001
* Thu Jan 10 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-1
cvsdist 14b001
- fix the Source tag so that it's a real URL
cvsdist 14b001
cvsdist 14b001
* Wed Dec 20 2001 Nalin Dahyabhai <nalin@redhat.com>
cvsdist 14b001
- initial package