]> git.pld-linux.org Git - packages/eb.git/commitdiff
- unconditional noarch subpackages master
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 28 Feb 2021 17:05:03 +0000 (18:05 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 28 Feb 2021 17:05:03 +0000 (18:05 +0100)
eb-link.patch [new file with mode: 0644]
eb.spec

diff --git a/eb-link.patch b/eb-link.patch
new file mode 100644 (file)
index 0000000..b6acc5b
--- /dev/null
@@ -0,0 +1,18 @@
+--- 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.
diff --git a/eb.spec b/eb.spec
index 1adabf4371211ad7ba5a50b4f79bc2d8fc5a375d..4059266c22074bf2667471742bf4f3c76cc4a044 100644 (file)
--- a/eb.spec
+++ b/eb.spec
@@ -7,12 +7,16 @@ Summary:      Library for accessing CD-ROM books
 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)
 
@@ -70,9 +74,7 @@ Statyczna biblioteka EB.
 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.
@@ -82,8 +84,14 @@ Dokumentacja API biblioteki EB.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure \
        --enable-samples \
        --enable-pthread \
@@ -127,10 +135,10 @@ rm -rf $RPM_BUILD_ROOT
 
 %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}
This page took 0.071261 seconds and 4 git commands to generate.