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