File lcmaps-plugins-robot.spec of Package lcmaps-plugins-robot

Summary: Robot plugins for the LCMAPS authorization framework
Name: lcmaps-plugins-robot
Version: 0.0.5
Release: 1%{?dist}
License: Apache-2.0
Group: System/Libraries
URL: http://wiki.nikhef.nl/grid/Lcmaps-plugins-robot
Source0: http://software.nikhef.nl/security/%{name}/%{name}-%{version}.tar.gz
BuildRequires: lcmaps-devel, libopenssl-devel
Requires: lcmaps%{?_isa} >= 1.5.0-1
# BuildRoot is still required for EPEL5
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

%description
The Local Centre MAPping Service (LCMAPS) is a security middleware
component that processes the users Grid credentials (typically X.509
proxy certificates and VOMS attributes) and maps the user to a local
account based on the site local policy.

This package contains the robot (per-user sub-proxy) plugins and a command-line
tool.

%prep
%setup -q

%build

%configure --disable-static

# The following two lines were suggested by
# https://fedoraproject.org/wiki/Packaging/Guidelines to prevent any
# RPATHs creeping in.
# https://fedoraproject.org/wiki/Common_Rpmlint_issues#unused-direct-shlib-dependency
# to prevent unnecessary linking
%define fixlibtool() 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\
sed -i -e 's! -shared ! -Wl,--as-needed\\0!g' libtool

%fixlibtool
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT

make DESTDIR=$RPM_BUILD_ROOT install
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'

# clean up installed documentation files
rm -rf ${RPM_BUILD_ROOT}/usr/share/doc/%{name}-%{version}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%doc AUTHORS LICENSE NEWS BUGS doc/lcmaps-example.db
%{_bindir}/create_pusp
%{_libdir}/lcmaps/lcmaps_robot_ban_dn.mod
%{_libdir}/lcmaps/lcmaps_robot_localaccount.mod
%{_libdir}/lcmaps/lcmaps_robot_poolaccount.mod
%{_libdir}/lcmaps/liblcmaps_robot_ban_dn.so
%{_libdir}/lcmaps/liblcmaps_robot_localaccount.so
%{_libdir}/lcmaps/liblcmaps_robot_poolaccount.so
%{_mandir}/man1/create_pusp.1*
%{_mandir}/man8/lcmaps_robot_ban_dn.mod.8*
%{_mandir}/man8/lcmaps_robot_localaccount.mod.8*
%{_mandir}/man8/lcmaps_robot_poolaccount.mod.8*

%changelog
* Wed Jul 22 2015 Mischa Salle <msalle@nikhef.nl> 0.0.5-1
- updated new name for create_pusp tool and its manpage
- updated version

* Fri Jul 17 2015 Mischa Salle <msalle@nikhef.nl> 0.0.4-1
- add create_pusp.sh tool and its manpage
- updated version

* Fri Feb 27 2015 Mischa Salle <msalle@nikhef.nl> 0.0.3-1
- updated URL
- add example lcmaps.db
- updated version

* Mon Feb  9 2015 Mischa Salle <msalle@nikhef.nl> 0.0.2-1
- updated version

* Fri Jan 23 2015 Mischa Salle <msalle@nikhef.nl> 0.0.1-1
- Initial build.
openSUSE Build Service is sponsored by