--- /dev/null
+--- eb-4.4.3/configure.ac.orig 2010-03-08 13:18:28.000000000 +0100
++++ eb-4.4.3/configure.ac 2020-08-31 06:15:57.001336125 +0200
+@@ -237,12 +237,9 @@
+ dnl *
+ dnl * Libraries.
+ dnl *
+-AC_CHECK_LIB(resolv, res_query)
+-if test "$ac_cv_lib_resolv_res_query" = no; then
+- AC_CHECK_LIB(bind, res_query)
+-fi
+-AC_CHECK_LIB(nsl, gethostname)
+-AC_CHECK_LIB(socket, socket)
++AC_SEARCH_LIBS(res_query, [resolv bind])
++AC_SEARCH_LIBS(gethostname, nsl)
++AC_SEARCH_LIBS(socket, socket)
+
+ dnl *
+ dnl * Library Functions.
Summary(pl.UTF-8): Biblioteka dostępu do książek na płytach CD-ROM
Name: eb
Version: 4.4.3
-Release: 3
+Release: 5
License: BSD
Group: Libraries
Source0: ftp://ftp.sra.co.jp/pub/misc/eb/%{name}-%{version}.tar.bz2
# Source0-md5: 17dd1fade7ba0b82ce6e60f19fcbc823
-URL: http://www.sra.co.jp/people/m-kasahr/eb/
+Patch0: %{name}-link.patch
+URL: https://github.com/yasuhirokimura/eb
+BuildRequires: autoconf >= 2.54
+BuildRequires: automake
+BuildRequires: libtool
BuildRequires: zlib-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Summary: EB API documentation
Summary(pl.UTF-8): Dokumentacja API biblioteki EB
Group: Documentation
-%if "%{_rpmversion}" >= "5"
BuildArch: noarch
-%endif
%description apidocs
API and internal documentation for EB library.
%prep
%setup -q
+%patch0 -p1
%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
%configure \
--enable-samples \
--enable-pthread \
%files devel
%defattr(644,root,root,755)
-%{_sysconfdir}/eb.conf
%attr(755,root,root) %{_libdir}/libeb.so
%{_libdir}/libeb.la
%{_includedir}/eb
+%{_sysconfdir}/eb.conf
%{_aclocaldir}/eb4.m4
%if %{with static_libs}