Removed fake Provides; removed static builds

This commit is contained in:
Karel Klíč 2010-03-11 15:56:40 +00:00
parent 8c3360eb06
commit 57192786d8

View File

@ -1,7 +1,7 @@
Summary: A GNU set of database routines which use extensible hashing
Name: gdbm
Version: 1.8.3
Release: 4%{?dist}
Release: 5%{?dist}
Source: http://ftp.gnu.org/gnu/gdbm/gdbm-%{version}.tar.gz
# Prevent gdbm from storing uninitialized memory content
# to database files.
@ -23,13 +23,6 @@ Group: System Environment/Libraries
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: libtool
# Temporary
%ifarch x86_64
Provides: libgdbm.so.2()(64bit)
%else
Provides: libgdbm.so.2
%endif
%description
Gdbm is a GNU database indexing library, including routines which use
extensible hashing. Gdbm works in a similar way to standard UNIX dbm
@ -62,11 +55,12 @@ gdbm database library. You'll also need to install the gdbm package.
%patch1 -p1 -b .fhs
%patch2 -p1 -b .shortread
%build
libtoolize --force --copy
aclocal
autoconf
%configure
%build
%configure --disable-static
make
%install
@ -74,10 +68,6 @@ rm -rf ${RPM_BUILD_ROOT}
%makeinstall install-compat
ln -sf gdbm/gdbm.h $RPM_BUILD_ROOT/%{_includedir}/gdbm.h
# Temporary
ln -sf libgdbm.so.3.0.0 $RPM_BUILD_ROOT/%{_libdir}/libgdbm.so.2
ln -sf libgdbm.so.3.0.0 $RPM_BUILD_ROOT/%{_libdir}/libgdbm.so.2.0.0
rm -f $RPM_BUILD_ROOT/%{_libdir}/libgdbm.la
rm -f $RPM_BUILD_ROOT/%{_libdir}/libgdbm_compat.la
@ -98,16 +88,13 @@ fi
%files
%defattr(-,root,root,-)
%doc COPYING NEWS README
%{_libdir}/libgdbm.so.2*
%{_libdir}/libgdbm.so.3*
%{_libdir}/libgdbm_compat.so.3*
%files devel
%defattr(-,root,root,-)
%{_libdir}/libgdbm.so
%{_libdir}/libgdbm.a
%{_libdir}/libgdbm_compat.so
%{_libdir}/libgdbm_compat.a
%{_includedir}/gdbm*
%{_infodir}/*.info*
%{_mandir}/man3/*
@ -116,6 +103,11 @@ fi
rm -rf ${RPM_BUILD_ROOT}
%changelog
* Thu Mar 11 2010 Karel Klic <kklic@redhat.com> - 1.8.3-5
- Removed fake Provides: libgdbm.so.2 and corresponding symlinks
- Moved autoconf, libtoolize from %%build to %%prep section
- Remove static builds from the devel package (#556050)
* Thu Mar 11 2010 Karel Klic <kklic@redhat.com> - 1.8.3-4
- Provides: libgdbm.so.2()(64bit) for x86_64 architecture