a50bb4
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
a50bb4
a50bb4
Name:           glite-lb-client
3899ca
Version:        6.0.10
b218fa
Release:        11%{?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
2d02e9
BuildRequires:  perl-interpreter
ad93a1
BuildRequires:  perl-generators
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
b218fa
./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
b218fa
%{!?_licensedir:%global license %nil}
a50bb4
%dir %{_pkgdocdir}/
b218fa
%license %{_pkgdocdir}/LICENSE
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
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
b218fa
* Tue Feb 13 2018 František Dvořák <valtri@civ.zcu.cz> - 6.0.10-11
b218fa
- Used %%license macro
b218fa
- Direct launch of configure script
b218fa
95a542
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.10-10
95a542
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
95a542
59e544
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.10-9
59e544
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
59e544
d9a54b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.10-8
d9a54b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d9a54b
1c9568
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.10-7
1c9568
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
1c9568
5aefb0
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.10-6
5aefb0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5aefb0
ab3f78
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.10-5
ab3f78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ab3f78
737492
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 6.0.10-4
737492
- Rebuilt for GCC 5 C++11 ABI change
737492
1e39ea
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.10-3
1e39ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
1e39ea
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