From 71e802ba49ec297d857e7af90da3d8f0f031b959 Mon Sep 17 00:00:00 2001
From: Bernhard M. Wiedemann <bwiedemann+opensusegit@suse.de>
Date: Sep 07 2020 19:40:47 +0000
Subject: Update yaz to rev 44 via SR 832677


https://build.opensuse.org/request/show/832677
by user pluskalm + dimstar_suse
- update to 5.30.3:
  * Require getaddrinfo which has been available since 2003.
  * Provide server host for SSL by using gnutls_server_name_set(3).
  * Obey [host]:port notation for IPV6

---

diff --git a/.files b/.files
index c33961d..58f58be 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index c0a6293..4159ba2 100644
--- a/.rev
+++ b/.rev
@@ -400,4 +400,16 @@
     <comment></comment>
     <requestid>802543</requestid>
   </revision>
+  <revision rev="44" vrev="1">
+    <srcmd5>d62e7d4449895cb2dd985cbef10f48fb</srcmd5>
+    <version>5.30.3</version>
+    <time>1599507301</time>
+    <user>dimstar_suse</user>
+    <comment>- update to 5.30.3:
+  * Require getaddrinfo which has been available since 2003.
+  * Provide server host for SSL by using gnutls_server_name_set(3).
+  * Obey [host]:port notation for IPV6
+</comment>
+    <requestid>832677</requestid>
+  </revision>
 </revisionlist>
diff --git a/_service b/_service
deleted file mode 100644
index 0b4e482..0000000
--- a/_service
+++ /dev/null
@@ -1,7 +0,0 @@
-<services>
-  <service name="download_url" mode='localonly'>
-    <param name="host">ftp.indexdata.dk</param>
-    <param name="protocol">http</param>
-    <param name="path">/pub/yaz/yaz-5.30.2.tar.gz</param>
-  </service>
-</services>
diff --git a/yaz-5.30.2.tar.gz b/yaz-5.30.2.tar.gz
deleted file mode 120000
index 6f89373..0000000
--- a/yaz-5.30.2.tar.gz
+++ /dev/null
@@ -1 +0,0 @@
-/ipfs/bafybeiehc2s26ialymsfoag2u4uahdfmyznxga7dflhmbu2lxbjxlfgwzu
\ No newline at end of file
diff --git a/yaz-5.30.3.tar.gz b/yaz-5.30.3.tar.gz
new file mode 120000
index 0000000..83bc205
--- /dev/null
+++ b/yaz-5.30.3.tar.gz
@@ -0,0 +1 @@
+/ipfs/bafybeie5gzpi2wyifxtlxle6t26ioidvyyinkdkvn2bqz5zccffuccf7oy
\ No newline at end of file
diff --git a/yaz.changes b/yaz.changes
index 4e883d2..42a2789 100644
--- a/yaz.changes
+++ b/yaz.changes
@@ -1,4 +1,12 @@
 -------------------------------------------------------------------
+Wed Aug 26 08:21:31 UTC 2020 - Dirk Mueller <dmueller@suse.com>
+
+- update to 5.30.3:
+  * Require getaddrinfo which has been available since 2003.
+  * Provide server host for SSL by using gnutls_server_name_set(3).
+  * Obey [host]:port notation for IPV6
+
+-------------------------------------------------------------------
 Wed May  6 08:34:14 UTC 2020 - Paolo Stivanin <info@paolostivanin.com>
 
 - Update to 5.30.2:
diff --git a/yaz.spec b/yaz.spec
index 71307ff..0bf76ea 100644
--- a/yaz.spec
+++ b/yaz.spec
@@ -18,24 +18,23 @@
 
 %define         libname libyaz5
 Name:           yaz
-Version:        5.30.2
+Version:        5.30.3
 Release:        0
 Summary:        Z39.50 protocol server and client
 License:        BSD-3-Clause
 Group:          Development/Libraries/C and C++
 URL:            http://www.indexdata.dk/yaz/
-Source:         %{name}-%{version}.tar.gz
+Source:         http://ftp.indexdata.dk/pub/yaz/yaz-%{version}.tar.gz
 Source2:        baselibs.conf
 BuildRequires:  gnutls-devel
 BuildRequires:  libicu-devel
 BuildRequires:  libpcap-devel
 BuildRequires:  libxslt-devel
 BuildRequires:  openssl-devel
-BuildRequires:  pkg-config
+BuildRequires:  pkgconfig
 BuildRequires:  readline-devel
 BuildRequires:  tcpd-devel
 BuildRequires:  pkgconfig(libxml-2.0)
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
 This package contains both a test-server and clients (normal & ssl) for
@@ -93,10 +92,10 @@ using the ANSI/NISO Z39.50 protocol for Information Retrieval.
            --with-icu \
 		   --disable-static \
 		   --with-pic
-make %{?_smp_mflags}
+%make_build
 
 %install
-make DESTDIR=%{buildroot} install %{?_smp_mflags}
+%make_install
 # Unwanted doc stuff
 rm -fr %{buildroot}%{_datadir}/doc
 rm -fr html
@@ -123,11 +122,9 @@ ln -sf introduction.html html/index.html
 find %{buildroot} -type f -name "*.la" -delete -print
 
 %post -n %{libname} -p /sbin/ldconfig
-
 %postun -n %{libname} -p /sbin/ldconfig
 
 %files
-%defattr(-,root,root)
 %doc %{DOCFILES} ChangeLog
 %{_bindir}/yaz-client*
 %{_bindir}/yaz-iconv
@@ -153,18 +150,15 @@ find %{buildroot} -type f -name "*.la" -delete -print
 %{_mandir}/*/yaz-record-conv.*
 %{_mandir}/*/bib1-attr.*
 %dir %{_datadir}/yaz
-%{_datadir}/yaz/etc
+%{_datadir}/yaz%{_sysconfdir}
 
 %files doc
-%defattr(-,root,root)
 %doc index.html html
 
 %files -n %{libname}
-%defattr(-,root,root)
 %{_libdir}/*.so.*
 
 %files -n libyaz-devel
-%defattr(-,root,root)
 %{_bindir}/yaz-config
 %{_bindir}/yaz-asncomp
 %{_includedir}/yaz