]>
Commit | Line | Data |
---|---|---|
1 | Summary: Z39.50 protocol support library | |
2 | Summary(pl.UTF-8): Biblioteka obsługująca protokół Z39.50 | |
3 | Name: yaz | |
4 | Version: 5.12.0 | |
5 | Release: 3 | |
6 | License: BSD-like | |
7 | Group: Libraries | |
8 | Source0: http://ftp.indexdata.dk/pub/yaz/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 70de2fde560f9ced0c5a4744d3ebdb8a | |
10 | URL: http://www.indexdata.com/yaz/ | |
11 | BuildRequires: autoconf >= 2.60 | |
12 | BuildRequires: automake >= 1:1.11.1 | |
13 | BuildRequires: bison | |
14 | BuildRequires: gnutls-devel | |
15 | BuildRequires: hiredis-devel >= 0.10 | |
16 | BuildRequires: libgcrypt-devel >= 1.2 | |
17 | BuildRequires: libicu-devel >= 3.4 | |
18 | BuildRequires: libmemcached-devel >= 0.40 | |
19 | BuildRequires: libtool >= 1:1.4.2-9 | |
20 | BuildRequires: libwrap-devel | |
21 | BuildRequires: libxml2-devel >= 2.0 | |
22 | BuildRequires: libxslt-devel >= 1.1.0 | |
23 | BuildRequires: pkgconfig | |
24 | BuildRequires: readline-devel >= 5.0 | |
25 | BuildRequires: tcl >= 8.2 | |
26 | Requires: hiredis >= 0.10 | |
27 | Requires: libgcrypt >= 1.2 | |
28 | Requires: libmemcached >= 0.40 | |
29 | Requires: libxslt >= 1.1.0 | |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
33 | YAZ is a C library for developing client - and server applications | |
34 | using the ANSI/NISO Z39.50 protocol for Information Retrieval. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | YAZ to biblioteka w C do tworzenia aplikacji klienckich i serwerów | |
38 | korzystających z protokołu ANSI/NISO Z39.50 do uzyskiwania informacji. | |
39 | ||
40 | %package devel | |
41 | Summary: Header files for YAZ library | |
42 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki YAZ | |
43 | Group: Development/Libraries | |
44 | Requires: %{name} = %{version}-%{release} | |
45 | Requires: gnutls-devel | |
46 | Requires: hiredis-devel >= 0.10 | |
47 | Requires: libgcrypt-devel >= 1.2 | |
48 | Requires: libicu-devel >= 3.4 | |
49 | Requires: libmemcached-devel >= 0.40 | |
50 | Requires: libwrap-devel | |
51 | Requires: libxml2-devel >= 2.0 | |
52 | Requires: libxslt-devel >= 1.1.0 | |
53 | ||
54 | %description devel | |
55 | Header files for YAZ library. | |
56 | ||
57 | %description devel -l pl.UTF-8 | |
58 | Pliki nagłówkowe biblioteki YAZ. | |
59 | ||
60 | %package static | |
61 | Summary: YAZ static libraries | |
62 | Summary(pl.UTF-8): Statyczne biblioteki YAZ | |
63 | Group: Development/Libraries | |
64 | Requires: %{name}-devel = %{version}-%{release} | |
65 | ||
66 | %description static | |
67 | YAZ static libraries. | |
68 | ||
69 | %description static -l pl.UTF-8 | |
70 | Statyczne biblioteki YAZ. | |
71 | ||
72 | %prep | |
73 | %setup -q | |
74 | ||
75 | %build | |
76 | %{__libtoolize} | |
77 | %{__aclocal} -I m4 | |
78 | %{__autoconf} | |
79 | %{__automake} | |
80 | %configure \ | |
81 | --enable-tcpd | |
82 | ||
83 | %{__make} | |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %{__make} install \ | |
89 | docDATA_INSTALL="install -p" \ | |
90 | DESTDIR=$RPM_BUILD_ROOT | |
91 | ||
92 | mv -f $RPM_BUILD_ROOT%{_docdir}/yaz doc-dist | |
93 | ||
94 | # obsoleted by pkg-config | |
95 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libyaz*.la | |
96 | ||
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %post -p /sbin/ldconfig | |
101 | %postun -p /sbin/ldconfig | |
102 | ||
103 | %files | |
104 | %defattr(644,root,root,755) | |
105 | %doc ChangeLog LICENSE NEWS README | |
106 | %attr(755,root,root) %{_bindir}/yaz-asncomp | |
107 | %attr(755,root,root) %{_bindir}/yaz-client* | |
108 | %attr(755,root,root) %{_bindir}/yaz-iconv | |
109 | %attr(755,root,root) %{_bindir}/yaz-icu | |
110 | %attr(755,root,root) %{_bindir}/yaz-illclient | |
111 | %attr(755,root,root) %{_bindir}/yaz-json-parse | |
112 | %attr(755,root,root) %{_bindir}/yaz-marcdump | |
113 | %attr(755,root,root) %{_bindir}/yaz-url | |
114 | %attr(755,root,root) %{_bindir}/yaz-ztest* | |
115 | %attr(755,root,root) %{_bindir}/zoomsh | |
116 | %attr(755,root,root) %{_libdir}/libyaz.so.*.*.* | |
117 | %attr(755,root,root) %ghost %{_libdir}/libyaz.so.5 | |
118 | %attr(755,root,root) %{_libdir}/libyaz_icu.so.*.*.* | |
119 | %attr(755,root,root) %ghost %{_libdir}/libyaz_icu.so.5 | |
120 | %attr(755,root,root) %{_libdir}/libyaz_server.so.*.*.* | |
121 | %attr(755,root,root) %ghost %{_libdir}/libyaz_server.so.5 | |
122 | %dir %{_datadir}/yaz | |
123 | %{_datadir}/yaz/etc | |
124 | %{_datadir}/yaz/ill | |
125 | %{_datadir}/yaz/z39.50 | |
126 | %{_mandir}/man1/yaz-asncomp.1* | |
127 | %{_mandir}/man1/yaz-client*.1* | |
128 | %{_mandir}/man1/yaz-iconv.1* | |
129 | %{_mandir}/man1/yaz-icu.1* | |
130 | %{_mandir}/man1/yaz-illclient.1* | |
131 | %{_mandir}/man1/yaz-json-parse.1* | |
132 | %{_mandir}/man1/yaz-marcdump.1* | |
133 | %{_mandir}/man1/yaz-url.1* | |
134 | %{_mandir}/man1/zoomsh.1* | |
135 | %{_mandir}/man7/bib1-attr.7* | |
136 | %{_mandir}/man7/yaz.7* | |
137 | %{_mandir}/man7/yaz-log.7* | |
138 | %{_mandir}/man8/yaz-ztest*.8* | |
139 | ||
140 | %files devel | |
141 | %defattr(644,root,root,755) | |
142 | %doc doc-dist/* | |
143 | %attr(755,root,root) %{_bindir}/yaz-config | |
144 | %attr(755,root,root) %{_libdir}/libyaz.so | |
145 | %attr(755,root,root) %{_libdir}/libyaz_icu.so | |
146 | %attr(755,root,root) %{_libdir}/libyaz_server.so | |
147 | %{_includedir}/yaz | |
148 | %{_pkgconfigdir}/yaz.pc | |
149 | %{_aclocaldir}/yaz.m4 | |
150 | %{_mandir}/man1/yaz-config.1* | |
151 | ||
152 | %files static | |
153 | %defattr(644,root,root,755) | |
154 | %{_libdir}/libyaz.a | |
155 | %{_libdir}/libyaz_icu.a | |
156 | %{_libdir}/libyaz_server.a |