| 1 | Name: yaz
|
|---|
| 2 | Version: 5.31.1
|
|---|
| 3 | Release: 2%{?dist}
|
|---|
| 4 | Summary: Z39.50/SRW/SRU toolkit
|
|---|
| 5 | License: BSD
|
|---|
| 6 | URL: http://www.indexdata.com/yaz/
|
|---|
| 7 | %if !0%{?os2_version}
|
|---|
| 8 | Source0: http://ftp.indexdata.com/pub/yaz/yaz-%{version}.tar.gz
|
|---|
| 9 | %else
|
|---|
| 10 | %scm_source github https://github.com/Tellie/yaz-os2 %{version}-os2
|
|---|
| 11 | %endif
|
|---|
| 12 |
|
|---|
| 13 | BuildRequires: gcc
|
|---|
| 14 | BuildRequires: bison
|
|---|
| 15 | BuildRequires: make
|
|---|
| 16 |
|
|---|
| 17 | BuildRequires: pkgconfig(libexslt)
|
|---|
| 18 | BuildRequires: pkgconfig(gnutls)
|
|---|
| 19 | %if !0%{?os2_version}
|
|---|
| 20 | BuildRequires: pkgconfig(hiredis)
|
|---|
| 21 | BuildRequires: pkgconfig(libmemcached)
|
|---|
| 22 | BuildRequires: %{_bindir}/tclsh
|
|---|
| 23 | %endif
|
|---|
| 24 | BuildRequires: pkgconfig(icu-i18n)
|
|---|
| 25 | BuildRequires: pkgconfig(libxml-2.0)
|
|---|
| 26 | BuildRequires: pkgconfig(libxslt)
|
|---|
| 27 |
|
|---|
| 28 | BuildRequires: ncurses-devel
|
|---|
| 29 | BuildRequires: readline-devel
|
|---|
| 30 |
|
|---|
| 31 | Requires: lib%{name}%{?_isa} = %{version}-%{release}
|
|---|
| 32 |
|
|---|
| 33 | %description
|
|---|
| 34 | YAZ is a programmers toolkit supporting the development of Z39.50/SRW/SRU
|
|---|
| 35 | clients and servers. Z39.50-2003 (version 3) as well as SRW/SRU version 1.1
|
|---|
| 36 | are supported in both the client and server roles. The SOLR webservice is
|
|---|
| 37 | supported in the client role through the ZOOM API.
|
|---|
| 38 |
|
|---|
| 39 | The current version of YAZ includes support for the industry standard ZOOM
|
|---|
| 40 | API for Z39.50. This API vastly simplifies the process of writing new clients
|
|---|
| 41 | using YAZ, and it reduces your dependency on any single toolkit. YAZ can be
|
|---|
| 42 | used by itself to build Z39.50 applications in C.For programmers preferring
|
|---|
| 43 | another language, YAZ has three language bindings to commonly used application
|
|---|
| 44 | development languages.
|
|---|
| 45 |
|
|---|
| 46 | This package contains both a test-server and clients (normal & ssl).
|
|---|
| 47 |
|
|---|
| 48 | %package -n lib%{name}
|
|---|
| 49 | Summary: Shared libraries for %{name}
|
|---|
| 50 |
|
|---|
| 51 | %description -n lib%{name}
|
|---|
| 52 | This packages contains shared libraries for %{name}.
|
|---|
| 53 |
|
|---|
| 54 | %package -n lib%{name}-devel
|
|---|
| 55 | Summary: Development files for %{name}
|
|---|
| 56 | Requires: lib%{name}%{?_isa} = %{version}-%{release}
|
|---|
| 57 |
|
|---|
| 58 | %description -n lib%{name}-devel
|
|---|
| 59 | This package contains libraries and header files for
|
|---|
| 60 | developing applications that use lib%{name}.
|
|---|
| 61 |
|
|---|
| 62 | %package doc
|
|---|
| 63 | Summary: Documentation for %{name}
|
|---|
| 64 | BuildArch: noarch
|
|---|
| 65 | Requires: %{name} = %{version}-%{release}
|
|---|
| 66 |
|
|---|
| 67 | %description doc
|
|---|
| 68 | This package contains documentation for %{name}, a Z39.50 protocol
|
|---|
| 69 | server and client.
|
|---|
| 70 |
|
|---|
| 71 | %prep
|
|---|
| 72 | %if !0%{?os2_version}
|
|---|
| 73 | %setup -q
|
|---|
| 74 | %else
|
|---|
| 75 | %scm_setup
|
|---|
| 76 | %endif
|
|---|
| 77 |
|
|---|
| 78 | %build
|
|---|
| 79 | buildconf.sh
|
|---|
| 80 | %if 0%{?os2_version}
|
|---|
| 81 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 82 | export LIBS="-lcx"
|
|---|
| 83 | %endif
|
|---|
| 84 |
|
|---|
| 85 | %configure \
|
|---|
| 86 | --enable-shared \
|
|---|
| 87 | %if !0%{?os2_version}
|
|---|
| 88 | --with-memcached \
|
|---|
| 89 | --with-redis \
|
|---|
| 90 | %endif
|
|---|
| 91 | --disable-static \
|
|---|
| 92 | %{nil}
|
|---|
| 93 |
|
|---|
| 94 | %if !0%{?os2_version}
|
|---|
| 95 | %make_build
|
|---|
| 96 | %else
|
|---|
| 97 | make %{?_smp_mflags}
|
|---|
| 98 | %endif
|
|---|
| 99 |
|
|---|
| 100 | %install
|
|---|
| 101 | %make_install
|
|---|
| 102 |
|
|---|
| 103 | # Remove cruft
|
|---|
| 104 | %if !0%{?os2_version}
|
|---|
| 105 | find %{buildroot} -name '*.*a' -delete -print
|
|---|
| 106 | %else
|
|---|
| 107 | rm ${RPM_BUILD_ROOT}/%{_libdir}/*.la
|
|---|
| 108 | %endif
|
|---|
| 109 |
|
|---|
| 110 | %check
|
|---|
| 111 | %if 0%{?os2_version}
|
|---|
| 112 | export BEGINLIBPATH=%{_builddir}/%{buildsubdir}/src/.libs
|
|---|
| 113 | %endif
|
|---|
| 114 | make -k check
|
|---|
| 115 |
|
|---|
| 116 | %clean
|
|---|
| 117 | rm -fr ${RPM_BUILD_ROOT}
|
|---|
| 118 |
|
|---|
| 119 | %if !0%{?os2_version}
|
|---|
| 120 | %post -n lib%{name} -p /sbin/ldconfig
|
|---|
| 121 |
|
|---|
| 122 | %postun -n lib%{name} -p /sbin/ldconfig
|
|---|
| 123 | %endif
|
|---|
| 124 |
|
|---|
| 125 | %files
|
|---|
| 126 | %doc NEWS README.md
|
|---|
| 127 | %license LICENSE
|
|---|
| 128 | %if !0%{?os2_version}
|
|---|
| 129 | %{_bindir}/yaz-client
|
|---|
| 130 | %{_bindir}/yaz-iconv
|
|---|
| 131 | %{_bindir}/yaz-icu
|
|---|
| 132 | %{_bindir}/yaz-illclient
|
|---|
| 133 | %{_bindir}/yaz-json-parse
|
|---|
| 134 | %{_bindir}/yaz-marcdump
|
|---|
| 135 | %{_bindir}/yaz-record-conv
|
|---|
| 136 | %{_bindir}/yaz-url
|
|---|
| 137 | %{_bindir}/yaz-ztest
|
|---|
| 138 | %{_bindir}/zoomsh
|
|---|
| 139 | %else
|
|---|
| 140 | %{_bindir}/yaz-client.exe
|
|---|
| 141 | %{_bindir}/yaz-iconv.exe
|
|---|
| 142 | %{_bindir}/yaz-icu.exe
|
|---|
| 143 | %{_bindir}/yaz-illclient.exe
|
|---|
| 144 | %{_bindir}/yaz-json-parse.exe
|
|---|
| 145 | %{_bindir}/yaz-marcdump.exe
|
|---|
| 146 | %{_bindir}/yaz-record-conv.exe
|
|---|
| 147 | %{_bindir}/yaz-url.exe
|
|---|
| 148 | %{_bindir}/yaz-ztest.exe
|
|---|
| 149 | %{_bindir}/zoomsh.exe
|
|---|
| 150 | %endif
|
|---|
| 151 | %{_mandir}/man1/yaz-client.*
|
|---|
| 152 | %{_mandir}/man1/yaz-iconv.*
|
|---|
| 153 | %{_mandir}/man1/yaz-icu.*
|
|---|
| 154 | %{_mandir}/man1/yaz-illclient.*
|
|---|
| 155 | %{_mandir}/man1/yaz-json-parse.*
|
|---|
| 156 | %{_mandir}/man7/yaz-log.*
|
|---|
| 157 | %{_mandir}/man1/yaz-marcdump.*
|
|---|
| 158 | %{_mandir}/man1/yaz-record-conv.*
|
|---|
| 159 | %{_mandir}/man1/yaz-url.*
|
|---|
| 160 | %{_mandir}/man8/yaz-ztest.*
|
|---|
| 161 | %{_mandir}/man1/zoomsh.*
|
|---|
| 162 |
|
|---|
| 163 | %files -n lib%{name}
|
|---|
| 164 | %license LICENSE
|
|---|
| 165 | %if !0%{?os2_version}
|
|---|
| 166 | %{_libdir}/libyaz.so.5*
|
|---|
| 167 | %{_libdir}/libyaz_icu.so.5*
|
|---|
| 168 | %{_libdir}/libyaz_server.so.5*
|
|---|
| 169 | %else
|
|---|
| 170 | %{_libdir}/*.dll
|
|---|
| 171 | %endif
|
|---|
| 172 | %{_mandir}/man7/yaz.*
|
|---|
| 173 | %{_mandir}/man7/bib1-attr.*
|
|---|
| 174 |
|
|---|
| 175 | %files -n lib%{name}-devel
|
|---|
| 176 | %doc NEWS README.md
|
|---|
| 177 | %{_bindir}/yaz-asncomp
|
|---|
| 178 | %{_bindir}/yaz-config
|
|---|
| 179 | %{_libdir}/pkgconfig/*
|
|---|
| 180 | %if !0%{?os2_version}
|
|---|
| 181 | %{_libdir}/*.so
|
|---|
| 182 | %else
|
|---|
| 183 | %{_libdir}/*.a
|
|---|
| 184 | %endif
|
|---|
| 185 | %{_includedir}/%{name}/
|
|---|
| 186 | %{_datadir}/yaz/
|
|---|
| 187 | %{_datadir}/aclocal/*
|
|---|
| 188 | %{_mandir}/man1/yaz-asncomp.*
|
|---|
| 189 | %{_mandir}/man1/yaz-config.*
|
|---|
| 190 |
|
|---|
| 191 | %files -n %{name}-doc
|
|---|
| 192 | %{_docdir}/yaz/*
|
|---|
| 193 |
|
|---|
| 194 | %changelog
|
|---|
| 195 | * Thu Apr 07 2022 Elbert Pol <elbert.pol@gmail.com - 5.31.1-2
|
|---|
| 196 | _ Update spec file to right Fedora spec.
|
|---|
| 197 |
|
|---|
| 198 | * Fri Mar 25 2022 Elbert Pol <elbert.pol@gmail.com> - 5.31.1-1
|
|---|
| 199 | - Updated to latest version
|
|---|
| 200 | - Thankz Silvan for helping me fixing some problems.
|
|---|
| 201 |
|
|---|
| 202 | * Sat May 08 2021 Elbert Pol <elbert.pol@gmail.com> - 5.31.0-1
|
|---|
| 203 | - Updated to latest version
|
|---|
| 204 |
|
|---|
| 205 | * Tue Oct 20 2020 Elbert Pol <elbert.pol@gmail.com> - 5.30.3-3
|
|---|
| 206 | - Add the forgotten %{dist}
|
|---|
| 207 |
|
|---|
| 208 | * Sun Oct 18 2020 Elbert Pol <elbert.pol@gmail.com> - 5.30.3-2
|
|---|
| 209 | - Update to own github source
|
|---|
| 210 | - Updated the spec file
|
|---|
| 211 |
|
|---|
| 212 | * Sat Aug 01 2020 Elbert Pol <elbert.pol@gmail.com> - 5.30.3-1
|
|---|
| 213 | - Updated to latest source
|
|---|
| 214 | - Updated the spec file
|
|---|
| 215 | - Added patched to get is build and to get the test build
|
|---|
| 216 |
|
|---|
| 217 | * Thu Jul 26 2018 Elbert Pol <elbert.pol@gmail.com> -5.26.1-4
|
|---|
| 218 | - Updated to latest Xslt and Xml2
|
|---|
| 219 |
|
|---|
| 220 | * Wed Jul 25 2018 Elbert Pol <elbert.pol@gmail.com> -5.26.1-3
|
|---|
| 221 | - Add $(exeext) for tclsh
|
|---|
| 222 |
|
|---|
| 223 | * Sat Jul 14 2018 Elbert Pol <elbert.pol@gmail.com> - 5.26.1-2
|
|---|
| 224 | - remove some dependicies
|
|---|
| 225 |
|
|---|
| 226 | * Sat Jul 14 2018 Elbert Pol <elbert.pol@gmail.com> - 5.26.1-1
|
|---|
| 227 | - Initial build for OS2
|
|---|
| 228 |
|
|---|