2004-09-09 07:25:35 +00:00
|
|
|
Name: libgcrypt
|
2008-09-18 15:50:08 +00:00
|
|
|
Version: 1.4.3
|
2008-10-21 04:51:58 +00:00
|
|
|
Release: 2%{?dist}
|
2005-03-16 20:47:41 +00:00
|
|
|
Source0: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2
|
|
|
|
Source1: ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-%{version}.tar.bz2.sig
|
2004-09-09 07:25:44 +00:00
|
|
|
Source2: wk@g10code.com
|
2008-04-29 18:05:46 +00:00
|
|
|
# Technically LGPLv2.1+, but Fedora's table doesn't draw a distinction.
|
2007-08-16 15:27:13 +00:00
|
|
|
License: LGPLv2+
|
2008-09-18 15:50:08 +00:00
|
|
|
Summary: A general-purpose cryptography library
|
2004-09-09 07:25:35 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
2008-04-29 18:05:46 +00:00
|
|
|
BuildRequires: gawk, libgpg-error-devel >= 1.4, pkgconfig
|
2004-09-09 07:25:35 +00:00
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for the %{name} package.
|
|
|
|
Group: Development/Libraries
|
|
|
|
PreReq: /sbin/install-info
|
2004-09-09 07:26:43 +00:00
|
|
|
Requires: libgpg-error-devel
|
2004-09-09 07:25:35 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Libgcrypt is a general purpose crypto library based on the code used
|
|
|
|
in GNU Privacy Guard. This is a development version.
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Libgcrypt is a general purpose crypto library based on the code used
|
|
|
|
in GNU Privacy Guard. This package contains files needed to develop
|
|
|
|
applications using libgcrypt.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2008-10-21 04:51:58 +00:00
|
|
|
%configure --disable-static \
|
|
|
|
%ifarch sparc64
|
|
|
|
--disable-asm \
|
|
|
|
%endif
|
|
|
|
--enable-noexecstack
|
2008-09-15 19:49:03 +00:00
|
|
|
make %{?_smp_mflags}
|
2007-12-10 21:10:52 +00:00
|
|
|
|
|
|
|
%check
|
2005-03-16 20:47:41 +00:00
|
|
|
make check
|
2004-09-09 07:25:35 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -fr $RPM_BUILD_ROOT
|
|
|
|
%makeinstall
|
|
|
|
|
2006-05-16 23:26:54 +00:00
|
|
|
# Change /usr/lib64 back to /usr/lib. This saves us from having to patch the
|
|
|
|
# script to "know" that -L/usr/lib64 should be suppressed, and also removes
|
|
|
|
# a file conflict between 32- and 64-bit versions of this package.
|
|
|
|
sed -i -e 's,^libdir="/usr/lib.*"$,libdir="/usr/lib",g' $RPM_BUILD_ROOT/%{_bindir}/libgcrypt-config
|
2004-09-09 07:25:35 +00:00
|
|
|
|
2004-09-09 07:26:43 +00:00
|
|
|
rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir ${RPM_BUILD_ROOT}/%{_libdir}/*.la
|
2004-09-09 07:26:56 +00:00
|
|
|
/sbin/ldconfig -n $RPM_BUILD_ROOT/%{_libdir}
|
2004-09-09 07:25:35 +00:00
|
|
|
|
2007-07-27 13:54:26 +00:00
|
|
|
# Relocate the shared libraries to /%{_lib}.
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_lib}
|
|
|
|
for shlib in $RPM_BUILD_ROOT/%{_libdir}/*.so* ; do
|
|
|
|
if test -L "$shlib" ; then
|
|
|
|
rm "$shlib"
|
|
|
|
else
|
|
|
|
mv "$shlib" $RPM_BUILD_ROOT/%{_lib}/
|
|
|
|
fi
|
|
|
|
done
|
2007-12-10 21:10:52 +00:00
|
|
|
|
2007-07-27 13:54:26 +00:00
|
|
|
# Figure out where /%{_lib} is relative to %{_libdir}.
|
|
|
|
touch $RPM_BUILD_ROOT/root_marker
|
|
|
|
relroot=..
|
|
|
|
while ! test -f $RPM_BUILD_ROOT/%{_libdir}/$relroot/root_marker ; do
|
|
|
|
relroot=$relroot/..
|
|
|
|
done
|
2007-12-10 21:10:52 +00:00
|
|
|
|
2007-07-27 13:54:26 +00:00
|
|
|
# Overwrite development symlinks.
|
|
|
|
pushd $RPM_BUILD_ROOT/%{_libdir}
|
|
|
|
for shlib in $relroot/%{_lib}/lib*.so.* ; do
|
|
|
|
shlib=`echo "$shlib" | sed -e 's,//,/,g'`
|
|
|
|
target=`basename "$shlib" | sed -e 's,\.so.*,,g'`.so
|
|
|
|
ln -sf $shlib $target
|
|
|
|
done
|
|
|
|
popd
|
2007-12-10 21:10:52 +00:00
|
|
|
|
2007-10-16 17:05:10 +00:00
|
|
|
# Add soname symlink.
|
|
|
|
/sbin/ldconfig -n $RPM_BUILD_ROOT/%{_lib}/
|
2007-07-27 13:54:26 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT/root_marker
|
|
|
|
|
2008-09-18 15:50:08 +00:00
|
|
|
# Create /etc/gcrypt (hardwired, not dependent on the configure invocation) so
|
|
|
|
# that _someone_ owns it.
|
|
|
|
mkdir -p -m 755 $RPM_BUILD_ROOT/etc/gcrypt
|
|
|
|
|
2004-09-09 07:25:35 +00:00
|
|
|
%clean
|
|
|
|
rm -fr $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post devel
|
|
|
|
/sbin/install-info %{_infodir}/gcrypt.info.gz %{_infodir}/dir
|
2007-01-22 19:55:26 +00:00
|
|
|
exit 0
|
2004-09-09 07:25:35 +00:00
|
|
|
|
|
|
|
%preun devel
|
|
|
|
if [ $1 = 0 ]; then
|
|
|
|
/sbin/install-info --delete %{_infodir}/gcrypt.info.gz %{_infodir}/dir
|
|
|
|
fi
|
2007-01-22 19:55:26 +00:00
|
|
|
exit 0
|
2004-09-09 07:25:35 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2008-09-18 15:50:08 +00:00
|
|
|
%dir /etc/gcrypt
|
2007-07-27 13:54:26 +00:00
|
|
|
/%{_lib}/*.so.*
|
2004-09-09 07:25:35 +00:00
|
|
|
#%{_libdir}/%{name}
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/%{name}-config
|
2007-12-10 21:10:52 +00:00
|
|
|
%{_bindir}/dumpsexp
|
2008-09-08 23:05:08 +00:00
|
|
|
%{_bindir}/hmac256
|
2004-09-09 07:25:35 +00:00
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_datadir}/aclocal/*
|
|
|
|
#%{_datadir}/%{name}
|
|
|
|
|
|
|
|
%{_infodir}/gcrypt.info*
|
|
|
|
|
|
|
|
%changelog
|
2008-10-21 04:51:58 +00:00
|
|
|
* Mon Oct 20 2008 Dennis Gilmore <dennis@ausil.us> 1.4.3-2
|
|
|
|
- disable asm on sparc64
|
|
|
|
|
2008-09-18 15:50:08 +00:00
|
|
|
* Thu Sep 18 2008 Nalin Dahyabhai <nalin@redhat.com> 1.4.3-1
|
|
|
|
- update to 1.4.3
|
|
|
|
- own /etc/gcrypt
|
|
|
|
|
2008-09-15 19:49:03 +00:00
|
|
|
* Mon Sep 15 2008 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- invoke make with %%{?_smp_mflags} to build faster on multi-processor
|
|
|
|
systems (Steve Grubb)
|
|
|
|
|
2008-09-08 23:05:08 +00:00
|
|
|
* Mon Sep 8 2008 Nalin Dahyabhai <nalin@redhat.com> 1.4.2-1
|
|
|
|
- update to 1.4.2
|
|
|
|
|
2008-04-29 18:05:46 +00:00
|
|
|
* Tue Apr 29 2008 Nalin Dahyabhai <nalin@redhat.com> 1.4.1-1
|
|
|
|
- update to 1.4.1
|
|
|
|
- bump libgpgerror-devel requirement to 1.4, matching the requirement enforced
|
|
|
|
by the configure script
|
|
|
|
|
2008-04-03 12:43:26 +00:00
|
|
|
* Thu Apr 3 2008 Joe Orton <jorton@redhat.com> 1.4.0-3
|
|
|
|
- add patch from upstream to fix severe performance regression
|
|
|
|
in entropy gathering
|
|
|
|
|
2008-02-19 15:52:59 +00:00
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.4.0-2
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2007-12-10 21:10:52 +00:00
|
|
|
* Mon Dec 10 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.4.0-1
|
|
|
|
- update to 1.4.0
|
|
|
|
|
2007-10-16 17:05:10 +00:00
|
|
|
* Tue Oct 16 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.2.4-6
|
|
|
|
- use ldconfig to build the soname symlink for packaging along with the
|
|
|
|
shared library (#334731)
|
|
|
|
|
2007-08-22 21:16:43 +00:00
|
|
|
* Wed Aug 22 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.2.4-5
|
|
|
|
- add missing gawk buildrequirement
|
|
|
|
- switch from explicitly specifying the /dev/random RNG to just verifying
|
|
|
|
that the non-LGPL ones were disabled by the configure script
|
|
|
|
|
2007-08-16 15:27:13 +00:00
|
|
|
* Thu Aug 16 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.2.4-4
|
|
|
|
- clarify license
|
|
|
|
- force use of the linux /dev/random RNG, to avoid accidentally falling back
|
|
|
|
to others which would affect the license of the resulting library
|
|
|
|
|
2007-07-30 13:41:49 +00:00
|
|
|
* Mon Jul 30 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.2.4-3
|
|
|
|
- disable static libraries (part of #249815)
|
|
|
|
|
2007-07-27 13:54:26 +00:00
|
|
|
* Fri Jul 27 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.2.4-2
|
|
|
|
- move libgcrypt shared library to /%{_lib} (#249815)
|
|
|
|
|
2007-02-06 06:47:19 +00:00
|
|
|
* Tue Feb 6 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.2.4-1
|
|
|
|
- update to 1.2.4
|
|
|
|
|
2007-01-22 19:55:26 +00:00
|
|
|
* Mon Jan 22 2007 Nalin Dahyabhai <nalin@redhat.com> - 1.2.3-2
|
|
|
|
- make use of install-info more failsafe (Ville Skyttä, #223705)
|
|
|
|
|
2006-09-01 15:12:43 +00:00
|
|
|
* Fri Sep 1 2006 Nalin Dahyabhai <nalin@redhat.com> - 1.2.3-1
|
|
|
|
- update to 1.2.3
|
|
|
|
|
2006-07-12 06:49:41 +00:00
|
|
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.2.2-3.1
|
|
|
|
- rebuild
|
|
|
|
|
2006-06-05 22:13:54 +00:00
|
|
|
* Mon Jun 05 2006 Jesse Keating <jkeating@redhat.com> 1.2.2-3
|
|
|
|
- Added missing buildreq pkgconfig
|
|
|
|
|
2006-05-16 23:26:54 +00:00
|
|
|
* Tue May 16 2006 Nalin Dahyabhai <nalin@redhat.com> 1.2.2-2
|
|
|
|
- remove file conflicts in libgcrypt-config by making the 64-bit version
|
|
|
|
think the libraries are in /usr/lib (which is wrong, but which it also
|
|
|
|
prunes from the suggest --libs output, so no harm done, hopefully)
|
|
|
|
|
2006-02-11 03:56:40 +00:00
|
|
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.2.2-1.2.1
|
|
|
|
- bump again for double-long bug on ppc(64)
|
|
|
|
|
2006-02-07 12:37:07 +00:00
|
|
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.2.2-1.2
|
|
|
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
|
|
2005-12-09 22:41:33 +00:00
|
|
|
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2005-10-05 17:57:06 +00:00
|
|
|
* Wed Oct 5 2005 Nalin Dahyabhai <nalin@redhat.com> 1.2.2-1
|
|
|
|
- update to 1.2.2
|
|
|
|
|
|
|
|
* Wed Mar 16 2005 Nalin Dahyabhai <nalin@redhat.com> 1.2.1-1
|
2005-03-16 20:47:41 +00:00
|
|
|
- update to 1.2.1
|
|
|
|
|
2004-09-09 07:26:56 +00:00
|
|
|
* Fri Jul 30 2004 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
|
- another try to package the symlink
|
|
|
|
|
2004-09-09 07:26:51 +00:00
|
|
|
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 07:26:43 +00:00
|
|
|
* Sun May 2 2004 Bill Nottingham <notting@redhat.com> - 1.2.0-1
|
|
|
|
- update to official 1.2.0
|
|
|
|
|
|
|
|
* Fri Apr 16 2004 Bill Nottingham <notting@redhat.com> - 1.1.94-1
|
|
|
|
- update to 1.1.94
|
|
|
|
|
2004-09-09 07:26:30 +00:00
|
|
|
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Sat Feb 21 2004 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
|
- add symlinks to shared libs at compile time
|
|
|
|
|
|
|
|
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-09-09 07:25:44 +00:00
|
|
|
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Thu Mar 20 2003 Jeff Johnson <jbj@redhat.com> 1.1.12-1
|
|
|
|
- upgrade to 1.1.12 (beta).
|
|
|
|
|
2004-09-09 07:25:35 +00:00
|
|
|
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
|
|
|
- automated rebuild
|
|
|
|
|
|
|
|
* Sun May 26 2002 Tim Powers <timp@redhat.com>
|
|
|
|
- automated rebuild
|
|
|
|
|
|
|
|
* Tue May 21 2002 Jeff Johnson <jbj@redhat.com>
|
|
|
|
- update to 1.1.7
|
|
|
|
- change license to LGPL.
|
|
|
|
- include splint annotations patch.
|
|
|
|
- install info pages.
|
|
|
|
|
|
|
|
* Tue Apr 2 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.6-1
|
|
|
|
- update to 1.1.6
|
|
|
|
|
|
|
|
* Thu Jan 10 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-1
|
|
|
|
- fix the Source tag so that it's a real URL
|
|
|
|
|
|
|
|
* Wed Dec 20 2001 Nalin Dahyabhai <nalin@redhat.com>
|
|
|
|
- initial package
|