File argus-gsi-pep-callout.spec of Package argus-gsi-pep-callout
%global base_version 1.3.2
%global base_release 1
%if %{?build_number:1}%{!?build_number:0}
%define release_version 0.build.%{build_number}
%else
%define release_version %{base_release}
%endif
Name: argus-gsi-pep-callout
Version: %{base_version}
Release: %{release_version}%{?dist}
Summary: Argus PEP callout for Globus GSI
License: Apache-2.0
Group: System/Libraries
URL: https://twiki.cern.ch/twiki/bin/view/EGEE/AuthorizationFramework
Source: %{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: argus-pep-api-c-devel
BuildRequires: globus-gridmap-callout-error-devel
BuildRequires: globus-gssapi-gsi-devel
BuildRequires: globus-gssapi-error-devel
BuildRequires: globus-gss-assist-devel
%description
Argus PEP client callout module for Globus GSI (EMI). Does callout to the
Argus Authorization Service to authorize the user based on its credentials
and returns a user mapping.
%prep
%setup -q
./autotools.sh
%build
%configure
# The following two lines were suggested by
# https://fedoraproject.org/wiki/Packaging/Guidelines to prevent any
# RPATHs creeping in.
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
strip -s -v %{buildroot}%{_libdir}/*.so
# clean up installed documentation files
rm -rf ${RPM_BUILD_ROOT}/usr/share/doc/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/libgsi_pep_callout.so
%{_libdir}/libgsi_pep_callout.so.1.0.1
%{_libdir}/libgsi_pep_callout.so.1
%doc COPYING LICENSE README etc/gsi-pep-callout.conf etc/gsi-authz.conf ChangeLog
%changelog
* Tue Dec 18 2018 Mischa Sallé <msalle@nikhef.nl> 1.3.2-1
- Package for upstream version 1.3.2
* Mon Feb 8 2016 Andrea Ceccanti <andrea.ceccanti@cnaf.infn.it> 1.3.1-2
- Repackage with new packaging scripts
* Wed Mar 27 2013 Valery Tschopp <valery.tschopp@switch.ch> 1.3.1-1
- Package for upstream version 1.3.1
* Fri Nov 9 2012 Valery Tschopp <valery.tschopp@switch.ch> 1.3.0-1
- Package for upstream version 1.3.0
* Fri Aug 3 2012 Valery Tschopp <valery.tschopp@switch.ch> 1.2.3-1
- Self managed packaging with spec file.
* Tue Apr 3 2012 Valery Tschopp <valery.tschopp@switch.ch> 1.2.2-1
- Initial GSI Argus PEP callout plugin for GT4 for EMI 2.