3 # - fix tests (some linkage errors)
7 %bcond_with tests # build tests
8 %bcond_without java # Java bindings
9 %bcond_without php # PHP bindings
10 %bcond_without perl # Perl bindings
11 %bcond_without python # Python 2.x bindings
13 Summary: Liberty Alliance Single Sign On
14 Summary(pl.UTF-8): Implementacja Liberty Alliance Single Sign On
20 Source0: http://dev.entrouvert.org/lasso/%{name}-%{version}.tar.gz
21 # Source0-md5: 3d04aaff37c816aa16f2d1bcc2639f27
22 Patch1: 0001-Fix-java-version-detection.patch
23 Patch2: 0001-Fix-generators-for-parsing-of-integer-values.patch
24 Patch3: 0002-xml-xml.c-fix-liberal-use-of-casting-for-the-SNIPPET.patch
25 URL: http://lasso.entrouvert.org/
26 %{?with_wsf:BuildRequires: cyrus-sasl-devel}
27 BuildRequires: glib2-devel
28 BuildRequires: gtk-doc
29 BuildRequires: libtool
30 BuildRequires: libxml2-devel
31 BuildRequires: openssl-devel
32 BuildRequires: pkgconfig
33 BuildRequires: rpmbuild(macros) >= 1.315
34 BuildRequires: xmlsec1-devel
35 BuildRequires: xmlsec1-openssl-devel
37 BuildRequires: expat-devel
38 BuildRequires: php-devel
42 BuildRequires: perl(ExtUtils::MakeMaker)
43 BuildRequires: perl(Test::More)
47 BuildRequires: rpm-javaprov
50 BuildRequires: python-devel
51 BuildRequires: python-lxml
52 BuildRequires: rpm-pythonprov
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57 Lasso is a library that implements the Liberty Alliance Single Sign On
58 standards, including the SAML and SAML2 specifications. It allows to
59 handle the whole life-cycle of SAML based Federations, and provides
60 bindings for multiple languages.
62 %description -l pl.UTF-8
63 Lasso to biblioteka implementująca standardy Liberty Alliance Single
64 Sign On, w tym specyfikacje SAML i SAML2. Pozwala obsłużyć cały cykl
65 życia "Federacji" opartych na SAML, zapewnia wiązania dla wielu
69 Summary: Lasso development headers
70 Summary(pl.UTF-8): Pliki nagłówkowe Lasso
71 Group: Development/Libraries
72 Requires: %{name} = %{version}-%{release}
75 This package contains the header files for Lasso.
77 %description devel -l pl.UTF-8
78 Ten pakiet zawiera pliki nagłówkowe Lasso.
80 %package -n perl-%{name}
81 Summary: Liberty Alliance Single Sign On (lasso) Perl bindings
82 Summary(pl.UTF-8): Wiązania Perla do Liberty Alliance Single Sign On (lasso)
83 Group: Development/Languages/Perl
84 Requires: %{name} = %{version}-%{release}
86 %description -n perl-%{name}
87 Perl language bindings for the lasso (Liberty Alliance Single Sign On)
90 %description -n perl-%{name} -l pl.UTF-8
91 Wiązania Perla do biblioteki lasso (Liberty Alliance Single Sign On).
93 %package -n java-%{name}
94 Summary: Liberty Alliance Single Sign On (lasso) Java bindings
95 Summary(pl.UTF-8): Wiązania Javy do Liberty Alliance Single Sign On (lasso)
97 Requires: %{name} = %{version}-%{release}
98 Requires: jpackage-utils
101 %description -n java-%{name}
102 Java language bindings for the lasso (Liberty Alliance Single Sign On)
105 %description -n java-%{name} -l pl.UTF-8
106 Wiązania Javy do biblioteki lasso (Liberty Alliance Single Sign On).
108 %package -n php-%{name}
109 Summary: Liberty Alliance Single Sign On (lasso) PHP bindings
110 Summary(pl.UTF-8): Wiązania PHP do Liberty Alliance Single Sign On (lasso)
111 Group: Development/Languages/PHP
112 Requires: %{name} = %{version}-%{release}
114 %description -n php-%{name}
115 PHP language bindings for the lasso (Liberty Alliance Single Sign On)
118 %description -n php-%{name} -l pl.UTF-8
119 Wiązania PHP do biblioteki lasso (Liberty Alliance Single Sign On).
121 %package -n python-%{name}
122 Summary: Liberty Alliance Single Sign On (lasso) Python bindings
123 Summary(pl.UTF-8): Wiązania Pythona do Liberty Alliance Single Sign On (lasso)
124 Group: Libraries/Python
125 Requires: %{name} = %{version}-%{release}
127 %description -n python-%{name}
128 Python language bindings for the lasso (Liberty Alliance Single Sign
131 %description -n python-%{name} -l pl.UTF-8
132 Wiązania Pythona do biblioteki lasso (Liberty Alliance Single Sign
142 s/OPTIMIZE="-g"/CC="%{__cc}" OPTIMIZE="%{rpmcflags}" INSTALLDIRS=vendor/
143 ' bindings/perl/Makefile.am
153 --disable-silent-rules \
154 %{!?with_tests:--disable-tests} \
155 %{!?with_java:--disable-java} \
156 %{!?with_python:--disable-python} \
157 %{!?with_perl:--disable-perl} \
160 --with-php5-config-dir=%{php_sysconfdir}/conf.d \
166 --with-sasl2=%{_prefix}/sasl2 \
176 rm -rf $RPM_BUILD_ROOT
178 DESTDIR=$RPM_BUILD_ROOT
180 find $RPM_BUILD_ROOT -type f -name '*.la' | xargs rm -v
184 rm $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
185 rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Lasso/.packlist
186 rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Lasso/Lasso.bs
190 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
191 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
195 # Remove bogus doc files
196 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
199 rm -rf $RPM_BUILD_ROOT
201 %post -p /sbin/ldconfig
202 %postun -p /sbin/ldconfig
205 %defattr(644,root,root,755)
206 %doc AUTHORS COPYING NEWS README
207 %attr(755,root,root) %{_libdir}/liblasso.so.*.*.*
208 %attr(755,root,root) %ghost %{_libdir}/liblasso.so.3
211 %defattr(644,root,root,755)
212 %attr(755,root,root) %{_libdir}/liblasso.so
213 %{_pkgconfigdir}/lasso.pc
217 %files -n perl-%{name}
218 %defattr(644,root,root,755)
219 %{perl_vendorarch}/Lasso.pm
220 %dir %{perl_vendorarch}/auto/Lasso
221 %attr(755,root,root) %{perl_vendorarch}/auto/Lasso/Lasso.so
225 %files -n java-%{name}
226 %defattr(644,root,root,755)
227 %attr(755,root,root) %{_jnidir}/libjnilasso.so
228 %{_javadir}/lasso.jar
232 %files -n php-%{name}
233 %defattr(644,root,root,755)
234 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/lasso.ini
235 %attr(755,root,root) %{php_extensiondir}/lasso.so
236 %{php_data_dir}/lasso.php
240 %files -n python-%{name}
241 %defattr(644,root,root,755)
242 %{py_sitedir}/lasso.py[co]
243 %attr(755,root,root) %{py_sitedir}/_lasso.so