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

Last change on this file since 1796 was 1768, checked in by tellie, 5 years ago

sqlitebrowser: Add spec file

File size: 5.5 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.31.0
11Release: 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
22Requires: readline, libyaz5 = %{version}
23
24License: BSD
25Group: Applications/Internet
26Vendor: Index Data ApS <info@indexdata.dk>
27%if !0%{?os2_version}
28Source: yaz-%{version}.tar.gz
29%else
30%scm_source github https://github.com/Tellie/yaz-os2 %{version}-os2
31%endif
32
33BuildRoot: %{_tmppath}/%{name}-%{version}-root
34Prefix: %{_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
47BuildRequires: libgnutls-devel
48%endif
49%endif
50
51BuildRequires: gnutls-devel
52BuildRequires: pkgconfig
53BuildRequires: libxml2-devel
54BuildRequires: libxslt-devel
55BuildRequires: readline-devel
56BuildRequires: libicu-devel
57BuildRequires: wget
58
59Packager: Adam Dickmeiss <adam@indexdata.dk>
60URL: http://www.indexdata.com/yaz
61%description
62This package contains both a test-server and clients (normal & ssl)
63for the ANSI/NISO Z39.50 protocol for Information Retrieval.
64
65%package -n libyaz5
66Summary: Z39.50 Library
67Group: Libraries
68Requires: libxslt, libicu
69
70%description -n libyaz5
71
72YAZ is a library for the ANSI/NISO Z39.50 protocol for Information
73Retrieval.
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
81Summary: Z39.50 Library - development package
82Group: Development/Libraries
83Requires: libyaz5 = %{version}, libxml2-devel, libxslt-devel, libicu-devel
84Conflicts: libyaz-devel, libyaz4-devel
85
86%description -n libyaz5-devel
87
88Development libraries and includes for the libyaz package.
89%package -n yaz-illclient
90Summary: ILL client
91Group: Applications/Communication
92Requires: readline, libyaz5 = %{version}
93
94%description -n yaz-illclient
95yaz-illclient: an ISO ILL client.
96%package -n yaz-icu
97Summary: Command line utility for ICU utilities of YAZ
98Group: Applications/Communication
99Requires: libyaz5 = %{version}
100
101%description -n yaz-icu
102The yaz-icu program is a command-line based client which exposes the ICU
103chain facility of YAZ.
104
105%prep
106%scm_setup
107
108%build
109buildconf.sh
110export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
111export LIBS="-lcx"
112
113CFLAGS="$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
120make %{?_smp_mflags}
121%endif
122
123%install
124rm -fr ${RPM_BUILD_ROOT}
125make install DESTDIR=${RPM_BUILD_ROOT}
126rm ${RPM_BUILD_ROOT}/%{_libdir}/*.la
127
128%check
129export BEGINLIBPATH=%{_builddir}/%{buildsubdir}/src/.libs
130make -k check
131
132%clean
133rm -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
Note: See TracBrowser for help on using the repository browser.