source: spec/trunk/SPECS/yaz.spec@ 1567

Last change on this file since 1567 was 1447, checked in by tellie, 7 years ago

spec: yaz: Release version 5.26.1-4.

File size: 4.8 KB
Line 
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
8Name: yaz
9Summary: Z39.50 Programs
10Version: 5.26.1
11Release: 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
20Requires: readline, libyaz5 = %{version}
21
22License: BSD
23Group: Applications/Internet
24Vendor: Index Data ApS <info@indexdata.dk>
25#Source: yaz-%{version}.tar.gz
26%scm_source github http://github.com/TeLLie/%{name}-os2 master
27BuildRoot: %{_tmppath}/%{name}-%{version}-root
28Prefix: %{_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
41BuildRequires: libgnutls-devel
42%else
43#BuildRequires: gnutls-devel
44%endif
45
46BuildRequires: pkgconfig
47BuildRequires: libxml2-devel
48BuildRequires: libxslt-devel
49BuildRequires: readline-devel
50BuildRequires: libicu-devel
51BuildRequires: wget
52
53Packager: Adam Dickmeiss <adam@indexdata.dk>
54URL: http://www.indexdata.com/yaz
55%description
56This package contains both a test-server and clients (normal & ssl)
57for the ANSI/NISO Z39.50 protocol for Information Retrieval.
58
59%package -n libyaz5
60Summary: Z39.50 Library
61Group: Libraries
62Requires: libxslt, libicu
63
64%description -n libyaz5
65
66YAZ is a library for the ANSI/NISO Z39.50 protocol for Information
67Retrieval.
68
69#%post -n libyaz5 -p /sbin/ldconfig
70#%postun -n libyaz5 -p /sbin/ldconfig
71
72%package -n libyaz5-devel
73Summary: Z39.50 Library - development package
74Group: Development/Libraries
75Requires: libyaz5 = %{version}, libxml2-devel, libxslt-devel, libicu-devel
76Conflicts: libyaz-devel, libyaz4-devel
77
78%description -n libyaz5-devel
79
80Development libraries and includes for the libyaz package.
81%package -n yaz-illclient
82Summary: ILL client
83Group: Applications/Communication
84Requires: readline, libyaz5 = %{version}
85
86%description -n yaz-illclient
87yaz-illclient: an ISO ILL client.
88%package -n yaz-icu
89Summary: Command line utility for ICU utilities of YAZ
90Group: Applications/Communication
91Requires: libyaz5 = %{version}
92
93%description -n yaz-icu
94The yaz-icu program is a command-line based client which exposes the ICU
95chain facility of YAZ.
96
97%prep
98%scm_setup
99
100%build
101autoreconf -ivf
102export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
103export LIBS="-lcx -ltinfo"
104
105CFLAGS="$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
112make CFLAGS="$RPM_OPT_FLAGS"
113%endif
114
115%install
116rm -fr ${RPM_BUILD_ROOT}
117make install DESTDIR=${RPM_BUILD_ROOT}
118rm ${RPM_BUILD_ROOT}/%{_libdir}/*.la
119
120%clean
121rm -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
Note: See TracBrowser for help on using the repository browser.