466a00c
Name:           yaz
41590d0
Version:        4.0.12
c34e77a
Release:        2%{?dist}
466a00c
Summary:        Z39.50/SRW/SRU programs
466a00c
466a00c
Group:          Applications/Internet
466a00c
License:        BSD
466a00c
URL:            http://www.indexdata.dk/yaz/
466a00c
Source0:        http://ftp.indexdata.dk/pub/yaz/yaz-%{version}.tar.gz
466a00c
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
466a00c
a9defd7
BuildRequires:  libxml2-devel, openssl-devel, readline-devel, libtool, bison
b49308a
BuildRequires:  libxslt-devel, tcp_wrappers-devel, libpcap-devel, libicu-devel
41590d0
BuildRequires:  libgcrypt-devel, libgpg-error-devel
466a00c
466a00c
%description
466a00c
This package contains both a test-server and clients (normal & ssl)
466a00c
for the ANSI/NISO Z39.50 protocol for Information Retrieval.
466a00c
466a00c
466a00c
%package -n lib%{name}
466a00c
Summary:        Z39.50 libraries
466a00c
Group:          System Environment/Libraries
466a00c
466a00c
%description -n lib%{name}
9b8edfa
Z39.50 is a client-server protocol for searching and retrieving 
466a00c
information from remote computer databases (ANSI/NISO Z39.50 
466a00c
protocol).
466a00c
3bb30bc
466a00c
%package -n lib%{name}-devel
466a00c
Summary:        Development files for Z39.50 Library
466a00c
Group:          Development/Libraries
466a00c
Requires:       libyaz = %{version}-%{release}
466a00c
Requires:       libxml2-devel, openssl-devel, readline-devel
9b8edfa
Requires:       pkgconfig
466a00c
466a00c
%description -n lib%{name}-devel
9b8edfa
Development libraries and includes for the lib%{name} package.
466a00c
466a00c
a9defd7
%package -n %{name}-doc
a9defd7
Summary:        Documentation for yaz Z39.50 programs
a9defd7
Group:          Documentation
a9defd7
Requires:       yaz = %{version}-%{release}
a9defd7
BuildArch:      noarch
a9defd7
a9defd7
%description -n %{name}-doc
a9defd7
Online documentation for the %{name} package, a Z39.50 protocol
a9defd7
server and client.
a9defd7
a9defd7
466a00c
%prep
466a00c
%setup -q
a9defd7
sh buildconf.sh
466a00c
466a00c
%build
466a00c
%configure \
466a00c
    --enable-tcpd \
466a00c
    --enable-shared \
466a00c
    --disable-static
466a00c
make LIBTOOL=%{_bindir}/libtool %{?_smp_mflags}
466a00c
466a00c
466a00c
%install
9b8edfa
rm -rf %{buildroot}
9b8edfa
make LIBTOOL=%{_bindir}/libtool DESTDIR=%{buildroot} install
466a00c
# Remove cruft
9b8edfa
find %{buildroot} -name '*.la' -o -name '*.a' | xargs rm -f
9b8edfa
rm -rf %{buildroot}%{_docdir}
a9defd7
rm -f docs/Makefile*
466a00c
466a00c
466a00c
%check
466a00c
make check
466a00c
466a00c
466a00c
%clean
9b8edfa
rm -rf %{buildroot}
466a00c
466a00c
466a00c
%post -n lib%{name} -p /sbin/ldconfig
466a00c
%postun -n lib%{name} -p /sbin/ldconfig
466a00c
466a00c
466a00c
%files
466a00c
%defattr(-,root,root,-)
a9defd7
%doc README NEWS LICENSE
466a00c
%{_bindir}/yaz-client
466a00c
%{_bindir}/yaz-ztest
466a00c
%{_bindir}/zoom*
466a00c
%{_bindir}/yaz-marcdump
466a00c
%{_bindir}/yaz-iconv
a91fe2b
%{_bindir}/yaz-illclient
b49308a
%{_bindir}/yaz-icu
a9defd7
%{_bindir}/yaz-json-parse
466a00c
%{_mandir}/man1/yaz-client.*
a91fe2b
%{_mandir}/man1/yaz-illclient.*
466a00c
%{_mandir}/man8/yaz-ztest.*
466a00c
%{_mandir}/man1/zoomsh.*
466a00c
%{_mandir}/man1/yaz-marcdump.*
466a00c
%{_mandir}/man1/yaz-iconv.*
b49308a
%{_mandir}/man1/yaz-icu.*
466a00c
%{_mandir}/man7/yaz-log.*
a9defd7
%{_mandir}/man1/yaz-json-parse.*
466a00c
466a00c
%files -n lib%{name}
466a00c
%defattr(-,root,root,-)
466a00c
%{_libdir}/*.so.*
466a00c
%{_mandir}/man7/yaz.*
b683b36
%{_mandir}/man7/bib1-attr.*
466a00c
466a00c
%files -n lib%{name}-devel
466a00c
%defattr(-,root,root,-)
466a00c
%{_bindir}/yaz-config
466a00c
%{_bindir}/yaz-asncomp
2ef6120
%{_libdir}/pkgconfig/*
466a00c
%{_libdir}/*.so
466a00c
%{_includedir}/%{name}
466a00c
%{_datadir}/yaz
466a00c
%{_datadir}/aclocal/*
466a00c
%{_mandir}/man1/yaz-asncomp.*
466a00c
%{_mandir}/man8/yaz-config.*
466a00c
a9defd7
%files -n %{name}-doc
a9defd7
%defattr(-,root,root,-)
a9defd7
%doc doc/* 
a9defd7
466a00c
466a00c
%changelog
c34e77a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.12-2
c34e77a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c34e77a
41590d0
* Sat Nov 06 2010 Guido Grazioli <guido.grazioli@gmail.com> - 4.0.12-1
41590d0
- Upstream 4.0.12 (various bugfixes)
41590d0
- Remove unused patch, fixed upstream
41590d0
a9defd7
* Mon Apr 04 2010 Guido Grazioli <guido.grazioli@gmail.com> - 4.0.2-1
a9defd7
- Upstream 4.0.2 (major version release)
a9defd7
- Add patch for explicit DSO linking
a9defd7
- Split documentation to -doc subpackage
a9defd7
Caolan McNamara d861e84
* Fri Apr 02 2010 Caolán McNamara <caolanm@redhat.com> - 3.0.49-2
a9defd7
- Rebuild against icu 4.4
Caolan McNamara d861e84
9b8edfa
* Thu Oct 01 2009 Guido Grazioli <guido.grazioli@gmail.com> - 3.0.49-1
9b8edfa
- Upstream 3.0.49 (bugfixes and feature enhancements)
9b8edfa
- Require pkgconfig for libyaz-devel (guidelines MUST)
9b8edfa
ac34fe5
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.46-2
ac34fe5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ac34fe5
39d7fcb
* Sat Jun 27 2009 Konstantin Ryabitsev <icon@fedoraproject.org> - 3.0.46-1
39d7fcb
- Update to 3.0.46 (miscellaneous bugfixes)
39d7fcb
2716edf
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.41-2
2716edf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2716edf
b683b36
* Mon Dec 29 2008 Konstantin Ryabitsev <icon@fedoraproject.org> - 3.0.41-1
b683b36
- Upstream 3.0.41
b683b36
- Always use system libtool
b683b36
- Remove TODO from docs
b683b36
- Package bib1-attr.7 with libyaz
b683b36
5934ac7
* Mon Jun 30 2008 Konstantin Ryabitsev <icon@fedoraproject.org> - 3.0.34-1
5934ac7
- Upstream 3.0.34
Caolan McNamara 3506e91
278d35d
* Sat May 10 2008 Konstantin Ryabitsev <icon@fedoraproject.org> - 3.0.26-1
278d35d
- Upstream 3.0.26
278d35d
b49308a
* Sat Feb 02 2008 Konstantin Ryabitsev <icon@fedoraproject.org> - 3.0.24-1
b49308a
- Upstream 3.0.24
b49308a
- Remove ziffy, as it's no longer part of this package
b49308a
- Build with icu, available since 3.0.10
0b57cc7
ff64359
* Fri Aug 17 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 3.0.8-1
ff64359
- New upstream 3.0.8
ff64359
a91fe2b
* Fri Jun 15 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 3.0.6-1
a91fe2b
- New major upstream version 3.0.6
a91fe2b
2ef6120
* Sun Apr 01 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 2.1.54-1
2ef6120
- Upstream 2.1.54
ab52b8c
c7b1c98
* Sat Jan 27 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 2.1.48-1
c7b1c98
- Upstream 2.1.48
c7b1c98
44ed0db
* Sun Dec 17 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 2.1.40-1
44ed0db
- Upstream 2.1.40
44ed0db
f0096d6
* Sat Oct 28 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 2.1.36-1
f0096d6
- Upstream 2.1.36
f0096d6
9154093
* Sun Sep 03 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 2.1.26-1.1
9154093
- Mass rebuild for FC6
9154093
3bb30bc
* Tue Aug 15 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 2.1.26-1
3bb30bc
- Version 2.1.26
3bb30bc
- Kill all tabs
3bb30bc
466a00c
* Tue Jun 20 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 2.1.22-1
466a00c
- Version 2.1.22
466a00c
- Libtoolize correctly
466a00c
- BuildRequire libxslt
466a00c
- BuildRequire tcp_wrappers
466a00c
- Enable pth in configure
466a00c
- Add %%check routine
466a00c
466a00c
* Mon Dec 12 2005 Konstantin Ryabitsev <icon@fedoraproject.org> - 2.1.10-1
466a00c
- Initial packaging