diff options
Diffstat (limited to 'lasso.spec')
-rw-r--r-- | lasso.spec | 51 |
1 files changed, 21 insertions, 30 deletions
@@ -1,12 +1,11 @@ Name: lasso Version: 2.8.2 -Release: 2 +Release: 3 Summary: Liberty Alliance Single Sign On -License: GPLv2+ +License: GPL-2.0-or-later URL: http://lasso.entrouvert.org/ Source: http://dev.entrouvert.org/lasso/lasso-%{version}.tar.gz -Patch0001: Fix-build-failure-due-to-automake-upgrade.patch -Patch0002: lasso-perl-bindings-ldflags.patch +Patch6001: lasso-HEAD.patch Requires: xmlsec1 >= 1.2.25-4 BuildRequires: autoconf automake check-devel glib2-devel gtk-doc libtool @@ -15,7 +14,7 @@ BuildRequires: xmlsec1-openssl-devel >= 1.2.25-4 zlib-devel BuildRequires: perl(ExtUtils::MakeMaker) perl(strict) perl(Error) BuildRequires: perl-devel perl-generators perl(XSLoader) perl(warnings) BuildRequires: perl(Test::More) python3 python3-devel -BuildRequires: python3-lxml python3-six libtool-ltdl-devel +BuildRequires: python3-lxml libtool-ltdl-devel Obsoletes: java-lasso < %{version}-%{release} @@ -33,7 +32,6 @@ and static libraries for lasso. %package -n perl-lasso Summary: Liberty Alliance Single Sign On (lasso) Perl bindings -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: lasso = %{version}-%{release} %description -n perl-lasso The package provide Perl language bindings for the lasso @@ -48,11 +46,7 @@ Requires: python3 lasso = %{version}-%{release} The package provide Python language bindings for the lasso (Liberty Alliance Single Sign On)library. -%package help -Summary: Help document for the lasso packages - -%description help -Help document for the lasso packages +%package_help %prep %autosetup -n lasso-%{version} -p1 @@ -61,45 +55,42 @@ sed -i -E -e '/^#![[:blank:]]*(\/usr\/bin\/env[[:blank:]]+python[^3]?\>) \ |(/usr/bin/env[[:blank:]]+python[^3]?)' *` %build -./autogen.sh +autoreconf -fi %configure --enable-php5=no --with-python=%{__python3} -%make_build CFLAGS="%{optflags}" +%make_build %check -make check CK_TIMEOUT_MULTIPLIER=10 +%make_build check CK_TIMEOUT_MULTIPLIER=10 %install -%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 {} \; -find %{buildroot} \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; -find %{buildroot}/usr/lib*/perl5 -type f -print | - sed "s@^%{buildroot}@@g" > lasso-perl-filelist -if [ "$(cat lasso-perl-filelist)X" = "X" ] ; then - echo "ERROR: EMPTY FILE LIST" - exit -1 -fi -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%make_install +%delete_la_and_a + +rm -fr %{buildroot}%{_datadir}/doc %files %license COPYING %{_libdir}/liblasso.so.3* -%exclude %{_defaultdocdir}/lasso %files devel %{_includedir}/lasso -%{_libdir}/{liblasso.so,pkgconfig/lasso.pc} +%{_libdir}/liblasso.so +%{_libdir}/pkgconfig/lasso.pc -%files -n perl-lasso -f lasso-perl-filelist +%files -n perl-lasso +%{perl_vendorarch}/Lasso.pm +%{perl_vendorarch}/auto/Lasso %files -n python3-lasso -%{python3_sitearch}/{lasso.py*,_lasso.so,__pycache__/*} +%{python3_sitearch}/* %files help %doc AUTHORS NEWS README %changelog +* Fri Oct 25 2024 Funda Wang <fundawang@yeah.net> - 2.8.2-3 +- fix build with xmlsec 1.3 and libxml 2.12 + * Mon Jul 22 2024 yuanlipeng <yuanlipeng2@huawei.com> - 2.8.2-2 - Fix build failure due to automake upgrade |