2013-12-05 15:16:56 +00:00
|
|
|
%global with_java 1
|
|
|
|
%global with_php 1
|
|
|
|
%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
|
2014-01-11 23:45:26 +00:00
|
|
|
Version: 2.4.0
|
2014-04-14 13:44:26 +00:00
|
|
|
Release: 1%{?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
|
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
|
|
|
|
Url: http://lasso.entrouvert.org/
|
|
|
|
|
2014-04-14 18:20:56 +00:00
|
|
|
Patch01: 0001-Fix-java-version-detection.patch
|
|
|
|
|
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)
|
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(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}
|
2014-04-14 18:20:56 +00:00
|
|
|
%patch01 -p1 -b .java_version
|
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 \
|
|
|
|
--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 {} \;
|
|
|
|
|
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}
|
|
|
|
%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
|
|
|
|
|
|
|
|
%changelog
|
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
|