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