Summary: SAML 2.0 profile of XACML v2.0 library Name: xacml Version: 1.5.0 Release: 2%{?dist} License: ASL 2.0 Group: System Environment/Libraries URL: http://wiki.nikhef.nl/grid/Site_Access_Control Source: http://software.nikhef.nl/security/%{name}/%{name}-%{version}.tar.gz # BuildRoot is still required for EPEL5 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: gsoap-devel, pkgconfig Provides: saml2-xacml2-c-lib = %{version}-%{release} # On 64-bit platform we also need to provide the arch dependent provide %if "x%{__isa}" != "x" Provides: saml2-xacml2-c-lib%{?_isa} = %{version}-%{release} %endif Obsoletes: saml2-xacml2-c-lib < 1.1.0-1 %description This API provides a basic implementation of the SAML 2.0 profile of XACML v2.0, including support for obligations in XACML response messages. It aids in writing XACML clients and servers. %package devel Summary: SAML 2.0 profile of XACML v2.0 development files Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} # the pkgconfig requirement is only necessary for EPEL5 and below; # it's automatic for Fedora and EPEL6. %if %{?rhel}%{!?rhel:6} <= 5 Requires: pkgconfig %endif Provides: saml2-xacml2-c-lib-devel = %{version}-%{release} # On 64-bit platform we also need to provide the arch dependent provide %if "x%{__isa}" != "x" Provides: saml2-xacml2-c-lib-devel%{?_isa} = %{version}-%{release} %endif Obsoletes: saml2-xacml2-c-lib-devel < 1.1.0-1 %description devel This API provides a basic implementation of the SAML 2.0 profile of XACML v2.0, including support for obligations in XACML response messages. It aids in writing XACML clients and servers. This package contains the development libraries and header files. %prep %setup -q %build %configure --disable-static # The following lines were suggested by # https://fedoraproject.org/wiki/Packaging/Guidelines to prevent any # RPATHs creeping in, and by # https://fedoraproject.org/wiki/Common_Rpmlint_issues#unused-direct-shlib-dependency # to prevent unnecessary linking %define fixlibtool() 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\ sed -i -e 's! -shared ! -Wl,--as-needed\\0!g' libtool %fixlibtool make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' # Retain the clean section for EPEL5 %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %{_libdir}/libxacml.so.* %doc AUTHORS LICENSE NEWS %files devel %{_includedir}/xacml.h %{_includedir}/xacml_client.h %{_includedir}/xacml_datatypes.h %{_includedir}/xacml_server.h %{_libdir}/libxacml.so %{_libdir}/pkgconfig/xacml.pc %changelog * Thu Sep 18 2014 Dennis van Dok 1.5.0-2 - Remove the obsolete CXXFLAGS override * Thu Aug 21 2014 Mischa Salle 1.5.0-1 - cleanup build requires - update filelist - updated version * Thu Mar 27 2014 Mischa Salle 1.4.2-1 - updated version * Thu Mar 13 2014 Mischa Salle 1.4.1-1 - add AUTHORS and LICENSE to doc - remove the excludes since they are no longer build/installed - updated version * Sun Feb 16 2014 Mischa Salle 1.4.0-2 - fix macro expansion for pkgconfig to include only rhel not fedora * Wed Feb 5 2014 Mischa Salle 1.4.0-1 - make Requires arch-specific - prevent unnecessary linking - specify BuildRoot (and clean section) for EPEL5 - add requirement on pkgconfig for EPEL5 only - remove defattr - updated version * Fri Oct 4 2013 Mischa Salle 1.3.0-1 - updated version * Wed Sep 11 2013 Mischa Salle 1.2.0-1 - removed CPPFLAGS for THREADING - updated version * Fri Aug 30 2013 Mischa Salle 1.1.5-1 - remove pkg-config line added in 1.1.2-5, it is now included in the source - updated version * Mon Jul 29 2013 Mischa Salle 1.1.4-1 - updated version * Mon Jul 29 2013 Mischa Salle 1.1.3-1 - updated version * Thu Jun 27 2013 Dennis van Dok 1.1.2-5 - Use pkg-config to find the gsoap cflags. * Fri Jun 14 2013 Dennis van Dok 1.1.2-4 - Fix the typo in the CPPFLAGS variable * Thu Jun 13 2013 Dennis van Dok 1.1.2-3 - Add -DWITH_IPV6 -DWITH_DOM to CPPFLAGS, for compatibility with HTCondor * Tue Oct 23 2012 Mischa Salle 1.1.2-2 - Update URL. * Fri Apr 20 2012 Mischa Salle 1.1.2-1 - updated version * Mon Mar 26 2012 Mischa Salle 1.1.1-2 - provide architecture dependent and indepent %%Provides - updated version * Fri Dec 16 2011 Dennis van Dok 1.1.0-3 - Set provides/obsoletes on devel as well * Thu Dec 15 2011 Dennis van Dok 1.1.0-2 - use gSOAP from system rather than our own. - Added ldconfig call to postin and postun * Thu Mar 10 2011 Dennis van Dok 1.0.1-4 - Add CPPFLAG * Fri Mar 4 2011 Dennis van Dok 1.0.1-3 - fixed license string - disable static libraries * Thu Feb 24 2011 Dennis van Dok - Initial build.