Changeset 1804 for spec/trunk/SPECS/yaz.spec
- Timestamp:
- Mar 28, 2022, 7:09:52 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/yaz.spec
r1768 r1804 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 1 Name: yaz 2 Version: 5.31.1 3 Release: 1%{?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 29 9 %else 30 10 %scm_source github https://github.com/Tellie/yaz-os2 %{version}-os2 31 11 %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 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 61 33 %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. 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. 104 70 105 71 %prep 72 %if !0%{?os2_version} 73 %setup -q 74 %else 106 75 %scm_setup 76 %endif 107 77 108 78 %build 109 buildconf.sh79 sh buildconf.sh 110 80 export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 111 81 export LIBS="-lcx" 112 82 83 %if !0%{?os2_version} 84 %configure \ 85 --enable-shared \ 86 --with-memcached \ 87 --with-redis \ 88 --disable-static \ 89 %{nil} 90 %else 113 91 CFLAGS="$RPM_OPT_FLAGS" \ 114 92 ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \ 115 93 --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" 94 %endif 95 96 %if !0%{?os2_version} 97 %make_build 119 98 %else 120 99 make %{?_smp_mflags} … … 122 101 123 102 %install 124 rm -fr ${RPM_BUILD_ROOT} 103 %if !0%{?os2_version} 104 %make_install 105 %else 125 106 make install DESTDIR=${RPM_BUILD_ROOT} 126 107 rm ${RPM_BUILD_ROOT}/%{_libdir}/*.la 108 %endif 109 110 # Remove cruft 111 %if !0%{?os2_version} 112 find %{buildroot} -name '*.*a' -delete -print 113 %endif 127 114 128 115 %check … … 133 120 rm -fr ${RPM_BUILD_ROOT} 134 121 122 %if !0%{?os2_version} 123 %post -n lib%{name} -p /sbin/ldconfig 124 125 %postun -n lib%{name} -p /sbin/ldconfig 126 %endif 127 135 128 %files 136 %defattr(-,root,root) 137 %doc README.md LICENSE NEWS 138 %{_bindir}/yaz-client.exe 139 %{_bindir}/yaz-ztest.exe 129 %doc NEWS README.md 130 %license LICENSE 131 %if !0%{?os2_version} 132 %{_bindir}/yaz-client 133 %{_bindir}/yaz-iconv 134 %{_bindir}/yaz-icu 135 %{_bindir}/yaz-illclient 136 %{_bindir}/yaz-json-parse 137 %{_bindir}/yaz-marcdump 138 %{_bindir}/yaz-record-conv 139 %{_bindir}/yaz-url 140 %{_bindir}/yaz-ztest 141 %{_bindir}/zoomsh 142 %else 143 %{_bindir}/yaz*.exe 140 144 %{_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 145 %endif 146 146 %{_mandir}/man1/yaz-client.* 147 %{_mandir}/man1/yaz-iconv.* 148 %{_mandir}/man1/yaz-icu.* 149 %{_mandir}/man1/yaz-illclient.* 147 150 %{_mandir}/man1/yaz-json-parse.* 151 %{_mandir}/man7/yaz-log.* 152 %{_mandir}/man1/yaz-marcdump.* 153 %{_mandir}/man1/yaz-record-conv.* 148 154 %{_mandir}/man1/yaz-url.* 149 155 %{_mandir}/man8/yaz-ztest.* 150 156 %{_mandir}/man1/zoomsh.* 151 %{_mandir}/man1/yaz-marcdump.* 152 %{_mandir}/man1/yaz-iconv.* 153 %{_mandir}/man1/yaz-record-conv.* 154 %{_mandir}/man7/yaz-log.* 157 158 %files -n lib%{name} 159 %license LICENSE 160 %if !0%{?os2_version} 161 %{_libdir}/libyaz.so.5* 162 %{_libdir}/libyaz_icu.so.5* 163 %{_libdir}/libyaz_server.so.5* 164 %else 165 %{_libdir}/*.dll 166 %endif 167 %{_mandir}/man7/yaz.* 155 168 %{_mandir}/man7/bib1-attr.* 156 169 157 %files -n libyaz5 158 %defattr(-,root,root) 159 %{_libdir}/*.dll 160 161 %files -n libyaz5-devel 162 %defattr(-,root,root) 170 %files -n lib%{name}-devel 171 %doc NEWS README.md 172 %{_bindir}/yaz-asncomp 163 173 %{_bindir}/yaz-config 164 %{_bindir}/yaz-asncomp 165 %{_includedir}/yaz 166 %{_libdir}/pkgconfig/yaz*.pc 174 %{_libdir}/pkgconfig/* 175 %if !0%{?os2_version} 176 %{_libdir}/*.so 177 %else 167 178 %{_libdir}/*.a 168 %{_datadir}/aclocal/yaz.m4 179 %endif 180 %{_includedir}/%{name}/ 181 %{_datadir}/yaz/ 182 %{_datadir}/aclocal/* 169 183 %{_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 %{_mandir}/man1/yaz-config.* 185 186 %files -n %{name}-doc 187 %{_docdir}/yaz/* 184 188 185 189 %changelog 190 * Fri Mar 25 2022 Elbert Pol <elbert.pol@gmail.com> - 5.31.1-1 191 - Updated to latest version 192 - Thankz Silvan for helping me fixing some problems. 193 186 194 * Sat May 08 2021 Elbert Pol <elbert.pol@gmail.com> - 5.31.0-1 187 195 - Updated to latest version
Note:
See TracChangeset
for help on using the changeset viewer.