|
@@ -1,21 +1,15 @@
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
-%{expand: %%global _includedir %{_includedir}/gdbm}
|
|
|
|
|
|
|
|
Summary: A GNU set of database routines which use extensible hashing.
|
|
Summary: A GNU set of database routines which use extensible hashing.
|
|
Summary(ja): 拡張可能なハッシングを利用した GNU データベースルーチン
|
|
Summary(ja): 拡張可能なハッシングを利用した GNU データベースルーチン
|
|
Name: gdbm
|
|
Name: gdbm
|
|
-Version: 1.8.0
|
|
+Version: 1.18.1
|
|
-Release: 24%{?_dist_release}
|
|
+Release: 1%{?_dist_release}
|
|
Source: ftp://ftp.gnu.org/gnu/gdbm-%{version}.tar.gz
|
|
Source: ftp://ftp.gnu.org/gnu/gdbm-%{version}.tar.gz
|
|
-Patch0: gdbm-1.8.0-jbj.patch
|
|
|
|
-Patch1: gdbm-1.8.0-fhs.patch
|
|
|
|
-Patch2: gdbm-1.8.0-cflags.patch
|
|
|
|
-Patch3: gdbm-1.8.0-64offset.patch
|
|
|
|
-Patch4: gdbm-1.8.0-config.sub.patch
|
|
|
|
License: GPL
|
|
License: GPL
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
-BuildRequires: libtool
|
|
+BuildRequires: libtool gettext readline-devel
|
|
|
|
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
@@ -122,33 +116,42 @@ gdbm パッケージもインストールする必要があります.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
-%patch0 -p 1 -b .jbj
|
|
|
|
-%patch1 -p 1 -b .fhs
|
|
|
|
-%patch2 -p 1 -b .cflags
|
|
|
|
-%patch3 -p1 -b .offset
|
|
|
|
-%patch4 -p0 -b .config.sub
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
-libtoolize --force --copy
|
|
+%configure \
|
|
-aclocal
|
|
+ --disable-static \
|
|
-autoheader
|
|
+ --disable-rpath \
|
|
-autoconf
|
|
+ --enable-libgdbm-compat
|
|
-%configure
|
|
+
|
|
-# We need to override libdir, which for whatever reason is set to $(prefix)/lib
|
|
+# get rid of rpath (as per https://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath)
|
|
-# instead of the value passed to configure above.
|
|
+# currently --disable-rpath doesn't work for gdbm_dump|load, gdbmtool and libgdbm_compat.so.4
|
|
-make libdir=%{_libdir}
|
|
+# https://puszcza.gnu.org.ua/bugs/index.php?359
|
|
|
|
+sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
+sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
|
+
|
|
|
|
+make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%install
|
|
-rm -rf ${RPM_BUILD_ROOT}
|
|
+rm -rf %{buildroot}
|
|
|
|
+
|
|
|
|
+make DESTDIR=%{buildroot} install
|
|
|
|
+
|
|
|
|
+%find_lang %{name}
|
|
|
|
|
|
-%makeinstall install-compat
|
|
+# create symlinks for compatibility
|
|
|
|
+mkdir -p %{buildroot}/%{_includedir}/gdbm
|
|
|
|
+ln -sf ../gdbm.h %{buildroot}/%{_includedir}/gdbm/gdbm.h
|
|
|
|
+ln -sf ../ndbm.h %{buildroot}/%{_includedir}/gdbm/ndbm.h
|
|
|
|
+ln -sf ../dbm.h %{buildroot}/%{_includedir}/gdbm/dbm.h
|
|
|
|
|
|
-{ cd ${RPM_BUILD_ROOT}
|
|
+# Remove libtool archives
|
|
- ln -sf gdbm/gdbm.h .%{_oldincludedir}/gdbm.h
|
|
+find %{buildroot} -type f -name "*.la" -delete
|
|
- ln -sf libgdbm.so.2.0.0 .%{_libdir}/libgdbm.so
|
|
+
|
|
- gzip -9nf .%{_infodir}/gdbm*
|
|
+rm -f %{buildroot}/%{_infodir}/dir
|
|
- rm -f .%{_infodir}/dir
|
|
+
|
|
-}
|
|
+%check
|
|
|
|
+export LD_LIBRARY_PATH=`pwd`/src/.libs/:`pwd`/compat/.libs/
|
|
|
|
+make check
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
@@ -166,18 +169,19 @@ if [ $1 = 0 ]; then
|
|
/sbin/install-info --delete %{_infodir}/gdbm.info.gz %{_infodir}/dir --entry="* gdbm: (gdbm). The GNU Database."
|
|
/sbin/install-info --delete %{_infodir}/gdbm.info.gz %{_infodir}/dir --entry="* gdbm: (gdbm). The GNU Database."
|
|
fi
|
|
fi
|
|
|
|
|
|
-%files
|
|
+%files -f %{name}.lang
|
|
-%defattr(-,root,root)
|
|
+%license COPYING
|
|
-%doc COPYING NEWS README
|
|
+%doc NEWS README THANKS AUTHORS NOTE-WARNING
|
|
|
|
+%{_bindir}/gdbm*
|
|
|
|
+%{_mandir}/man1/gdbm*
|
|
%{_libdir}/libgdbm.so.*
|
|
%{_libdir}/libgdbm.so.*
|
|
|
|
+%{_libdir}/libgdbm_compat.so.4*
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libgdbm.so
|
|
%{_libdir}/libgdbm.so
|
|
-%{_libdir}/libgdbm.la
|
|
+%{_libdir}/libgdbm_compat.so
|
|
-%{_libdir}/libgdbm.a
|
|
+%{_includedir}/*
|
|
-%{_oldincludedir}/gdbm.h
|
|
|
|
-%{_includedir}
|
|
|
|
%{_infodir}/*.info*
|
|
%{_infodir}/*.info*
|
|
%{_mandir}/man3/*
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
@@ -185,18 +189,22 @@ fi
|
|
%files -n compat32-%{name}
|
|
%files -n compat32-%{name}
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libgdbm.so.*
|
|
%{_libdir}/libgdbm.so.*
|
|
|
|
+%{_libdir}/libgdbm_compat.so.4*
|
|
|
|
|
|
%files -n compat32-%{name}-devel
|
|
%files -n compat32-%{name}-devel
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libgdbm.so
|
|
%{_libdir}/libgdbm.so
|
|
-%{_libdir}/libgdbm.la
|
|
+%{_libdir}/libgdbm_compat.so
|
|
-%{_libdir}/libgdbm.a
|
|
|
|
%endif
|
|
%endif
|
|
|
|
|
|
%clean
|
|
%clean
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sun May 12 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.18.1-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- dropped all patches.
|
|
|
|
+
|
|
* Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-24
|
|
* Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-24
|
|
- rebuild with VineSeed environment
|
|
- rebuild with VineSeed environment
|
|
|
|
|