]>
Commit | Line | Data |
---|---|---|
97b8a8b3 | 1 | Summary: Z39.50 protocol support library |
893180b4 | 2 | Summary(pl.UTF-8): Biblioteka obsługująca protokół Z39.50 |
97b8a8b3 | 3 | Name: yaz |
98f321a2 | 4 | Version: 2.1.40 |
5eedd93f | 5 | Release: 1 |
97b8a8b3 | 6 | License: BSD-like |
97b8a8b3 JB |
7 | Group: Libraries |
8 | Source0: http://ftp.indexdata.dk/pub/yaz/%{name}-%{version}.tar.gz | |
98f321a2 | 9 | # Source0-md5: 6af7645abf178669211e14f184869816 |
97b8a8b3 JB |
10 | Patch0: %{name}-libwrap-fix.patch |
11 | URL: http://www.indexdata.dk/yaz/ | |
d6a9071d JB |
12 | BuildRequires: autoconf >= 2.59 |
13 | BuildRequires: automake >= 1:1.8 | |
145d8277 | 14 | BuildRequires: libtool >= 1:1.4.2-9 |
97b8a8b3 | 15 | BuildRequires: libwrap-devel |
9570de5b | 16 | BuildRequires: libxml2-devel |
eb6128a6 | 17 | BuildRequires: openssl-devel >= 0.9.7d |
339f3710 | 18 | BuildRequires: readline-devel >= 5.0 |
97b8a8b3 JB |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | YAZ is a C library for developing client - and server applications | |
23 | using the ANSI/NISO Z39.50 protocol for Information Retrieval. | |
24 | ||
893180b4 JR |
25 | %description -l pl.UTF-8 |
26 | YAZ to biblioteka w C do tworzenia aplikacji klienckich i serwerów | |
27 | korzystających z protokołu ANSI/NISO Z39.50 do uzyskiwania informacji. | |
97b8a8b3 JB |
28 | |
29 | %package devel | |
30 | Summary: Header files for YAZ library | |
893180b4 | 31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki YAZ |
97b8a8b3 | 32 | Group: Development/Libraries |
7785bb37 | 33 | Requires: %{name} = %{version}-%{release} |
97b8a8b3 | 34 | Requires: libwrap-devel |
9570de5b JB |
35 | Requires: libxml2-devel |
36 | Requires: openssl-devel >= 0.9.7d | |
97b8a8b3 JB |
37 | |
38 | %description devel | |
39 | Header files for YAZ library. | |
40 | ||
893180b4 JR |
41 | %description devel -l pl.UTF-8 |
42 | Pliki nagłówkowe biblioteki YAZ. | |
97b8a8b3 JB |
43 | |
44 | %package static | |
45 | Summary: YAZ static libraries | |
893180b4 | 46 | Summary(pl.UTF-8): Statyczne biblioteki YAZ |
97b8a8b3 | 47 | Group: Development/Libraries |
7785bb37 | 48 | Requires: %{name}-devel = %{version}-%{release} |
97b8a8b3 JB |
49 | |
50 | %description static | |
51 | YAZ static libraries. | |
52 | ||
893180b4 | 53 | %description static -l pl.UTF-8 |
97b8a8b3 JB |
54 | Statyczne biblioteki YAZ. |
55 | ||
56 | %prep | |
57 | %setup -q | |
05def978 | 58 | %patch0 -p1 |
97b8a8b3 JB |
59 | |
60 | %build | |
701e7ffa | 61 | %{__libtoolize} |
fcbd12dd | 62 | %{__aclocal} -I m4 |
1bfb8e15 | 63 | %{__autoconf} |
64 | %{__automake} | |
97b8a8b3 JB |
65 | %configure \ |
66 | --enable-shared \ | |
d3f423d3 JB |
67 | --enable-tcpd \ |
68 | --with-openssl | |
97b8a8b3 JB |
69 | |
70 | %{__make} | |
71 | ||
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
fd635697 | 74 | |
97b8a8b3 JB |
75 | %{__make} install \ |
76 | DESTDIR=$RPM_BUILD_ROOT | |
77 | ||
78 | %{__make} install -C doc \ | |
79 | DESTDIR=$RPM_BUILD_ROOT | |
80 | ||
9afc10e0 | 81 | mv -f $RPM_BUILD_ROOT%{_docdir}/yaz ./doc-dist |
97b8a8b3 | 82 | |
97b8a8b3 JB |
83 | %clean |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %post -p /sbin/ldconfig | |
87 | %postun -p /sbin/ldconfig | |
88 | ||
89 | %files | |
90 | %defattr(644,root,root,755) | |
900ee83f | 91 | %doc LICENSE NEWS README TODO |
145d8277 | 92 | %attr(755,root,root) %{_bindir}/yaz-asncomp |
d3f423d3 | 93 | %attr(755,root,root) %{_bindir}/yaz-client* |
145d8277 JB |
94 | %attr(755,root,root) %{_bindir}/yaz-iconv |
95 | %attr(755,root,root) %{_bindir}/yaz-marcdump | |
d3f423d3 | 96 | %attr(755,root,root) %{_bindir}/yaz-ztest* |
97b8a8b3 JB |
97 | %attr(755,root,root) %{_bindir}/zoomsh |
98 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
cfe882ef | 99 | %dir %{_datadir}/yaz |
73fe0ace | 100 | %{_datadir}/yaz/etc |
cfe882ef AM |
101 | %{_datadir}/yaz/ill |
102 | %{_datadir}/yaz/z39.50 | |
73fe0ace | 103 | %{_mandir}/man1/yaz-asncomp.1* |
d3f423d3 | 104 | %{_mandir}/man1/yaz-client*.1* |
145d8277 JB |
105 | %{_mandir}/man1/yaz-iconv.1* |
106 | %{_mandir}/man1/yaz-marcdump.1* | |
d3f423d3 JB |
107 | %{_mandir}/man1/zoomsh.1* |
108 | %{_mandir}/man7/yaz.7* | |
4bfcb881 | 109 | %{_mandir}/man7/yaz-log.7* |
d3f423d3 | 110 | %{_mandir}/man8/yaz-ztest*.8* |
97b8a8b3 JB |
111 | |
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
114 | %doc doc-dist/* | |
115 | %attr(755,root,root) %{_bindir}/yaz-config | |
116 | %attr(755,root,root) %{_libdir}/lib*.so | |
13c08edd | 117 | %{_libdir}/lib*.la |
97b8a8b3 JB |
118 | %{_includedir}/yaz |
119 | %{_aclocaldir}/yaz.m4 | |
88b1cb12 | 120 | %{_mandir}/man8/yaz-config.8* |
97b8a8b3 JB |
121 | |
122 | %files static | |
123 | %defattr(644,root,root,755) | |
124 | %{_libdir}/lib*.a |