Blame SPECS/lasso.spec

39524d
%global with_java 0
39524d
%global with_php 0
39524d
%global with_perl 0
39524d
%global with_python 1
39524d
%global with_wsf 0
39524d
39524d
%if %{with_php}
39524d
%if "%{php_version}" < "5.6"
39524d
%global ini_name     %{name}.ini
39524d
%else
39524d
%global ini_name     40-%{name}.ini
39524d
%endif
39524d
%endif
39524d
39524d
Summary: Liberty Alliance Single Sign On
39524d
Name: lasso
2e862b
Version: 2.5.0
2e862b
Release: 1%{?dist}
39524d
License: GPLv2+
39524d
Group: System Environment/Libraries
39524d
Source: http://dev.entrouvert.org/lasso/lasso-%{version}.tar.gz
39524d
%if %{with_wsf}
39524d
BuildRequires: cyrus-sasl-devel
39524d
%endif
39524d
BuildRequires: gtk-doc, libtool-ltdl-devel
2e862b
BuildRequires: glib2-devel >= 2.42, swig
2e862b
Requires: glib2 >= 2.42
39524d
BuildRequires: libxml2-devel, xmlsec1-devel, openssl-devel, xmlsec1-openssl-devel
39524d
BuildRequires: libtool autoconf automake
2e862b
BuildRequires: python-six
39524d
Url: http://lasso.entrouvert.org/
39524d
39524d
%description
39524d
Lasso is a library that implements the Liberty Alliance Single Sign On
39524d
standards, including the SAML and SAML2 specifications. It allows to handle
39524d
the whole life-cycle of SAML based Federations, and provides bindings
39524d
for multiple languages.
39524d
39524d
%package devel
39524d
Summary: Lasso development headers and documentation
39524d
Group: Development/Libraries
39524d
Requires: %{name}%{?_isa} = %{version}-%{release}
39524d
39524d
%description devel
39524d
This package contains the header files, static libraries and development
39524d
documentation for Lasso.
39524d
39524d
%if %{with_perl}
39524d
%package perl
39524d
Summary: Liberty Alliance Single Sign On (lasso) Perl bindings
39524d
Group: Development/Libraries
39524d
BuildRequires: perl(ExtUtils::MakeMaker)
39524d
BuildRequires: perl(Test::More)
39524d
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
39524d
Requires: %{name}%{?_isa} = %{version}-%{release}
39524d
39524d
%description perl
39524d
Perl language bindings for the lasso (Liberty Alliance Single Sign On) library.
39524d
%endif
39524d
39524d
%if %{with_java}
39524d
%package java
39524d
Summary: Liberty Alliance Single Sign On (lasso) Java bindings
39524d
Group: Development/Libraries
39524d
BuildRequires: java-devel
39524d
BuildRequires: jpackage-utils
39524d
Requires: java-headless
39524d
Requires: jpackage-utils
39524d
Requires: %{name}%{?_isa} = %{version}-%{release}
39524d
39524d
%description java
39524d
Java language bindings for the lasso (Liberty Alliance Single Sign On) library.
39524d
%endif
39524d
39524d
%if %{with_php}
39524d
%package php
39524d
Summary: Liberty Alliance Single Sign On (lasso) PHP bindings
39524d
Group: Development/Libraries
39524d
BuildRequires: php-devel, expat-devel
39524d
BuildRequires: python2
39524d
Requires: %{name}%{?_isa} = %{version}-%{release}
39524d
Requires: php(zend-abi) = %{php_zend_api}
39524d
Requires: php(api) = %{php_core_api}
39524d
Provides: php-lasso = %{version}-%{release}
39524d
Provides: php-lasso%{?_isa} = %{version}-%{release}
39524d
39524d
%description php
39524d
PHP language bindings for the lasso (Liberty Alliance Single Sign On) library.
39524d
%endif
39524d
39524d
%if %{with_python}
39524d
%package python
39524d
Summary: Liberty Alliance Single Sign On (lasso) Python bindings
39524d
Group: Development/Libraries
39524d
BuildRequires: python2-devel
39524d
BuildRequires: python-lxml
39524d
Requires: python
39524d
Requires: %{name}%{?_isa} = %{version}-%{release}
39524d
39524d
%description python
39524d
Python language bindings for the lasso (Liberty Alliance Single Sign On)
39524d
library.
39524d
%endif
39524d
39524d
%prep
39524d
%setup -q -n %{name}-%{version}
39524d
39524d
%build
39524d
autoreconf -vif
39524d
%configure --prefix=%{_prefix} \
39524d
%if !%{with_java}
39524d
           --disable-java \
39524d
%endif
39524d
%if !%{with_python}
39524d
           --disable-python \
39524d
%endif
39524d
%if !%{with_perl}
39524d
           --disable-perl \
39524d
%endif
39524d
%if %{with_php}
39524d
           --enable-php5=yes \
39524d
           --with-php5-config-dir=%{php_inidir} \
39524d
%else
39524d
           --enable-php5=no \
39524d
%endif
39524d
%if %{with_wsf}
39524d
           --enable-wsf \
39524d
           --with-sasl2=%{_prefix}/sasl2 \
39524d
%endif
39524d
#           --with-html-dir=%{_datadir}/gtk-doc/html
39524d
39524d
make %{?_smp_mflags} CFLAGS="%{optflags}"
39524d
39524d
%check
39524d
make check
39524d
39524d
%install
39524d
#install -m 755 -d %{buildroot}%{_datadir}/gtk-doc/html
39524d
39524d
make install exec_prefix=%{_prefix} DESTDIR=%{buildroot}
39524d
find %{buildroot} -type f -name '*.la' -exec rm -f {} \;
39524d
find %{buildroot} -type f -name '*.a' -exec rm -f {} \;
39524d
39524d
# Perl subpackage
39524d
%if %{with_perl}
39524d
find %{buildroot} \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
39524d
39524d
find %{buildroot}/usr/lib*/perl5 -type f -print |
39524d
        sed "s@^%{buildroot}@@g" > %{name}-perl-filelist
39524d
if [ "$(cat %{name}-perl-filelist)X" = "X" ] ; then
39524d
    echo "ERROR: EMPTY FILE LIST"
39524d
    exit -1
39524d
fi
39524d
%endif
39524d
39524d
# PHP subpackage
39524d
%if %{with_php}
39524d
install -m 755 -d %{buildroot}%{_datadir}/php/%{name}
39524d
mv %{buildroot}%{_datadir}/php/lasso.php %{buildroot}%{_datadir}/php/%{name}
39524d
39524d
# rename the PHP config file when needed (PHP 5.6+)
39524d
if [ "%{name}.ini" != "%{ini_name}" ]; then
39524d
  mv %{buildroot}%{php_inidir}/%{name}.ini \
39524d
     %{buildroot}%{php_inidir}/%{ini_name}
39524d
fi
39524d
%endif
39524d
39524d
# Remove bogus doc files
39524d
rm -fr %{buildroot}%{_defaultdocdir}/%{name}
39524d
39524d
%post -p /sbin/ldconfig
39524d
39524d
%postun -p /sbin/ldconfig
39524d
39524d
%files
39524d
%defattr(-,root,root)
39524d
%{_libdir}/liblasso.so.*
39524d
%doc AUTHORS COPYING NEWS README
39524d
39524d
%files devel
39524d
%defattr(-,root,root)
39524d
%{_libdir}/liblasso.so
39524d
%{_libdir}/pkgconfig/lasso.pc
39524d
%{_includedir}/%{name}
39524d
39524d
%if %{with_perl}
39524d
%files perl -f %{name}-perl-filelist
39524d
%defattr(-,root,root)
39524d
%endif
39524d
39524d
%if %{with_java}
39524d
%files java
39524d
%defattr(-,root,root)
39524d
%{_libdir}/java/libjnilasso.so
39524d
%{_javadir}/lasso.jar
39524d
%endif
39524d
39524d
%if %{with_php}
39524d
%files php
39524d
%defattr(-,root,root)
39524d
%attr(755,root,root) %{php_extdir}/lasso.so
39524d
%config(noreplace) %attr(644,root,root) %{php_inidir}/%{ini_name}
39524d
%attr(755,root,root) %dir %{_datadir}/php/%{name}
39524d
%attr(644,root,root) %{_datadir}/php/%{name}/lasso.php
39524d
%endif
39524d
39524d
%if %{with_python}
39524d
%files python
39524d
%defattr(-,root,root)
39524d
%{python_sitearch}/lasso.py*
39524d
%{python_sitearch}/_lasso.so
39524d
%endif
39524d
39524d
%changelog
2e862b
* Thu Sep  3 2015 John Dennis <jdennis@redhat.com> - 2.5.0-1
2e862b
- Rebase to upstream, now includes our ECP patches, no need to patch any more
2e862b
  Resolves: #1205342
2e862b
2e862b
* Tue Sep  1 2015 John Dennis <jdennis@redhat.com> - 2.4.1-8
2e862b
- Add explicit minimum dependency on glib2 2.42,
2e862b
  for some reason RPM is not automatically detecting the dependency
2e862b
  Resolves: #1254989
2e862b
2e862b
* Wed Aug 19 2015 John Dennis <jdennis@redhat.com> - 2.4.1-7
2e862b
- Add ECP support, brings Lasso up to current upstream tip + revised ECP patches
2e862b
  Resolves: #1205342
2e862b
2e862b
* Mon Jun 22 2015 John Dennis <jdennis@redhat.com> - 2.4.1-6
2e862b
- Add ECP support, brings Lasso up to current upstream tip + ECP patches
2e862b
  Resolves: #1205342
2e862b
39524d
* Fri Dec  5 2014 Simo Sorce <simo@redhat.com> - 2.4.1-5
39524d
- Add support for ADFS interoperability
39524d
- Resolves: #1160803
39524d
39524d
* Thu Sep 11 2014 Simo Sorce <simo@redhat.com> - 2.4.1-4
39524d
- Add missing covscan related patches previously sent upstream
39524d
- Related: #1120360
39524d
39524d
* Thu Sep 11 2014 Simo Sorce <simo@redhat.com> - 2.4.1-3
39524d
- ppc4le fails to build without autoreconf being run first
39524d
- Resolves: #1140419
39524d
39524d
* Fri Sep  5 2014 Simo Sorce <simo@redhat.com> - 2.4.1-2
39524d
- Import packge in RHEL7
39524d
- Resolves: #1120360
39524d
39524d
* Thu Aug 28 2014 Simo Sorce <simo@redhat.com> - 2.4.1-1
39524d
- New upstream relase 2.4.1
39524d
- Drop patches as they have all been integrated upstream
39524d
39524d
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-5
39524d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
39524d
39524d
* Fri Jun 20 2014 Remi Collet <rcollet@redhat.com> - 2.4.0-4
39524d
- rebuild for https://fedoraproject.org/wiki/Changes/Php56
39524d
- add numerical prefix to extension configuration file
39524d
- drop unneeded dependency on pecl
39524d
- add provides php-lasso
39524d
39524d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-3
39524d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
39524d
39524d
* Fri Apr 25 2014 Simo Sorce <simo@redhat.com> - 2.4.0-2
39524d
- Fixes for arches where pointers and integers do not have the same size
39524d
  (ppc64, s390, etc..)
39524d
39524d
* Mon Apr 14 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.4.0-1
39524d
- Use OpenJDK instead of GCJ for java bindings
39524d
39524d
* Sat Jan 11 2014 Simo Sorce <simo@redhat.com> 2.4.0-0
39524d
- Update to final 2.4.0 version
39524d
- Drop all patches, they are now included in 2.4.0
39524d
- Change Source URI
39524d
39524d
* Mon Dec  9 2013 Simo Sorce <simo@redhat.com> 2.3.6-0.20131125.5
39524d
- Add patches to fix rpmlint license issues
39524d
- Add upstream patches to fix some build issues
39524d
39524d
* Thu Dec  5 2013 Simo Sorce <simo@redhat.com> 2.3.6-0.20131125.4
39524d
- Add patch to support automake-1.14 for rawhide
39524d
39524d
* Mon Nov 25 2013 Simo Sorce <simo@redhat.com> 2.3.6-0.20131125.3
39524d
- Initial packaging
39524d
- Based on the spec file by Jean-Marc Liger <jmliger@siris.sorbonne.fr>
39524d
- Code is updated to latest master via a jumbo patch while waiting for
39524d
  official upstream release.
39524d
- Jumbo patch includes also additional patches sent to upstream list)
39524d
  to build on Fedora 20
39524d
- Perl bindings are disabled as they fail to build
39524d
- Disable doc building as it doesn't ork correctly for now