| 1 | # This file is part of the YAZ toolkit
|
|---|
| 2 | # Copyright (C) Index Data
|
|---|
| 3 | # See the file LICENSE for details.
|
|---|
| 4 | # spec file for YAZ
|
|---|
| 5 |
|
|---|
| 6 | %define idmetaversion %(. ./IDMETA; echo $VERSION)
|
|---|
| 7 |
|
|---|
| 8 | Name: yaz
|
|---|
| 9 | Summary: Z39.50 Programs
|
|---|
| 10 | Version: 5.31.0
|
|---|
| 11 | Release: 1%{?dist}
|
|---|
| 12 | # determine system
|
|---|
| 13 | %if !0%{?os2_version}
|
|---|
| 14 | %define is_redhat5 %(grep 'release 5' /etc/redhat-release >/dev/null 2>&1 && echo 1 || echo 0)
|
|---|
| 15 | %define is_mandrake %(test -e /etc/mandrake-release && echo 1 || echo 0)
|
|---|
| 16 | %define is_suse %(test -e /etc/SuSE-release >/dev/null && echo 1 || echo 0)
|
|---|
| 17 | %define is_suse11 %(grep 'VERSION = 11' /etc/SuSE-release >/dev/null 2>&1 && echo 1 || echo 0)
|
|---|
| 18 | %define is_fedora %(test -e /etc/fedora-release && echo 1 || echo 0)
|
|---|
| 19 | %define is_os2 %(test -e /@unixroot/etc/os2-release && echo 1 || echo 0)
|
|---|
| 20 | %endif
|
|---|
| 21 |
|
|---|
| 22 | Requires: readline, libyaz5 = %{version}
|
|---|
| 23 |
|
|---|
| 24 | License: BSD
|
|---|
| 25 | Group: Applications/Internet
|
|---|
| 26 | Vendor: Index Data ApS <info@indexdata.dk>
|
|---|
| 27 | %if !0%{?os2_version}
|
|---|
| 28 | Source: yaz-%{version}.tar.gz
|
|---|
| 29 | %else
|
|---|
| 30 | %scm_source github https://github.com/Tellie/yaz-os2 %{version}-os2
|
|---|
| 31 | %endif
|
|---|
| 32 |
|
|---|
| 33 | BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|---|
| 34 | Prefix: %{_prefix}
|
|---|
| 35 |
|
|---|
| 36 | %if !0%{?os2_version}
|
|---|
| 37 | #%define TCPWRAPPER tcp_wrappers-devel
|
|---|
| 38 | %if %is_redhat5
|
|---|
| 39 | %define TCPWRAPPER tcp_wrappers
|
|---|
| 40 | %endif
|
|---|
| 41 |
|
|---|
| 42 | %if %is_suse
|
|---|
| 43 | %define TCPWRAPPER tcpd-devel
|
|---|
| 44 | %endif
|
|---|
| 45 |
|
|---|
| 46 | %if %is_suse11
|
|---|
| 47 | BuildRequires: libgnutls-devel
|
|---|
| 48 | %endif
|
|---|
| 49 | %endif
|
|---|
| 50 |
|
|---|
| 51 | BuildRequires: gnutls-devel
|
|---|
| 52 | BuildRequires: pkgconfig
|
|---|
| 53 | BuildRequires: libxml2-devel
|
|---|
| 54 | BuildRequires: libxslt-devel
|
|---|
| 55 | BuildRequires: readline-devel
|
|---|
| 56 | BuildRequires: libicu-devel
|
|---|
| 57 | BuildRequires: wget
|
|---|
| 58 |
|
|---|
| 59 | Packager: Adam Dickmeiss <adam@indexdata.dk>
|
|---|
| 60 | URL: http://www.indexdata.com/yaz
|
|---|
| 61 | %description
|
|---|
| 62 | This package contains both a test-server and clients (normal & ssl)
|
|---|
| 63 | for the ANSI/NISO Z39.50 protocol for Information Retrieval.
|
|---|
| 64 |
|
|---|
| 65 | %package -n libyaz5
|
|---|
| 66 | Summary: Z39.50 Library
|
|---|
| 67 | Group: Libraries
|
|---|
| 68 | Requires: libxslt, libicu
|
|---|
| 69 |
|
|---|
| 70 | %description -n libyaz5
|
|---|
| 71 |
|
|---|
| 72 | YAZ is a library for the ANSI/NISO Z39.50 protocol for Information
|
|---|
| 73 | Retrieval.
|
|---|
| 74 |
|
|---|
| 75 | %if !0%{?os2_version}
|
|---|
| 76 | %post -n libyaz5 -p /sbin/ldconfig
|
|---|
| 77 | %postun -n libyaz5 -p /sbin/ldconfig
|
|---|
| 78 | %endif
|
|---|
| 79 |
|
|---|
| 80 | %package -n libyaz5-devel
|
|---|
| 81 | Summary: Z39.50 Library - development package
|
|---|
| 82 | Group: Development/Libraries
|
|---|
| 83 | Requires: libyaz5 = %{version}, libxml2-devel, libxslt-devel, libicu-devel
|
|---|
| 84 | Conflicts: libyaz-devel, libyaz4-devel
|
|---|
| 85 |
|
|---|
| 86 | %description -n libyaz5-devel
|
|---|
| 87 |
|
|---|
| 88 | Development libraries and includes for the libyaz package.
|
|---|
| 89 | %package -n yaz-illclient
|
|---|
| 90 | Summary: ILL client
|
|---|
| 91 | Group: Applications/Communication
|
|---|
| 92 | Requires: readline, libyaz5 = %{version}
|
|---|
| 93 |
|
|---|
| 94 | %description -n yaz-illclient
|
|---|
| 95 | yaz-illclient: an ISO ILL client.
|
|---|
| 96 | %package -n yaz-icu
|
|---|
| 97 | Summary: Command line utility for ICU utilities of YAZ
|
|---|
| 98 | Group: Applications/Communication
|
|---|
| 99 | Requires: libyaz5 = %{version}
|
|---|
| 100 |
|
|---|
| 101 | %description -n yaz-icu
|
|---|
| 102 | The yaz-icu program is a command-line based client which exposes the ICU
|
|---|
| 103 | chain facility of YAZ.
|
|---|
| 104 |
|
|---|
| 105 | %prep
|
|---|
| 106 | %scm_setup
|
|---|
| 107 |
|
|---|
| 108 | %build
|
|---|
| 109 | buildconf.sh
|
|---|
| 110 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 111 | export LIBS="-lcx"
|
|---|
| 112 |
|
|---|
| 113 | CFLAGS="$RPM_OPT_FLAGS" \
|
|---|
| 114 | ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \
|
|---|
| 115 | --enable-shared --without-memcached --disable-static --with-xslt --with-gnutls --with-icu --with-xml2 --with-iconv
|
|---|
| 116 |
|
|---|
| 117 | %if !0%{?os2_version}
|
|---|
| 118 | %make CFLAGS="$RPM_OPT_FLAGS"
|
|---|
| 119 | %else
|
|---|
| 120 | make %{?_smp_mflags}
|
|---|
| 121 | %endif
|
|---|
| 122 |
|
|---|
| 123 | %install
|
|---|
| 124 | rm -fr ${RPM_BUILD_ROOT}
|
|---|
| 125 | make install DESTDIR=${RPM_BUILD_ROOT}
|
|---|
| 126 | rm ${RPM_BUILD_ROOT}/%{_libdir}/*.la
|
|---|
| 127 |
|
|---|
| 128 | %check
|
|---|
| 129 | export BEGINLIBPATH=%{_builddir}/%{buildsubdir}/src/.libs
|
|---|
| 130 | make -k check
|
|---|
| 131 |
|
|---|
| 132 | %clean
|
|---|
| 133 | rm -fr ${RPM_BUILD_ROOT}
|
|---|
| 134 |
|
|---|
| 135 | %files
|
|---|
| 136 | %defattr(-,root,root)
|
|---|
| 137 | %doc README.md LICENSE NEWS
|
|---|
| 138 | %{_bindir}/yaz-client.exe
|
|---|
| 139 | %{_bindir}/yaz-ztest.exe
|
|---|
| 140 | %{_bindir}/zoomsh.exe
|
|---|
| 141 | %{_bindir}/yaz-marcdump.exe
|
|---|
| 142 | %{_bindir}/yaz-iconv.exe
|
|---|
| 143 | %{_bindir}/yaz-json-parse.exe
|
|---|
| 144 | %{_bindir}/yaz-url.exe
|
|---|
| 145 | %{_bindir}/yaz-record-conv.exe
|
|---|
| 146 | %{_mandir}/man1/yaz-client.*
|
|---|
| 147 | %{_mandir}/man1/yaz-json-parse.*
|
|---|
| 148 | %{_mandir}/man1/yaz-url.*
|
|---|
| 149 | %{_mandir}/man8/yaz-ztest.*
|
|---|
| 150 | %{_mandir}/man1/zoomsh.*
|
|---|
| 151 | %{_mandir}/man1/yaz-marcdump.*
|
|---|
| 152 | %{_mandir}/man1/yaz-iconv.*
|
|---|
| 153 | %{_mandir}/man1/yaz-record-conv.*
|
|---|
| 154 | %{_mandir}/man7/yaz-log.*
|
|---|
| 155 | %{_mandir}/man7/bib1-attr.*
|
|---|
| 156 |
|
|---|
| 157 | %files -n libyaz5
|
|---|
| 158 | %defattr(-,root,root)
|
|---|
| 159 | %{_libdir}/*.dll
|
|---|
| 160 |
|
|---|
| 161 | %files -n libyaz5-devel
|
|---|
| 162 | %defattr(-,root,root)
|
|---|
| 163 | %{_bindir}/yaz-config
|
|---|
| 164 | %{_bindir}/yaz-asncomp
|
|---|
| 165 | %{_includedir}/yaz
|
|---|
| 166 | %{_libdir}/pkgconfig/yaz*.pc
|
|---|
| 167 | %{_libdir}/*.a
|
|---|
| 168 | %{_datadir}/aclocal/yaz.m4
|
|---|
| 169 | %{_mandir}/man1/yaz-asncomp.*
|
|---|
| 170 | %{_mandir}/man7/yaz.*
|
|---|
| 171 | %{_mandir}/man?/yaz-config.*
|
|---|
| 172 | %{_datadir}/doc/yaz
|
|---|
| 173 | %{_datadir}/yaz
|
|---|
| 174 |
|
|---|
| 175 | %files -n yaz-illclient
|
|---|
| 176 | %defattr(-,root,root)
|
|---|
| 177 | %{_bindir}/yaz-illclient.exe
|
|---|
| 178 | %{_mandir}/man1/yaz-illclient.*
|
|---|
| 179 |
|
|---|
| 180 | %files -n yaz-icu
|
|---|
| 181 | %defattr(-,root,root)
|
|---|
| 182 | %{_bindir}/yaz-icu.exe
|
|---|
| 183 | %{_mandir}/man1/yaz-icu.*
|
|---|
| 184 |
|
|---|
| 185 | %changelog
|
|---|
| 186 | * Sat May 08 2021 Elbert Pol <elbert.pol@gmail.com> - 5.31.0-1
|
|---|
| 187 | - Updated to latest version
|
|---|
| 188 |
|
|---|
| 189 | * Tue Oct 20 2020 Elbert Pol <elbert.pol@gmail.com> - 5.30.3-3
|
|---|
| 190 | - Add the forgotten %{dist}
|
|---|
| 191 |
|
|---|
| 192 | * Sun Oct 18 2020 Elbert Pol <elbert.pol@gmail.com> - 5.30.3-2
|
|---|
| 193 | - Update to own github source
|
|---|
| 194 | - Updated the spec file
|
|---|
| 195 |
|
|---|
| 196 | * Sat Aug 01 2020 Elbert Pol <elbert.pol@gmail.com> - 5.30.3-1
|
|---|
| 197 | - Updated to latest source
|
|---|
| 198 | - Updated the spec file
|
|---|
| 199 | - Added patched to get is build and to get the test build
|
|---|
| 200 |
|
|---|
| 201 | * Thu Jul 26 2018 Elbert Pol <elbert.pol@gmail.com> -5.26.1-4
|
|---|
| 202 | - Updated to latest Xslt and Xml2
|
|---|
| 203 |
|
|---|
| 204 | * Wed Jul 25 2018 Elbert Pol <elbert.pol@gmail.com> -5.26.1-3
|
|---|
| 205 | - Add $(exeext) for tclsh
|
|---|
| 206 |
|
|---|
| 207 | * Sat Jul 14 2018 Elbert Pol <elbert.pol@gmail.com> - 5.26.1-2
|
|---|
| 208 | - remove some dependicies
|
|---|
| 209 |
|
|---|
| 210 | * Sat Jul 14 2018 Elbert Pol <elbert.pol@gmail.com> - 5.26.1-1
|
|---|
| 211 | - Initial build for OS2
|
|---|
| 212 |
|
|---|