File xacml.spec of Package xacml

Summary: SAML 2.0 profile of XACML v2.0 library
Name: xacml
Version: 1.5.3
Release: 1%{?dist}
License: Apache-2.0
Group: System/Libraries
URL: http://wiki.nikhef.nl/grid/Site_Access_Control
Source0: http://software.nikhef.nl/security/%{name}/%{name}-%{version}.tar.gz
Source1: %{name}-rpmlintrc
Patch0: makefile.patch
# BuildRoot is still required for EPEL5
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: gsoap-devel, pkgconfig, gcc-c++, libopenssl-devel

%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 -n libxacml0
Summary: SAML 2.0 profile of XACML v2.0 runtime library

%description -n libxacml0

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 runtime library.

%package devel
Summary: SAML 2.0 profile of XACML v2.0 development files
Group: Development/Libraries/C and C++
Requires: libxacml0%{?_isa} = %{version}-%{release}
Obsoletes: libxacml-devel < %version-%release
Provides: libxacml-devel = %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

%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
%patch0 -p0

%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 -n libxacml0 -p /sbin/ldconfig

%postun -n libxacml0 -p /sbin/ldconfig

%files -n libxacml0
%{_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
* Mon Mar 23 2020 Mischa Salle <msalle@nikhef.nl> 1.5.3-1
- updated version

* Thu Feb 16 2017 Mischa Salle <msalle@nikhef.nl> 1.5.2-1
- updated version

* Wed Aug 10 2016 Mischa Salle <msalle@nikhef.nl> 1.5.1-1
- updated version

* Thu Sep 18 2014 Dennis van Dok <dennisvd@nikhef.nl> 1.5.0-2
- Remove the obsolete CXXFLAGS override

* Thu Aug 21 2014 Mischa Salle <msalle@nikhef.nl> 1.5.0-1
- cleanup build requires
- update filelist
- updated version

* Thu Mar 27 2014 Mischa Salle <msalle@nikhef.nl> 1.4.2-1
- updated version

* Thu Mar 13 2014 Mischa Salle <msalle@nikhef.nl> 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 <msalle@nikhef.nl> 1.4.0-2
- fix macro expansion for pkgconfig to include only rhel not fedora

* Wed Feb  5 2014 Mischa Salle <msalle@nikhef.nl> 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 <msalle@nikhef.nl> 1.3.0-1
- updated version

* Wed Sep 11 2013 Mischa Salle <msalle@nikhef.nl> 1.2.0-1
- removed CPPFLAGS for THREADING
- updated version

* Fri Aug 30 2013 Mischa Salle <msalle@nikhef.nl> 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 <msalle@nikhef.nl> 1.1.4-1
- updated version

* Mon Jul 29 2013 Mischa Salle <msalle@nikhef.nl> 1.1.3-1
- updated version

* Thu Jun 27 2013 Dennis van Dok <dennisvd@nikhef.nl> 1.1.2-5
- Use pkg-config to find the gsoap cflags.

* Fri Jun 14 2013 Dennis van Dok <dennisvd@nikhef.nl> 1.1.2-4
- Fix the typo in the CPPFLAGS variable

* Thu Jun 13 2013 Dennis van Dok <dennisvd@nikhef.nl> 1.1.2-3
- Add -DWITH_IPV6 -DWITH_DOM to CPPFLAGS, for compatibility with HTCondor

* Tue Oct 23 2012 Mischa Salle <msalle@nikhef.nl> 1.1.2-2
- Update URL.

* Fri Apr 20 2012 Mischa Salle <msalle@nikhef.nl> 1.1.2-1
- updated version

* Mon Mar 26 2012 Mischa Salle <msalle@nikhef.nl> 1.1.1-2
- provide architecture dependent and indepent %%Provides
- updated version

* Fri Dec 16 2011 Dennis van Dok <dennisvd@nikhef.nl> 1.1.0-3
- Set provides/obsoletes on devel as well

* Thu Dec 15 2011 Dennis van Dok <dennisvd@nikhef.nl> 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 <dennisvd@nikhef.nl> 1.0.1-4
- Add CPPFLAG

* Fri Mar  4 2011 Dennis van Dok <dennisvd@nikhef.nl> 1.0.1-3
- fixed license string
- disable static libraries

* Thu Feb 24 2011 Dennis van Dok <dennisvd@nikhef.nl> 
- Initial build.


openSUSE Build Service is sponsored by