Summary: RADIUS protocol client library Name: radcli Version: 1.2.3 Release: 2%{?dist} #Breakdown of licenses. Under MIT license: # lib/avpair.c, lib/buildreq.c, lib/clientid.c, lib/config.c, lib/dict.c, # lib/env.c, lib/ip_util.c, lib/log.c, lib/sendserver.c, lib/util.c, # src/local.c, src/radacct.c, src/radexample.c, src/radius.c, src/radlogin.c, # src/radstatus.c, include/messages.h, include/pathnames.h, lib/options.h # Under BSD license: lib/util.c, src/radiusclient.c, lib/rc-md5.c, lib/tls.c, # lib/tls.h License: BSD and MIT Group: System Environment/Libraries URL: http://radcli.github.io/radcli/ %{expand:%(echo "%%global myversion %{version}" | \ sed 's/\./_/g')} Source0: https://github.com/radcli/radcli/releases/download/%{name}_%{myversion}/%{name}-%{version}.tar.gz Patch1: radcli-overflow-fix.patch #BuildRequires: libtool, automake, autoconf, gettext-devel BuildRequires: nettle-devel >= 2.7.1 BuildRequires: gnutls-devel %description The radcli library is a library for writing RADIUS Clients. The library's approach is to allow writing RADIUS-aware application in less than 50 lines of C code. It was based originally on freeradius-client and is source compatible with it. %package devel Summary: Development files for radcli Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package contains libraries and header files for developing applications that use %{name}. %package compat-devel Summary: Development files for compatibility with radiusclient-ng and freeradius-client Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} # We provide compatible headers with it Conflicts: freeradius-client-devel, radiusclient-ng-devel %description compat-devel This package contains the compatibility headers and libraries for freeradius-client and radiusclient-ng. %prep %setup -q rm -f lib/md5.c %patch1 -p1 -b .overflow sed -i -e 's|sys_lib_dlsearch_path_spec="[^"]\+|& %{_libdir}|g' configure %build #autoreconf -fvi %configure --disable-static --disable-rpath --with-nettle --with-tls --enable-legacy-compat make %{?_smp_mflags} %check make %{?_smp_mflags} check %install make DESTDIR=%{buildroot} install rm -f %{buildroot}%{_libdir}/*.la # these should be removed once the utils subpackage is on mkdir -p %{buildroot}%{_datadir}/%{name} cp -p %{buildroot}%{_datadir}/%{name}/dictionary %{buildroot}%{_sysconfdir}/%{name}/dictionary %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc README.rst NEWS %license COPYRIGHT %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/radiusclient.conf %config(noreplace) %{_sysconfdir}/%{name}/radiusclient-tls.conf %config(noreplace) %{_sysconfdir}/%{name}/servers %config(noreplace) %{_sysconfdir}/%{name}/servers-tls %config(noreplace) %{_sysconfdir}/%{name}/dictionary %{_libdir}/libradcli.so.* %dir %{_datadir}/%{name} %{_datadir}/%{name}/dictionary %{_datadir}/%{name}/dictionary.roaringpenguin %{_datadir}/%{name}/dictionary.microsoft %files devel %dir %{_includedir}/%{name} %{_includedir}/%{name} %{_includedir}/%{name}/radcli.h %{_includedir}/%{name}/version.h %{_libdir}/libradcli.so %{_mandir}/man3/* %{_libdir}/pkgconfig/*.pc %files compat-devel %{_includedir}/freeradius-client.h %{_includedir}/radiusclient-ng.h %{_libdir}/libfreeradius-client.so %{_libdir}/libradiusclient-ng.so %changelog * Thu Nov 26 2015 Nikos Mavrogiannopoulos - 1.2.3-2 - Fixed overflow in rc_ipaddr_local() * Wed Sep 2 2015 Nikos Mavrogiannopoulos - 1.2.3-1 - Updated to 1.2.3 * Fri Aug 21 2015 Nikos Mavrogiannopoulos - 1.2.2-1 - Updated to 1.2.2 * Mon Jun 15 2015 Nikos Mavrogiannopoulos - 1.2.1-1 - Initial package