Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:csbuild:DBA
dba-xmlsec-1225
dba-xmlsec-1225.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dba-xmlsec-1225.spec of Package dba-xmlsec-1225
%define real_name xmlsec %define prefix /DBA/%{real_name}/%{version} %define version 1.2.25 %define vers 1225 %define maketest 0 %define dbassl 1 %define dbaxml 0 %define xmlsrc 1 %define python 0 Name: dba-%{real_name}-%{vers} Summary: XML Security Library version 1.2.25 Version: %{version} Release: 1 Group: System Environment/Libraries License: MIT Source0: http://www.aleksey.com/xmlsec/download/xmlsec1-%{version}.tar.gz Source1: http://xmlsoft.org/sources/libxml2-2.9.4.tar.gz Source2: http://xmlsoft.org/sources/libxslt-1.1.29.tar.gz Source3: xmlsec-rpmlintrc Source4: filter-provides-xmlsec.sh Source5: filter-requires-xmlsec.sh BuildRoot: %{_tmppath}/%{real_name}-%{version}-build %define _use_internal_dependency_generator 0 %define __find_provides %{SOURCE4} %define __find_requires %{SOURCE5} #!BuildIgnore: dba-openssl-098o dba-openssl-098r dba-openssl-098x dba-openssl-101c dba-openssl-101e #!BuildIgnore: nspr dba-geoip-148 dba-geoip-160 BuildRequires: autoconf automake %if 0%{?rhel_version} == 406 || 0%{?rhel_version} == 505 || 0%{?centos_version} == 505 %define dbaxml 0 %define python 1 %endif %if 0%{?rhel_version} == 600 || 0%{?centos_version} == 600 %define python 1 %endif %if 0%{?suse_version} BuildRequires: libtool %else BuildRequires: libtool-ltdl-devel %endif # BuildRequires: libxml2-devel # BuildRequires: libxslt-devel BuildRequires: libgcrypt-devel %if %{python} BuildRequires: python-devel python %endif # BuildRequires: nspr-devel >= 4.10.7 %if %{dbassl} %if 0%{?centos_version} == 600 BuildRequires: dba-openssl-102k-static %define ssldir /DBA/openssl/1.0.2k %else BuildRequires: dba-openssl-102l-static %define ssldir /DBA/openssl/1.0.2l %endif %else BuildRequires: openssl-devel %endif %if %{dbaxml} BuildRequires: dba-libxml2-292-static # BuildRequires: dba-libxml2-290 BuildRequires: libxml2-devel %define xmlpath /DBA/libxml2/2.9.2 %else BuildRequires: libxml2-devel %endif %if 0%{?suse_version} >= 1100 BuildRequires: -post-build-checks %endif %description XML Security Library is a C library based on LibXML2 and OpenSSL. The library was created with a goal to support major XML security standards "XML Digital Signature" and "XML Encryption". %prep %setup -q -n xmlsec1-%{version} -a 1 -a 2 %{__chmod} +x %{SOURCE4} %{SOURCE5} %build export CFLAGS="%{optflags}" %if %{dbassl} export CFLAGS="$CFLAGS -I%{ssldir}/include" export LDFLAGS="$LDFLAGS -L/%{ssldir}/lib" %endif %if %{dbaxml} export CFLAGS="$CFLAGS -I%{xmlpath}/include" export LDFLAGS="$LDFLAGS -L/%{xmlpath}/lib" %endif %if %{xmlsrc} pushd ./libxml2-2.9.4 ./configure %{__make} popd pushd ./libxslt-1.1.29 ./configure %{__make} popd %endif ./configure \ %if %{xmlsrc} --with-libxml-src=./libxml2-2.9.4 \ --with-libxslt-src=./libxslt-1.1.29 \ %endif %if %{dbaxml} --with-libxml=%{xmlpath} \ %endif --with-openssl=%{ssldir} \ --prefix=%{prefix} # sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool # sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool %{__make} %{?_smp_mflags} %install # prevent rpath problem on suse export NO_BRP_CHECK_RPATH=true %{__make} install DESTDIR=%{buildroot} PREFIX="%{prefix}" %if %{xmlsrc} %{__install} -m 0755 libxslt*/lib*/.libs/lib*.so %{buildroot}%{prefix}/lib/ %{__install} -m 0755 libxml*/.libs/lib*.so %{buildroot}%{prefix}/lib/ %endif find %{buildroot}/%{prefix}/ -name '*.la' -exec rm -f {} ';' %check %if %maketest %{__make} check %{?_smp_mflags} V=1 ||: %endif %files %defattr(-,root,root) %dir %{prefix} %{prefix}/* %changelog * Mon Sep 18 2017 Holger Manthey <holger.manthey@bertelsmann.de> - initial package
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor