2013-12-05 15:16:56 +00:00
|
|
|
%global with_java 1
|
2016-06-30 18:24:52 +00:00
|
|
|
%global with_php 0
|
2015-03-23 21:49:33 +00:00
|
|
|
%global with_perl 0
|
2013-12-05 15:16:56 +00:00
|
|
|
%global with_python 1
|
|
|
|
%global with_wsf 0
|
|
|
|
|
|
|
|
%if %{with_php}
|
2014-06-20 10:59:25 +00:00
|
|
|
%if "%{php_version}" < "5.6"
|
|
|
|
%global ini_name %{name}.ini
|
|
|
|
%else
|
|
|
|
%global ini_name 40-%{name}.ini
|
|
|
|
%endif
|
2013-12-05 15:16:56 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
Summary: Liberty Alliance Single Sign On
|
|
|
|
Name: lasso
|
2016-02-24 15:15:32 +00:00
|
|
|
Version: 2.5.1
|
2017-08-19 13:38:31 +00:00
|
|
|
Release: 8%{?dist}
|
2013-12-05 15:16:56 +00:00
|
|
|
License: GPLv2+
|
|
|
|
Group: System Environment/Libraries
|
2014-01-14 14:37:11 +00:00
|
|
|
Source: http://dev.entrouvert.org/lasso/lasso-%{version}.tar.gz
|
2016-02-24 15:15:32 +00:00
|
|
|
|
|
|
|
patch1: java_binding_lasso_log.patch
|
2016-06-15 19:39:01 +00:00
|
|
|
patch2: cflags.patch
|
2016-06-17 16:34:23 +00:00
|
|
|
patch3: validate_idp_list_test.patch
|
2016-02-24 15:15:32 +00:00
|
|
|
|
2013-12-05 15:16:56 +00:00
|
|
|
%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
|
2016-06-15 19:39:01 +00:00
|
|
|
BuildRequires: zlib-devel, check-devel
|
|
|
|
BuildRequires: libtool autoconf automake
|
2015-09-14 18:26:53 +00:00
|
|
|
BuildRequires: python-six
|
2013-12-05 15:16:56 +00:00
|
|
|
Url: http://lasso.entrouvert.org/
|
|
|
|
|
2016-06-15 19:39:01 +00:00
|
|
|
|
2013-12-05 15:16:56 +00:00
|
|
|
%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)
|
2013-12-09 14:42:53 +00:00
|
|
|
BuildRequires: perl(Test::More)
|
2015-01-26 18:20:13 +00:00
|
|
|
BuildRequires: perl(Error)
|
2013-12-05 15:16:56 +00:00
|
|
|
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
|
2014-04-14 13:44:26 +00:00
|
|
|
BuildRequires: java-devel
|
|
|
|
BuildRequires: jpackage-utils
|
2014-04-14 13:48:28 +00:00
|
|
|
Requires: java-headless
|
2014-04-14 13:44:26 +00:00
|
|
|
Requires: jpackage-utils
|
2013-12-05 15:16:56 +00:00
|
|
|
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: php(zend-abi) = %{php_zend_api}
|
|
|
|
Requires: php(api) = %{php_core_api}
|
2014-06-20 10:59:25 +00:00
|
|
|
Provides: php-lasso = %{version}-%{release}
|
|
|
|
Provides: php-lasso%{?_isa} = %{version}-%{release}
|
2013-12-05 15:16:56 +00:00
|
|
|
|
|
|
|
%description php
|
|
|
|
PHP language bindings for the lasso (Liberty Alliance Single Sign On) library.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with_python}
|
2017-08-19 13:38:31 +00:00
|
|
|
%package -n python2-lasso
|
|
|
|
%{?python_provide:%python_provide python2-lasso}
|
|
|
|
# Remove before F30
|
|
|
|
Provides: %{name}-python%{?_isa} = %{version}-%{release}
|
|
|
|
Obsoletes: %{name}-python < %{version}-%{release}
|
2013-12-05 15:16:56 +00:00
|
|
|
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}
|
|
|
|
|
2017-08-19 13:38:31 +00:00
|
|
|
%description -n python2-lasso
|
2013-12-05 15:16:56 +00:00
|
|
|
Python language bindings for the lasso (Liberty Alliance Single Sign On)
|
|
|
|
library.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
2016-06-15 19:39:01 +00:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2016-06-17 16:34:23 +00:00
|
|
|
%patch3 -p1
|
2013-12-05 15:16:56 +00:00
|
|
|
|
|
|
|
%build
|
2013-12-05 16:00:37 +00:00
|
|
|
./autogen.sh
|
2013-12-05 15:16:56 +00:00
|
|
|
%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 \
|
2014-06-20 10:59:25 +00:00
|
|
|
--with-php5-config-dir=%{php_inidir} \
|
2013-12-05 15:16:56 +00:00
|
|
|
%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
|
2015-01-26 18:20:13 +00:00
|
|
|
%if %{with_perl}
|
|
|
|
# This is so the perl test can find the built, but not yet installed library
|
|
|
|
export LD_LIBRARY_PATH=%{_builddir}/%{buildsubdir}/lasso/.libs
|
|
|
|
%endif
|
2013-12-05 15:16:56 +00:00
|
|
|
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 {} \;
|
|
|
|
|
2013-12-09 14:42:53 +00:00
|
|
|
find %{buildroot}/usr/lib*/perl5 -type f -print |
|
|
|
|
sed "s@^%{buildroot}@@g" > %{name}-perl-filelist
|
2013-12-05 15:16:56 +00:00
|
|
|
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}
|
2014-06-20 10:59:25 +00:00
|
|
|
|
|
|
|
# rename the PHP config file when needed (PHP 5.6+)
|
|
|
|
if [ "%{name}.ini" != "%{ini_name}" ]; then
|
|
|
|
mv %{buildroot}%{php_inidir}/%{name}.ini \
|
|
|
|
%{buildroot}%{php_inidir}/%{ini_name}
|
|
|
|
fi
|
2013-12-05 15:16:56 +00:00
|
|
|
%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)
|
2014-06-20 10:59:25 +00:00
|
|
|
%attr(755,root,root) %{php_extdir}/lasso.so
|
|
|
|
%config(noreplace) %attr(644,root,root) %{php_inidir}/%{ini_name}
|
2013-12-05 15:16:56 +00:00
|
|
|
%attr(755,root,root) %dir %{_datadir}/php/%{name}
|
|
|
|
%attr(644,root,root) %{_datadir}/php/%{name}/lasso.php
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with_python}
|
2017-08-19 13:38:31 +00:00
|
|
|
%files -n python2-lasso
|
2013-12-05 15:16:56 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{python_sitearch}/lasso.py*
|
|
|
|
%{python_sitearch}/_lasso.so
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|
2017-08-19 13:38:31 +00:00
|
|
|
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.5.1-8
|
|
|
|
- Python 2 binary package renamed to python2-lasso
|
|
|
|
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
|
|
|
2017-08-03 00:59:13 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 18:15:39 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-10 18:08:06 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-07-19 07:34:59 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.1-4
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-06-30 14:59:11 +00:00
|
|
|
* Thu Jun 30 2016 John Dennis <jdennis@redhat.com> - 2.5.1-3
|
2016-06-30 18:24:52 +00:00
|
|
|
- disbable PHP binding because PHP-7 is now the default and lasso
|
|
|
|
only knows how to build with PHP-5
|
2016-06-30 14:59:11 +00:00
|
|
|
|
2016-06-15 19:39:01 +00:00
|
|
|
* Wed Jun 15 2016 John Dennis <jdennis@redhat.com> - 2.5.1-2
|
|
|
|
- fix CFLAGS override in configure
|
|
|
|
|
2016-02-24 15:15:32 +00:00
|
|
|
* Mon Feb 22 2016 John Dennis <jdennis@redhat.com> - 2.5.1-1
|
|
|
|
- Upgrade to upstream 2.5.1 release
|
|
|
|
See Changelog for details, mostly bugs fixes,
|
|
|
|
most signficant is proper support of SHA-2
|
|
|
|
Resolves: #1295472
|
|
|
|
Resolves: #1303573
|
|
|
|
- Add java_binding_lasso_log.patch to fix "make check" failure during rpmbuild
|
|
|
|
upstream commit d8e3ae8
|
|
|
|
|
2016-02-04 02:39:22 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-09-14 18:13:41 +00:00
|
|
|
* Mon Sep 14 2015 John Dennis <jdennis@redhat.com> - 2.5.0-1
|
|
|
|
- Upgrade to new upstream 2.5.0 release
|
|
|
|
Includes ECP support
|
|
|
|
|
2015-06-17 13:55:56 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-03-23 21:49:33 +00:00
|
|
|
* Mon Mar 23 2015 Rob Crittenden <rcritten@redhat.com> - 2.4.1-3
|
|
|
|
- Add BuildRequires on libtool
|
|
|
|
- Add -fPIC to LDFLAGS
|
|
|
|
- Disable perl bindings, it fails to build on x86.
|
|
|
|
|
2015-01-23 17:09:09 +00:00
|
|
|
* Fri Jan 23 2015 Simo Sorce <simo@redhat.com> - 2.4.1-2
|
|
|
|
- Enable perl bindings
|
2015-01-23 18:32:15 +00:00
|
|
|
- Also add support for building with automake 1.15
|
2015-01-26 18:20:13 +00:00
|
|
|
- Fix build issues on rawhide due to missing build dep on perl(Error)
|
2015-01-23 17:09:09 +00:00
|
|
|
|
2014-09-05 16:00:58 +00:00
|
|
|
* Thu Aug 28 2014 Simo Sorce <simo@redhat.com> - 2.4.1-1
|
2014-08-28 16:19:10 +00:00
|
|
|
- New upstream relase 2.4.1
|
|
|
|
- Drop patches as they have all been integrated upstream
|
|
|
|
|
2014-08-17 01:31:27 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-20 11:00:21 +00:00
|
|
|
* Fri Jun 20 2014 Remi Collet <rcollet@redhat.com> - 2.4.0-4
|
2014-06-20 10:59:25 +00:00
|
|
|
- rebuild for https://fedoraproject.org/wiki/Changes/Php56
|
|
|
|
- add numerical prefix to extension configuration file
|
|
|
|
- drop unneeded dependency on pecl
|
|
|
|
- add provides php-lasso
|
|
|
|
|
2014-06-07 01:57:35 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-04-14 18:20:56 +00:00
|
|
|
* Fri Apr 25 2014 Simo Sorce <simo@redhat.com> - 2.4.0-2
|
|
|
|
- Fixes for arches where pointers and integers do not have the same size
|
|
|
|
(ppc64, s390, etc..)
|
|
|
|
|
2014-04-14 13:44:26 +00:00
|
|
|
* Mon Apr 14 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.4.0-1
|
|
|
|
- Use OpenJDK instead of GCJ for java bindings
|
|
|
|
|
2014-01-11 23:45:26 +00:00
|
|
|
* Sat Jan 11 2014 Simo Sorce <simo@redhat.com> 2.4.0-0
|
|
|
|
- Update to final 2.4.0 version
|
|
|
|
- Drop all patches, they are now included in 2.4.0
|
|
|
|
- Change Source URI
|
|
|
|
|
2013-12-09 14:42:53 +00:00
|
|
|
* Mon Dec 9 2013 Simo Sorce <simo@redhat.com> 2.3.6-0.20131125.5
|
|
|
|
- Add patches to fix rpmlint license issues
|
|
|
|
- Add upstream patches to fix some build issues
|
|
|
|
|
2013-12-05 15:21:04 +00:00
|
|
|
* Thu Dec 5 2013 Simo Sorce <simo@redhat.com> 2.3.6-0.20131125.4
|
|
|
|
- Add patch to support automake-1.14 for rawhide
|
|
|
|
|
2013-12-05 15:16:56 +00:00
|
|
|
* Mon Nov 25 2013 Simo Sorce <simo@redhat.com> 2.3.6-0.20131125.3
|
|
|
|
- Initial packaging
|
|
|
|
- Based on the spec file by Jean-Marc Liger <jmliger@siris.sorbonne.fr>
|
|
|
|
- Code is updated to latest master via a jumbo patch while waiting for
|
|
|
|
official upstream release.
|
|
|
|
- Jumbo patch includes also additional patches sent to upstream list)
|
|
|
|
to build on Fedora 20
|
|
|
|
- Perl bindings are disabled as they fail to build
|
|
|
|
- Disable doc building as it doesn't ork correctly for now
|