Blob Blame History Raw
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}

Name:           glite-lb-client
Version:        6.0.10
Release:        2%{?dist}
Summary:        gLite Logging and Bookkeeping client library

License:        ASL 2.0
# multilib %%{name}-devel
Patch0:         unify-headers.patch

%if 0%{?rhel} <= 6 && ! 0%{?fedora}
BuildRequires:  classads-devel
BuildRequires:  condor-classads-devel
BuildRequires:  cppunit-devel
BuildRequires:  glite-lb-types
BuildRequires:  glite-jobid-api-c-devel
BuildRequires:  glite-jobid-api-cpp-devel
BuildRequires:  glite-lb-common-devel
BuildRequires:  glite-lbjp-common-gss-devel
BuildRequires:  glite-lbjp-common-trio-devel
BuildRequires:  libtool
BuildRequires:  perl
BuildRequires:  perl(Getopt::Long)
BuildRequires:  perl(POSIX)
BuildRequires:  pkgconfig

glite-lb-client is the library implementing client side of gLite Logging and
Bookkeeping API.

%package        devel
Summary:        Development files for gLite L&B client library
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       glite-lb-common-devel%{?_isa}
Requires:       glite-jobid-api-c-devel%{?_isa}
Requires:       glite-jobid-api-cpp-devel

%description    devel
This package contains development libraries and header files for gLite L&B
client library.

%package        progs
Summary:        gLite L&B client programs and examples
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description    progs
This package contains client programs and examples for gLite L&B.

%setup -q
%patch0 -p2

perl ./configure --root=/ --prefix=%{_prefix} --libdir=%{_lib} --docdir=%{_pkgdocdir}
CFLAGS="%{?optflags}" LDFLAGS="%{?__global_ldflags}" make %{?_smp_mflags}

make install DESTDIR=%{buildroot}
# another installed documentation can't be combined with %%doc on EPEL 5/6,
# install these files here instead
install -m 0644 ChangeLog LICENSE %{buildroot}%{_pkgdocdir}
rm -f %{buildroot}%{_libdir}/*.a
rm -f %{buildroot}%{_libdir}/*.la

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%dir %{_pkgdocdir}/

%files devel
%dir %{_pkgdocdir}/examples/
%dir %{_datadir}/emi/
%dir %{_datadir}/emi/build/
%dir %{_datadir}/emi/build/m4/

%files progs
%dir %{_libdir}/glite-lb/
%dir %{_libdir}/glite-lb/examples/

* Thu Jun 26 2014 František Dvořák <> - 6.0.10-2
- Patch for multilib %%{name}-devel

* Thu Jun 26 2014 František Dvořák <> - 6.0.10-1
- New release 6.0.10 (L&B 4.1.2)
- Consistent style with buildroot macro

* Sat Jun 07 2014 Fedora Release Engineering <> - 6.0.9-2
- Rebuilt for

* Sat May 31 2014 František Dvořák <> - 6.0.9-1
- New release 6.0.9 (L&B 4.1.1)

* Fri Dec 06 2013 František Dvořák <> - 6.0.8-2
- Using * glob for manpages

* Fri Nov 22 2013 František Dvořák <> - 6.0.8-1
- Initial package