a50bb4
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
a50bb4
a50bb4
Name:           glite-lb-client
3899ca
Version:        6.0.10
41b65e
Release:        2%{?dist}
a50bb4
Summary:        gLite Logging and Bookkeeping client library
a50bb4
a50bb4
License:        ASL 2.0
312ee2
URL:            http://glite.cern.ch
a50bb4
Source:         http://scientific.zcu.cz/emi/emi.lb.client/%{name}-%{version}.tar.gz
41b65e
# multilib %%{name}-devel
41b65e
# https://github.com/CESNET/glite-lb/commit/8ee6d05aef5e988d6f7e6add0aa97ebbc05ae94d
41b65e
Patch0:         unify-headers.patch
a50bb4
312ee2
%if 0%{?rhel} <= 6 && ! 0%{?fedora}
a50bb4
BuildRequires:  classads-devel
a50bb4
%else
a50bb4
BuildRequires:  condor-classads-devel
a50bb4
%endif
a50bb4
BuildRequires:  cppunit-devel
a50bb4
BuildRequires:  glite-lb-types
a50bb4
BuildRequires:  glite-jobid-api-c-devel
a50bb4
BuildRequires:  glite-jobid-api-cpp-devel
a50bb4
BuildRequires:  glite-lb-common-devel
a50bb4
BuildRequires:  glite-lbjp-common-gss-devel
a50bb4
BuildRequires:  glite-lbjp-common-trio-devel
a50bb4
BuildRequires:  libtool
a50bb4
BuildRequires:  perl
a50bb4
BuildRequires:  perl(Getopt::Long)
a50bb4
BuildRequires:  perl(POSIX)
a50bb4
BuildRequires:  pkgconfig
a50bb4
a50bb4
%description
a50bb4
glite-lb-client is the library implementing client side of gLite Logging and
a50bb4
Bookkeeping API.
a50bb4
a50bb4
a50bb4
%package        devel
a50bb4
Summary:        Development files for gLite L&B client library
a50bb4
Requires:       %{name}%{?_isa} = %{version}-%{release}
a50bb4
Requires:       glite-lb-common-devel%{?_isa}
a50bb4
Requires:       glite-jobid-api-c-devel%{?_isa}
a50bb4
Requires:       glite-jobid-api-cpp-devel
a50bb4
a50bb4
%description    devel
a50bb4
This package contains development libraries and header files for gLite L&B
a50bb4
client library.
a50bb4
a50bb4
a50bb4
%package        progs
a50bb4
Summary:        gLite L&B client programs and examples
a50bb4
Requires:       %{name}%{?_isa} = %{version}-%{release}
a50bb4
a50bb4
%description    progs
a50bb4
This package contains client programs and examples for gLite L&B.
a50bb4
a50bb4
a50bb4
%prep
a50bb4
%setup -q
41b65e
%patch0 -p2
a50bb4
a50bb4
a50bb4
%build
312ee2
perl ./configure --root=/ --prefix=%{_prefix} --libdir=%{_lib} --docdir=%{_pkgdocdir}
a50bb4
CFLAGS="%{?optflags}" LDFLAGS="%{?__global_ldflags}" make %{?_smp_mflags}
a50bb4
a50bb4
a50bb4
%install
3899ca
make install DESTDIR=%{buildroot}
a50bb4
# another installed documentation can't be combined with %%doc on EPEL 5/6,
312ee2
# install these files here instead
3899ca
install -m 0644 ChangeLog LICENSE %{buildroot}%{_pkgdocdir}
3899ca
rm -f %{buildroot}%{_libdir}/*.a
3899ca
rm -f %{buildroot}%{_libdir}/*.la
a50bb4
a50bb4
a50bb4
%post -p /sbin/ldconfig
a50bb4
a50bb4
a50bb4
%postun -p /sbin/ldconfig
a50bb4
a50bb4
a50bb4
%files
a50bb4
%dir %{_pkgdocdir}/
a50bb4
%{_libdir}/libglite_lb_client.so.14
a50bb4
%{_libdir}/libglite_lb_client.so.14.*
a50bb4
%{_libdir}/libglite_lb_clientpp.so.14
a50bb4
%{_libdir}/libglite_lb_clientpp.so.14.*
a50bb4
%{_pkgdocdir}/ChangeLog
a50bb4
%{_pkgdocdir}/LICENSE
a50bb4
a50bb4
%files devel
a50bb4
%dir %{_pkgdocdir}/examples/
a50bb4
%dir %{_datadir}/emi/
a50bb4
%dir %{_datadir}/emi/build/
a50bb4
%dir %{_datadir}/emi/build/m4/
a50bb4
%{_includedir}/glite/lb/*.h
a50bb4
%{_libdir}/libglite_lb_client.so
a50bb4
%{_libdir}/libglite_lb_clientpp.so
a50bb4
%{_libdir}/pkgconfig/*.pc
a50bb4
%{_pkgdocdir}/examples/*
a50bb4
%{_datadir}/emi/build/m4/glite_lb.m4
a50bb4
a50bb4
%files progs
a50bb4
%dir %{_libdir}/glite-lb/
a50bb4
%dir %{_libdir}/glite-lb/examples/
a50bb4
%{_bindir}/glite-lb-logevent
a50bb4
%{_bindir}/glite-lb-notify
a50bb4
%{_bindir}/glite-lb-register_sandbox
a50bb4
%{_libdir}/glite-lb/examples/*
a50bb4
%{_pkgdocdir}/README-notify
a50bb4
%{_mandir}/man1/glite-lb-notify.1*
a50bb4
%{_mandir}/man1/glite-lb-logevent.1*
a50bb4
a50bb4
a50bb4
%changelog
41b65e
* Thu Jun 26 2014 František Dvořák <valtri@civ.zcu.cz> - 6.0.10-2
41b65e
- Patch for multilib %%{name}-devel
41b65e
3899ca
* Thu Jun 26 2014 František Dvořák <valtri@civ.zcu.cz> - 6.0.10-1
3899ca
- New release 6.0.10 (L&B 4.1.2)
3899ca
- Consistent style with buildroot macro
3899ca
5634bc
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.9-2
5634bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5634bc
312ee2
* Sat May 31 2014 František Dvořák <valtri@civ.zcu.cz> - 6.0.9-1
312ee2
- New release 6.0.9 (L&B 4.1.1)
312ee2
312ee2
* Fri Dec 06 2013 František Dvořák <valtri@civ.zcu.cz> - 6.0.8-2
a50bb4
- Using * glob for manpages
a50bb4
a50bb4
* Fri Nov 22 2013 František Dvořák <valtri@civ.zcu.cz> - 6.0.8-1
a50bb4
- Initial package