Group :: Development/Other
RPM: yaz
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%def_disable static
%def_enable threads
%def_enable tcpd
%def_with ssl
%def_with xml
#-------------------------------------------------------------
%define subst_with_to() %{expand:%%{?_with_%{1}:--with-%{2}}} %{expand:%%{?_without_%{1}:--without-%{2}}}
Name: yaz
Version: 5.13.0
Release: alt2
Summary: Z39.50/SRW/SRU toolkit
License: Revised BSD License
Group: Development/Other
URL: http://www.indexdata.dk/%name/
# Source-url: http://ftp.indexdata.dk/pub/%name/%name-%version.tar.gz
Source: %name-%version.tar
%define lname lib%name
Requires: %lname = %version-%release
# Automatically added by buildreq on Thu Jul 14 2011 (-bi)
# optimized out: docbook-dtds libcom_err-devel libgpg-error libkrb5-devel libstdc++-devel libtinfo-devel libxml2-devel pkg-config
BuildRequires: docbook-style-dsssl gcc-c++ libicu-devel libncurses-devel libreadline-devel libxslt-devel tcl
BuildRequires: docbook-style-dsssl gcc-c++ libncurses-devel
BuildRequires: libreadline-devel libxslt-devel tcl
%{?_with_ssl:BuildRequires: libssl-devel}
%{?_enable_tcpd:BuildRequires: libwrap-devel}
%description
YAZ is a programmers toolkit supporting the development of Z39.50/SRW/SRU
clients and servers. Z39.50-2003 (version 3) as well as SRW/SRU version
1.1 are supported in both the client and server roles.
This package contains both a test-server and clients (normal & ssl) for
the ANSI/NISO Z39.50 protocol for Information Retrieval.
%package -n %lname
Summary: Z39.50 shared libraries
Group: System/Libraries
%description -n %lname
YAZ is a programmers toolkit supporting the development of Z39.50/SRW/SRU
clients and servers. Z39.50-2003 (version 3) as well as SRW/SRU version
1.1 are supported in both the client and server roles.
This packages contains YAZ shared libraries.
%package -n %lname-devel
Summary: Development files for the Z39.50 library YAZ
Group: Development/C
Requires: %lname = %version-%release
Requires: libxml2-devel
%description -n %lname-devel
YAZ is a programmers toolkit supporting the development of Z39.50/SRW/SRU
clients and servers. Z39.50-2003 (version 3) as well as SRW/SRU version
1.1 are supported in both the client and server roles.
This package contains development files for for %lname.
%if_enabled static
%package -n %lname-devel-static
Summary: Z39.50 static library YAZ
Group: Development/C
Requires: %lname-devel = %version-%release
%description -n %lname-devel-static
Z39.50 static library YAZ.
%endif
%package doc
Summary: Documentation for YAZ
Group: Documentation
BuildArch: noarch
%description doc
Online documentation for the %name package, a Z39.50 protocol
server and client.
%prep
%setup
# Fix tests linking.
sed -i 's| ../src/libyaz_icu\.la | ../src/libyaz.la&|' test/Makefile*
%build
%autoreconf
%configure --enable-shared \
%{subst_enable static} \
%{subst_enable threads} \
%{subst_enable tcpd} \
%{subst_with_to xml xml2} \
%{subst_with_to ssl openssl}
%make_build
%install
%makeinstall_std docdir=%_docdir/%name
bzip2 --best --force --keep NEWS
%check
%make_build -k check
%files
%doc README LICENSE NEWS.*
%_bindir/*
%exclude %_bindir/%name-config
%exclude %_bindir/%name-asncomp
%_man1dir/*
%exclude %_man1dir/%name-asncomp.*
%_man7dir/%name-log.*
%_man8dir/%name-ztest.*
%files -n %lname
%_libdir/*.so.*
%dir %_datadir/%name/
%_datadir/%name/etc
%_man7dir/%name.*
%_man7dir/bib1-attr.7.*
%files -n %lname-devel
%_bindir/%name-config
%_bindir/%name-asncomp
%_includedir/%name/
%_libdir/*.so
%_pkgconfigdir/*
%_datadir/aclocal/*
%_datadir/%name/
%exclude %_datadir/%name/etc
%_man1dir/%name-asncomp.*
%if_enabled static
%files -n %lname-devel-static
%_libdir/*.a
%endif
%files doc
%_docdir/%name/
%changelog
…
Full changelog you can see here
%def_enable threads
%def_enable tcpd
%def_with ssl
%def_with xml
#-------------------------------------------------------------
%define subst_with_to() %{expand:%%{?_with_%{1}:--with-%{2}}} %{expand:%%{?_without_%{1}:--without-%{2}}}
Name: yaz
Version: 5.13.0
Release: alt2
Summary: Z39.50/SRW/SRU toolkit
License: Revised BSD License
Group: Development/Other
URL: http://www.indexdata.dk/%name/
# Source-url: http://ftp.indexdata.dk/pub/%name/%name-%version.tar.gz
Source: %name-%version.tar
%define lname lib%name
Requires: %lname = %version-%release
# Automatically added by buildreq on Thu Jul 14 2011 (-bi)
# optimized out: docbook-dtds libcom_err-devel libgpg-error libkrb5-devel libstdc++-devel libtinfo-devel libxml2-devel pkg-config
BuildRequires: docbook-style-dsssl gcc-c++ libicu-devel libncurses-devel libreadline-devel libxslt-devel tcl
BuildRequires: docbook-style-dsssl gcc-c++ libncurses-devel
BuildRequires: libreadline-devel libxslt-devel tcl
%{?_with_ssl:BuildRequires: libssl-devel}
%{?_enable_tcpd:BuildRequires: libwrap-devel}
%description
YAZ is a programmers toolkit supporting the development of Z39.50/SRW/SRU
clients and servers. Z39.50-2003 (version 3) as well as SRW/SRU version
1.1 are supported in both the client and server roles.
This package contains both a test-server and clients (normal & ssl) for
the ANSI/NISO Z39.50 protocol for Information Retrieval.
%package -n %lname
Summary: Z39.50 shared libraries
Group: System/Libraries
%description -n %lname
YAZ is a programmers toolkit supporting the development of Z39.50/SRW/SRU
clients and servers. Z39.50-2003 (version 3) as well as SRW/SRU version
1.1 are supported in both the client and server roles.
This packages contains YAZ shared libraries.
%package -n %lname-devel
Summary: Development files for the Z39.50 library YAZ
Group: Development/C
Requires: %lname = %version-%release
Requires: libxml2-devel
%description -n %lname-devel
YAZ is a programmers toolkit supporting the development of Z39.50/SRW/SRU
clients and servers. Z39.50-2003 (version 3) as well as SRW/SRU version
1.1 are supported in both the client and server roles.
This package contains development files for for %lname.
%if_enabled static
%package -n %lname-devel-static
Summary: Z39.50 static library YAZ
Group: Development/C
Requires: %lname-devel = %version-%release
%description -n %lname-devel-static
Z39.50 static library YAZ.
%endif
%package doc
Summary: Documentation for YAZ
Group: Documentation
BuildArch: noarch
%description doc
Online documentation for the %name package, a Z39.50 protocol
server and client.
%prep
%setup
# Fix tests linking.
sed -i 's| ../src/libyaz_icu\.la | ../src/libyaz.la&|' test/Makefile*
%build
%autoreconf
%configure --enable-shared \
%{subst_enable static} \
%{subst_enable threads} \
%{subst_enable tcpd} \
%{subst_with_to xml xml2} \
%{subst_with_to ssl openssl}
%make_build
%install
%makeinstall_std docdir=%_docdir/%name
bzip2 --best --force --keep NEWS
%check
%make_build -k check
%files
%doc README LICENSE NEWS.*
%_bindir/*
%exclude %_bindir/%name-config
%exclude %_bindir/%name-asncomp
%_man1dir/*
%exclude %_man1dir/%name-asncomp.*
%_man7dir/%name-log.*
%_man8dir/%name-ztest.*
%files -n %lname
%_libdir/*.so.*
%dir %_datadir/%name/
%_datadir/%name/etc
%_man7dir/%name.*
%_man7dir/bib1-attr.7.*
%files -n %lname-devel
%_bindir/%name-config
%_bindir/%name-asncomp
%_includedir/%name/
%_libdir/*.so
%_pkgconfigdir/*
%_datadir/aclocal/*
%_datadir/%name/
%exclude %_datadir/%name/etc
%_man1dir/%name-asncomp.*
%if_enabled static
%files -n %lname-devel-static
%_libdir/*.a
%endif
%files doc
%_docdir/%name/
%changelog
…
Full changelog you can see here