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

Last change on this file since 1812 was 1806, checked in by tellie, 4 years ago

spec: yaz: Release version 5.31.1-2.

File size: 5.5 KB
Line 
1Name: yaz
2Version: 5.31.1
3Release: 2%{?dist}
4Summary: Z39.50/SRW/SRU toolkit
5License: BSD
6URL: http://www.indexdata.com/yaz/
7%if !0%{?os2_version}
8Source0: http://ftp.indexdata.com/pub/yaz/yaz-%{version}.tar.gz
9%else
10%scm_source github https://github.com/Tellie/yaz-os2 %{version}-os2
11%endif
12
13BuildRequires: gcc
14BuildRequires: bison
15BuildRequires: make
16
17BuildRequires: pkgconfig(libexslt)
18BuildRequires: pkgconfig(gnutls)
19%if !0%{?os2_version}
20BuildRequires: pkgconfig(hiredis)
21BuildRequires: pkgconfig(libmemcached)
22BuildRequires: %{_bindir}/tclsh
23%endif
24BuildRequires: pkgconfig(icu-i18n)
25BuildRequires: pkgconfig(libxml-2.0)
26BuildRequires: pkgconfig(libxslt)
27
28BuildRequires: ncurses-devel
29BuildRequires: readline-devel
30
31Requires: lib%{name}%{?_isa} = %{version}-%{release}
32
33%description
34YAZ is a programmers toolkit supporting the development of Z39.50/SRW/SRU
35clients and servers. Z39.50-2003 (version 3) as well as SRW/SRU version 1.1
36are supported in both the client and server roles. The SOLR webservice is
37supported in the client role through the ZOOM API.
38
39The current version of YAZ includes support for the industry standard ZOOM
40API for Z39.50. This API vastly simplifies the process of writing new clients
41using YAZ, and it reduces your dependency on any single toolkit. YAZ can be
42used by itself to build Z39.50 applications in C.For programmers preferring
43another language, YAZ has three language bindings to commonly used application
44development languages.
45
46This package contains both a test-server and clients (normal & ssl).
47
48%package -n lib%{name}
49Summary: Shared libraries for %{name}
50
51%description -n lib%{name}
52This packages contains shared libraries for %{name}.
53
54%package -n lib%{name}-devel
55Summary: Development files for %{name}
56Requires: lib%{name}%{?_isa} = %{version}-%{release}
57
58%description -n lib%{name}-devel
59This package contains libraries and header files for
60developing applications that use lib%{name}.
61
62%package doc
63Summary: Documentation for %{name}
64BuildArch: noarch
65Requires: %{name} = %{version}-%{release}
66
67%description doc
68This package contains documentation for %{name}, a Z39.50 protocol
69server and client.
70
71%prep
72%if !0%{?os2_version}
73%setup -q
74%else
75%scm_setup
76%endif
77
78%build
79buildconf.sh
80%if 0%{?os2_version}
81export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
82export LIBS="-lcx"
83%endif
84
85%configure \
86 --enable-shared \
87%if !0%{?os2_version}
88 --with-memcached \
89 --with-redis \
90%endif
91 --disable-static \
92 %{nil}
93
94%if !0%{?os2_version}
95%make_build
96%else
97make %{?_smp_mflags}
98%endif
99
100%install
101%make_install
102
103# Remove cruft
104%if !0%{?os2_version}
105find %{buildroot} -name '*.*a' -delete -print
106%else
107rm ${RPM_BUILD_ROOT}/%{_libdir}/*.la
108%endif
109
110%check
111%if 0%{?os2_version}
112export BEGINLIBPATH=%{_builddir}/%{buildsubdir}/src/.libs
113%endif
114make -k check
115
116%clean
117rm -fr ${RPM_BUILD_ROOT}
118
119%if !0%{?os2_version}
120%post -n lib%{name} -p /sbin/ldconfig
121
122%postun -n lib%{name} -p /sbin/ldconfig
123%endif
124
125%files
126%doc NEWS README.md
127%license LICENSE
128%if !0%{?os2_version}
129%{_bindir}/yaz-client
130%{_bindir}/yaz-iconv
131%{_bindir}/yaz-icu
132%{_bindir}/yaz-illclient
133%{_bindir}/yaz-json-parse
134%{_bindir}/yaz-marcdump
135%{_bindir}/yaz-record-conv
136%{_bindir}/yaz-url
137%{_bindir}/yaz-ztest
138%{_bindir}/zoomsh
139%else
140%{_bindir}/yaz-client.exe
141%{_bindir}/yaz-iconv.exe
142%{_bindir}/yaz-icu.exe
143%{_bindir}/yaz-illclient.exe
144%{_bindir}/yaz-json-parse.exe
145%{_bindir}/yaz-marcdump.exe
146%{_bindir}/yaz-record-conv.exe
147%{_bindir}/yaz-url.exe
148%{_bindir}/yaz-ztest.exe
149%{_bindir}/zoomsh.exe
150%endif
151%{_mandir}/man1/yaz-client.*
152%{_mandir}/man1/yaz-iconv.*
153%{_mandir}/man1/yaz-icu.*
154%{_mandir}/man1/yaz-illclient.*
155%{_mandir}/man1/yaz-json-parse.*
156%{_mandir}/man7/yaz-log.*
157%{_mandir}/man1/yaz-marcdump.*
158%{_mandir}/man1/yaz-record-conv.*
159%{_mandir}/man1/yaz-url.*
160%{_mandir}/man8/yaz-ztest.*
161%{_mandir}/man1/zoomsh.*
162
163%files -n lib%{name}
164%license LICENSE
165%if !0%{?os2_version}
166%{_libdir}/libyaz.so.5*
167%{_libdir}/libyaz_icu.so.5*
168%{_libdir}/libyaz_server.so.5*
169%else
170%{_libdir}/*.dll
171%endif
172%{_mandir}/man7/yaz.*
173%{_mandir}/man7/bib1-attr.*
174
175%files -n lib%{name}-devel
176%doc NEWS README.md
177%{_bindir}/yaz-asncomp
178%{_bindir}/yaz-config
179%{_libdir}/pkgconfig/*
180%if !0%{?os2_version}
181%{_libdir}/*.so
182%else
183%{_libdir}/*.a
184%endif
185%{_includedir}/%{name}/
186%{_datadir}/yaz/
187%{_datadir}/aclocal/*
188%{_mandir}/man1/yaz-asncomp.*
189%{_mandir}/man1/yaz-config.*
190
191%files -n %{name}-doc
192%{_docdir}/yaz/*
193
194%changelog
195* Thu Apr 07 2022 Elbert Pol <elbert.pol@gmail.com - 5.31.1-2
196_ Update spec file to right Fedora spec.
197
198* Fri Mar 25 2022 Elbert Pol <elbert.pol@gmail.com> - 5.31.1-1
199- Updated to latest version
200- Thankz Silvan for helping me fixing some problems.
201
202* Sat May 08 2021 Elbert Pol <elbert.pol@gmail.com> - 5.31.0-1
203- Updated to latest version
204
205* Tue Oct 20 2020 Elbert Pol <elbert.pol@gmail.com> - 5.30.3-3
206- Add the forgotten %{dist}
207
208* Sun Oct 18 2020 Elbert Pol <elbert.pol@gmail.com> - 5.30.3-2
209- Update to own github source
210- Updated the spec file
211
212* Sat Aug 01 2020 Elbert Pol <elbert.pol@gmail.com> - 5.30.3-1
213- Updated to latest source
214- Updated the spec file
215- Added patched to get is build and to get the test build
216
217* Thu Jul 26 2018 Elbert Pol <elbert.pol@gmail.com> -5.26.1-4
218- Updated to latest Xslt and Xml2
219
220* Wed Jul 25 2018 Elbert Pol <elbert.pol@gmail.com> -5.26.1-3
221- Add $(exeext) for tclsh
222
223* Sat Jul 14 2018 Elbert Pol <elbert.pol@gmail.com> - 5.26.1-2
224- remove some dependicies
225
226* Sat Jul 14 2018 Elbert Pol <elbert.pol@gmail.com> - 5.26.1-1
227- Initial build for OS2
228
Note: See TracBrowser for help on using the repository browser.