X-Git-Url: http://git.pld-linux.org/?p=packages%2Fyaz.git;a=blobdiff_plain;f=yaz.spec;h=1f58016fb854c108c778c03cf2576ab0b6283afb;hp=44a9798cd6c9dc7ca37859e05b0f503767b7bc50;hb=3a33e52;hpb=e3c8f1210ed1bc9cf7b54d668a80ab49064fe901 diff --git a/yaz.spec b/yaz.spec index 44a9798..1f58016 100644 --- a/yaz.spec +++ b/yaz.spec @@ -1,23 +1,32 @@ Summary: Z39.50 protocol support library Summary(pl.UTF-8): Biblioteka obsługująca protokół Z39.50 Name: yaz -Version: 2.1.48 -Release: 1 +Version: 5.27.1 +Release: 2 License: BSD-like Group: Libraries Source0: http://ftp.indexdata.dk/pub/yaz/%{name}-%{version}.tar.gz -# Source0-md5: bcb24337e5a84386865c3fd6d05ce199 -Patch0: %{name}-libwrap-fix.patch -Patch1: %{name}-pcap.patch -URL: http://www.indexdata.dk/yaz/ -BuildRequires: autoconf >= 2.59 -BuildRequires: automake >= 1:1.8 -BuildRequires: libpcap-devel +# Source0-md5: 8654b751e51c790eab403a6023e1b0fa +URL: http://www.indexdata.com/yaz/ +BuildRequires: autoconf >= 2.60 +BuildRequires: automake >= 1:1.11.1 +BuildRequires: bison +BuildRequires: gnutls-devel +BuildRequires: hiredis-devel >= 0.10 +BuildRequires: libgcrypt-devel >= 1.2 +BuildRequires: libicu-devel >= 3.4 +BuildRequires: libmemcached-devel >= 0.40 BuildRequires: libtool >= 1:1.4.2-9 BuildRequires: libwrap-devel -BuildRequires: libxml2-devel -BuildRequires: openssl-devel >= 0.9.7d +BuildRequires: libxml2-devel >= 2.0 +BuildRequires: libxslt-devel >= 1.1.0 +BuildRequires: pkgconfig BuildRequires: readline-devel >= 5.0 +BuildRequires: tcl >= 8.2 +Requires: hiredis >= 0.10 +Requires: libgcrypt >= 1.2 +Requires: libmemcached >= 0.40 +Requires: libxslt >= 1.1.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -33,9 +42,14 @@ Summary: Header files for YAZ library Summary(pl.UTF-8): Pliki nagłówkowe biblioteki YAZ Group: Development/Libraries Requires: %{name} = %{version}-%{release} +Requires: gnutls-devel +Requires: hiredis-devel >= 0.10 +Requires: libgcrypt-devel >= 1.2 +Requires: libicu-devel >= 3.4 +Requires: libmemcached-devel >= 0.40 Requires: libwrap-devel -Requires: libxml2-devel -Requires: openssl-devel >= 0.9.7d +Requires: libxml2-devel >= 2.0 +Requires: libxslt-devel >= 1.1.0 %description devel Header files for YAZ library. @@ -57,8 +71,6 @@ Statyczne biblioteki YAZ. %prep %setup -q -%patch0 -p1 -%patch1 -p1 %build %{__libtoolize} @@ -66,9 +78,7 @@ Statyczne biblioteki YAZ. %{__autoconf} %{__automake} %configure \ - --enable-shared \ - --enable-tcpd \ - --with-openssl + --enable-tcpd %{__make} @@ -76,12 +86,13 @@ Statyczne biblioteki YAZ. rm -rf $RPM_BUILD_ROOT %{__make} install \ + docDATA_INSTALL="install -p" \ DESTDIR=$RPM_BUILD_ROOT -%{__make} install -C doc \ - DESTDIR=$RPM_BUILD_ROOT +mv -f $RPM_BUILD_ROOT%{_docdir}/yaz doc-dist -mv -f $RPM_BUILD_ROOT%{_docdir}/yaz ./doc-dist +# obsoleted by pkg-config +%{__rm} $RPM_BUILD_ROOT%{_libdir}/libyaz*.la %clean rm -rf $RPM_BUILD_ROOT @@ -91,15 +102,24 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc LICENSE NEWS README TODO +%doc ChangeLog LICENSE NEWS README.md %attr(755,root,root) %{_bindir}/yaz-asncomp %attr(755,root,root) %{_bindir}/yaz-client* %attr(755,root,root) %{_bindir}/yaz-iconv +%attr(755,root,root) %{_bindir}/yaz-icu +%attr(755,root,root) %{_bindir}/yaz-illclient +%attr(755,root,root) %{_bindir}/yaz-json-parse %attr(755,root,root) %{_bindir}/yaz-marcdump +%attr(755,root,root) %{_bindir}/yaz-record-conv +%attr(755,root,root) %{_bindir}/yaz-url %attr(755,root,root) %{_bindir}/yaz-ztest* -%attr(755,root,root) %{_bindir}/ziffy %attr(755,root,root) %{_bindir}/zoomsh -%attr(755,root,root) %{_libdir}/lib*.so.*.* +%attr(755,root,root) %{_libdir}/libyaz.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libyaz.so.5 +%attr(755,root,root) %{_libdir}/libyaz_icu.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libyaz_icu.so.5 +%attr(755,root,root) %{_libdir}/libyaz_server.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libyaz_server.so.5 %dir %{_datadir}/yaz %{_datadir}/yaz/etc %{_datadir}/yaz/ill @@ -107,23 +127,32 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man1/yaz-asncomp.1* %{_mandir}/man1/yaz-client*.1* %{_mandir}/man1/yaz-iconv.1* +%{_mandir}/man1/yaz-icu.1* +%{_mandir}/man1/yaz-illclient.1* +%{_mandir}/man1/yaz-json-parse.1* %{_mandir}/man1/yaz-marcdump.1* -%{_mandir}/man1/ziffy.1* +%{_mandir}/man1/yaz-record-conv.1* +%{_mandir}/man1/yaz-url.1* %{_mandir}/man1/zoomsh.1* +%{_mandir}/man7/bib1-attr.7* %{_mandir}/man7/yaz.7* %{_mandir}/man7/yaz-log.7* %{_mandir}/man8/yaz-ztest*.8* %files devel %defattr(644,root,root,755) -%doc doc-dist/* +%doc doc-dist/* %attr(755,root,root) %{_bindir}/yaz-config -%attr(755,root,root) %{_libdir}/lib*.so -%{_libdir}/lib*.la +%attr(755,root,root) %{_libdir}/libyaz.so +%attr(755,root,root) %{_libdir}/libyaz_icu.so +%attr(755,root,root) %{_libdir}/libyaz_server.so %{_includedir}/yaz +%{_pkgconfigdir}/yaz.pc %{_aclocaldir}/yaz.m4 -%{_mandir}/man8/yaz-config.8* +%{_mandir}/man1/yaz-config.1* %files static %defattr(644,root,root,755) -%{_libdir}/lib*.a +%{_libdir}/libyaz.a +%{_libdir}/libyaz_icu.a +%{_libdir}/libyaz_server.a