On Thu, 2014-07-31 at 09:53 +0200, Luca Tartarini wrote:
> Hi,
> 
> Thanks for the reply, unfortunately I can not find the package on
> Scientific Linux, is there a workaround?

I saw from the lasso mailing list that you built the lasso package
yourself, make sure you built the python bindings, they are part of the
same source tree.

Attached find a .spec file you can use top build lasso on EL6 platforms,
until it will become available "officially".

This will build and install the python binding correctly.

Simo.

> Thanks.
> 
> Luca Tartarini
> 
> 
> 2014-07-30 15:00 GMT+02:00 Simo Sorce <sso...@redhat.com>:
> 
> > On Tue, 2014-07-29 at 15:58 +0200, Martin Kosek wrote:
> > > On 07/29/2014 03:47 PM, Luca Tartarini wrote:
> > > > Hi everyone,
> > > >
> > > > I am new in FreeIPA, I am trying to configure FreeIPA with Ipsilon. The
> > > > configuration is the following: Service Provider (host with Scientific
> > > > Linux 6) with ipsilon-client and Identity Provider (another host with
> > > > Scientific Linux 6) with FreeIPA and ipsilon-server, is the
> > configuration
> > > > feasible and/or correct?
> > > > If it is, then I am stuck in the installation of ipsilon-client because
> > > > after I installed lasso-2.3.6 and all the ipsilon-client prerequisites,
> > > > when I finally run:
> > > >
> > > > ipsilon-client-install --saml-idp-metadata
> > > > https://myidp.example.org/idp/saml2/metadata --saml-auth /wiki
> > > >
> > > > I get this error about lasso:
> > > >
> > > > Traceback (most recent call last):
> > > >   File "/usr/bin/ipsilon-client-install", line 20, in <module>
> > > >     from ipsilon.tools.saml2metadata import Metadata
> > > >   File
> > "/usr/lib/python2.6/site-packages/ipsilon/tools/saml2metadata.py",
> > > > line 22, in <module>
> > > >     import lasso
> > > >   File "/usr/lib/python2.6/site-packages/lasso.py", line 3, in <module>
> > > >     import _lasso
> > > > ImportError: No module named _lasso
> > > >
> > > > Does anyone know if it's a problem about lasso's configuration or I
> > forgot
> > > > something about ipsilon-client?
> > > >
> > > > Thanks in advance.
> > > >
> > > > Luca Tartarini
> > >
> > > Not sure, _lasso.so should be provided by lasso-python package:
> > >
> > > # rpm -qf /usr/lib64/python2.6/site-packages/_lasso.so
> > > lasso-python-2.4.0-4.el6.x86_64
> > >
> > > CCing Simo to advise.
> >
> > Sounds like lasso-python is missing indeed.
> >
> > Simo.
> >
> >
> >


%global with_java 0
%global with_php 0
%global with_perl 0
%global with_python 1
%global with_wsf 0

%if %{with_php}
%{!?__pecl:     %{expand: %%global __pecl     %{_bindir}/pecl}}
%endif

Summary: Liberty Alliance Single Sign On
Name: lasso
Version: 2.4.0
Release: 1%{?dist}
License: GPLv2+
Group: System Environment/Libraries
Source: http://dev.entrouvert.org/lasso/lasso-%{version}.tar.gz
%if %{with_wsf}
BuildRequires: cyrus-sasl-devel
%endif
BuildRequires: gtk-doc, libtool-ltdl-devel
BuildRequires: glib2-devel, swig
BuildRequires: libxml2-devel, xmlsec1-devel, openssl-devel, xmlsec1-openssl-devel
Url: http://lasso.entrouvert.org/

%description
Lasso is a library that implements the Liberty Alliance Single Sign On
standards, including the SAML and SAML2 specifications. It allows to handle
the whole life-cycle of SAML based Federations, and provides bindings
for multiple languages.

%package devel
Summary: Lasso development headers and documentation
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}

%description devel
This package contains the header files, static libraries and development
documentation for Lasso.

%if %{with_perl}
%package perl
Summary: Liberty Alliance Single Sign On (lasso) Perl bindings
Group: Development/Libraries
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: %{name}%{?_isa} = %{version}-%{release}

%description perl
Perl language bindings for the lasso (Liberty Alliance Single Sign On) library.
%endif

%if %{with_java}
%package java
Summary: Liberty Alliance Single Sign On (lasso) Java bindings
Group: Development/Libraries
BuildRequires: java-devel
BuildRequires: jpackage-utils
Requires: java-headless
Requires: jpackage-utils
Requires: %{name}%{?_isa} = %{version}-%{release}

%description java
Java language bindings for the lasso (Liberty Alliance Single Sign On) library.
%endif

%if %{with_php}
%package php
Summary: Liberty Alliance Single Sign On (lasso) PHP bindings
Group: Development/Libraries
BuildRequires: php-devel, expat-devel
BuildRequires: python2
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires(post): %{__pecl}
Requires(postun): %{__pecl}
Requires: php(zend-abi) = %{php_zend_api}
Requires: php(api) = %{php_core_api}

%description php
PHP language bindings for the lasso (Liberty Alliance Single Sign On) library.
%endif

%if %{with_python}
%package python
Summary: Liberty Alliance Single Sign On (lasso) Python bindings
Group: Development/Libraries
BuildRequires: python2-devel
BuildRequires: python-lxml
Requires: python
Requires: %{name}%{?_isa} = %{version}-%{release}

%description python
Python language bindings for the lasso (Liberty Alliance Single Sign On)
library.
%endif

%prep
%setup -q -n %{name}-%{version}

%build
./autogen.sh
%configure --prefix=%{_prefix} \
%if !%{with_java}
           --disable-java \
%endif
%if !%{with_python}
           --disable-python \
%endif
%if !%{with_perl}
           --disable-perl \
%endif
%if %{with_php}
           --enable-php5=yes \
           --with-php5-config-dir=%{_sysconfdir}/php.d \
%else
           --enable-php5=no \
%endif
%if %{with_wsf}
           --enable-wsf \
           --with-sasl2=%{_prefix}/sasl2 \
%endif
#           --with-html-dir=%{_datadir}/gtk-doc/html

make %{?_smp_mflags} CFLAGS="%{optflags}"

%check
make check

%install
#install -m 755 -d %{buildroot}%{_datadir}/gtk-doc/html

make install exec_prefix=%{_prefix} DESTDIR=%{buildroot}
find %{buildroot} -type f -name '*.la' -exec rm -f {} \;
find %{buildroot} -type f -name '*.a' -exec rm -f {} \;

# Perl subpackage
%if %{with_perl}
find %{buildroot} \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;

find %{buildroot}/usr/lib*/perl5 -type f -print |
        sed "s@^%{buildroot}@@g" > %{name}-perl-filelist
if [ "$(cat %{name}-perl-filelist)X" = "X" ] ; then
    echo "ERROR: EMPTY FILE LIST"
    exit -1
fi
%endif

# PHP subpackage
%if %{with_php}
install -m 755 -d %{buildroot}%{_datadir}/php/%{name}
mv %{buildroot}%{_datadir}/php/lasso.php %{buildroot}%{_datadir}/php/%{name}
%endif

# Remove bogus doc files
rm -fr %{buildroot}%{_defaultdocdir}/%{name}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_libdir}/liblasso.so.*
%doc AUTHORS COPYING NEWS README

%files devel
%defattr(-,root,root)
%{_libdir}/liblasso.so
%{_libdir}/pkgconfig/lasso.pc
%{_includedir}/%{name}

%if %{with_perl}
%files perl -f %{name}-perl-filelist
%defattr(-,root,root)
%endif

%if %{with_java}
%files java
%defattr(-,root,root)
%{_libdir}/java/libjnilasso.so
%{_javadir}/lasso.jar
%endif

%if %{with_php}
%files php
%defattr(-,root,root)
%attr(755,root,root) %{_libdir}/php/modules/lasso.so
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/php.d/%{name}.ini
%attr(755,root,root) %dir %{_datadir}/php/%{name}
%attr(644,root,root) %{_datadir}/php/%{name}/lasso.php
%endif

%if %{with_python}
%files python
%defattr(-,root,root)
%{python_sitearch}/lasso.py*
%{python_sitearch}/_lasso.so
%endif
-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go To http://freeipa.org for more info on the project

Reply via email to