new upstream release
- move from /lib to /usr/lib
This commit is contained in:
parent
cb9a58c44e
commit
dd46788e35
2
.gitignore
vendored
2
.gitignore
vendored
@ -8,3 +8,5 @@ libgpg-error-1.9.tar.bz2.sig
|
||||
/libgpg-error-1.12.tar.bz2.sig
|
||||
/libgpg-error-1.13.tar.bz2
|
||||
/libgpg-error-1.13.tar.bz2.sig
|
||||
/libgpg-error-1.16.tar.bz2
|
||||
/libgpg-error-1.16.tar.bz2.sig
|
||||
|
@ -1,7 +1,7 @@
|
||||
Summary: Library for error values used by GnuPG components
|
||||
Name: libgpg-error
|
||||
Version: 1.13
|
||||
Release: 3%{?dist}
|
||||
Version: 1.16
|
||||
Release: 1%{?dist}
|
||||
URL: ftp://ftp.gnupg.org/gcrypt/libgpg-error/
|
||||
Source0: ftp://ftp.gnupg.org/gcrypt/libgpg-error/%{name}-%{version}.tar.bz2
|
||||
Source1: ftp://ftp.gnupg.org/gcrypt/libgpg-error/%{name}-%{version}.tar.bz2.sig
|
||||
@ -38,9 +38,8 @@ contains files necessary to develop applications using libgpg-error.
|
||||
# set it to a value which we know will be suppressed.
|
||||
sed -i -e 's|^libdir=@libdir@$|libdir=@exec_prefix@/lib|g;s|@GPG_ERROR_CONFIG_HOST@|none|g' src/gpg-error-config.in
|
||||
|
||||
# We need a version of libtool that won't decide to add an rpath of /usr/lib64
|
||||
# even when we ask it not to.
|
||||
autoreconf -f -i
|
||||
# Modify configure to drop rpath for /usr/lib64
|
||||
sed -i -e 's|sys_lib_dlsearch_path_spec="/lib /usr/lib|sys_lib_dlsearch_path_spec="/lib /usr/lib %{_libdir}|g' configure
|
||||
|
||||
%build
|
||||
%configure --disable-static --disable-rpath --disable-languages
|
||||
@ -53,33 +52,6 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
||||
|
||||
%find_lang %{name}
|
||||
|
||||
# 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
|
||||
# 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
|
||||
# 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
|
||||
# Add the soname symlink.
|
||||
/sbin/ldconfig -n $RPM_BUILD_ROOT/%{_lib}/
|
||||
rm -f $RPM_BUILD_ROOT/root_marker
|
||||
|
||||
%check
|
||||
make check
|
||||
|
||||
@ -96,7 +68,7 @@ rm -fr $RPM_BUILD_ROOT
|
||||
%license COPYING COPYING.LIB
|
||||
%doc AUTHORS README NEWS ChangeLog
|
||||
%{_bindir}/gpg-error
|
||||
/%{_lib}/libgpg-error.so.0*
|
||||
%{_libdir}/libgpg-error.so.0*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
@ -106,6 +78,10 @@ rm -fr $RPM_BUILD_ROOT
|
||||
%{_datadir}/aclocal/gpg-error.m4
|
||||
|
||||
%changelog
|
||||
* Fri Sep 19 2014 Tomáš Mráz <tmraz@redhat.com> 1.16-1
|
||||
- new upstream release
|
||||
- move from /lib to /usr/lib
|
||||
|
||||
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user