Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > by-pkgid > e24f34237aeee92b0f4677b78d6ffddc > files > 3

yazpp-1.0.4-2mdv2008.1.src.rpm

%define	major 2
%define libname %mklibname yazpp %{major}
%define develname %mklibname yazpp -d

Summary:	YAZ++ is an application programming interface (API) to YAZ
Name:		yazpp
Version:	1.0.4
Release:	%mkrel 2
License:	BSD
Group:		System/Libraries
Source0:	http://ftp.indexdata.dk/pub/yaz++/%{name}-%{version}.tar.bz2
Url:		http://www.indexdata.com/yazplusplus/
Patch0:		yazpp-1.0.4-config.patch
BuildRequires:	libyaz-devel >= 3.0.18
BuildRequires:	libicu-devel
BuildRequires:	docbook-style-dsssl
BuildRequires:  docbook-style-xsl

%description
Yaz C++ bindings.

%package -n %{libname}
Summary:	Z39.50/SRW/SRU C++ libraries
Group:		System/Libraries

%description -n %{libname}
Z39.50/SRW/SRU C++ libraries.

%package -n %{develname}
Summary:	Yaz++ development headers (API)
Group:		Development/C++
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Obsoletes:	%mklibname yazpp -d 2
Provides:	%mklibname yazpp -d 2

%description -n %{develname}
YAZ++ is an application programming interface (API) to YAZ which supports 
the development of Z39.50/SRW/SRU client and server applications using C++. 
Like YAZ, it supports Z39.50-2003 (version 3) as well as SRW/SRU version 1.1 in 
both the client and server roles. YAZ++ includes an implementation of the 
ZOOM C++ binding and a generic client/server API based on the 
Observer/Observable design pattern.

%prep
%setup -q
%patch0 -p1

%build
%configure2_5x \
	--enable-shared \
	--disable-static

%make

%check
make check

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%makeinstall_std
%multiarch_binaries %{buildroot}/%{_bindir}/%{name}-config

%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files -n %{libname}
%defattr(-,root,root) 
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%defattr(-,root,root)
%doc README ChangeLog NEWS TODO LICENSE
%{multiarch_bindir}/%{name}-config
%{_bindir}/%{name}-config
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*
%{_libdir}/*.so
%{_libdir}/*.la
%{_datadir}/aclocal/yazpp.m4
%{_datadir}/doc/%{name}/*
%{_mandir}/man8/yazpp-config.*


%changelog
* Fri Dec 28 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 1.0.4-2mdv2008.1
+ Revision: 138699
- add missing buildrequires

* Thu Dec 27 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 1.0.4-1mdv2008.1
+ Revision: 138655
- provide patch 0
- new version

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request

* Tue Oct 23 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 1.0.3-4mdv2008.1
+ Revision: 101390
- new devel library policy
- some cleans in spec file

  + Thierry Vignaud <tvignaud@mandriva.com>
    - fix man pages extension

* Tue Jun 12 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 1.0.3-3mdv2008.0
+ Revision: 38336
- obsolete library

* Fri Jun 08 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 1.0.3-2mdv2008.0
+ Revision: 36995
- add provides/obsoletes

* Thu Jun 07 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 1.0.3-1mdv2008.0
+ Revision: 36846
- adjust major
- new version
- use %%check
- spec file clean


* Sun Jan 21 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 1.0.0-1mdv2007.0
+ Revision: 111608
- Import yazpp