%global snapshot_suffix .20160317git Name: netresolve Version: 0.0.1 Release: 0.22%{?snapshot_suffix}%{?dist} Summary: Generic name resolution library Group: System Environment/Libraries License: BSD # https://github.com/crossdistro/netresolve , possibly? URL: https://sourceware.org/%{name}/ Source0: %{name}-0.0.1.tar.xz # Fix a syntax error in a test # From https://github.com/crossdistro/netresolve/pull/2 Patch0: netresolve-0.0.1-test-equality.patch BuildRequires: ldns-devel BuildRequires: pkgconfig(libcares) %if 0%{?fedora} BuildRequires: unbound-devel %endif BuildRequires: pkgconfig(avahi-client) BuildRequires: pkgconfig(libasyncns) # live builds BuildRequires: autoconf automake libtool # tests BuildRequires: valgrind %if 0%{?rhel} # https://bugzilla.redhat.com/show_bug.cgi?id=1190724 BuildRequires: openssl-devel %endif # subpackages installed by netresolve virtual package Requires: %{name}-core%{?_isa} = %{version}-%{release} Requires: %{name}-tools%{?_isa} = %{version}-%{release} Requires: %{name}-compat%{?_isa} = %{version}-%{release} Requires: %{name}-backends-compat%{?_isa} = %{version}-%{release} Requires: %{name}-backends-aresdns%{?_isa} = %{version}-%{release} Requires: %{name}-backends-avahi%{?_isa} = %{version}-%{release} %description Netresolve is a package for non-blocking network name resolution via backends intended as a replacement for name service switch based name resolution in glibc as well as a testbed for future glibc improvements. %package core Summary: Core netresolve libraries Group: Development/Libraries %description core This package provides core netresolve library with basic name resolution capabilities for tools and application. %package compat Summary: Compatibility netresolve libraries and tools Group: Development/Libraries Requires: %{name}-core%{?_isa} = %{version}-%{release} %description compat This package provides libraries and tools for using netresolve from applications built against other name resolution libraries. %package tools Summary: Command line tools based on core netresolve libraries Group: Development/Libraries Requires: %{name}-core%{?_isa} = %{version}-%{release} %description tools This package provides tools that provide netresolve capabilities using the command line. %package backends-compat Summary: Backends for netresolve using existing tools Requires: %{name}-core%{?_isa} = %{version}-%{release} Group: Development/Libraries %description backends-compat This package provides backends for querying libc, glibc nsswitch backends, asyncns and other existing name resolution libraries. %package backends-aresdns Summary: DNS backend for netresolve based on aresdns Group: Development/Libraries Requires: %{name}-core%{?_isa} = %{version}-%{release} %description backends-aresdns This package provides DNS capabilities including learning DNSSEC validity from the AD flag for netresolve using c-ares. %package backends-avahi Summary: Multicast DNS backend for netresolve based on libavahi Group: Development/Libraries Requires: %{name}-core%{?_isa} = %{version}-%{release} %description backends-avahi This package provides Multicast DNS capabilities using Avahi daemon and libraries. %if 0%{?fedora} %package backends-ubdns Summary: DNS backend for netresolve based on libunbound Group: Development/Libraries Requires: %{name}-core%{?_isa} = %{version}-%{release} %description backends-ubdns This package provides DNS capabilities including DNSSEC validation to netresolve using libunbound. %endif %package devel Summary: Development files for netresolve Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package contains header files and libraries needed to compile applications or shared objects that use netresolve. %prep %autosetup -p1 NOCONFIGURE=yes ./autogen.sh # disable some tests for now sed -i \ -e '/999999x/d' \ -e '/x-x-x-x-x-x-x-x-x/d' \ tests/test-netresolve.sh %build %configure \ --disable-silent-rules make %{?_smp_mflags} %install %make_install find %{buildroot} -name '*.la' -delete %if 0%{?fedora} %check export NETRESOLVE_TEST_COMMAND="libtool execute valgrind --leak-check=full --error-exitcode=1 ./netresolve" make check || { cat ./test-suite.log; false; } %endif %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post core -p /sbin/ldconfig %postun core -p /sbin/ldconfig %post compat -p /sbin/ldconfig %postun compat -p /sbin/ldconfig %post backends-compat -p /sbin/ldconfig %postun backends-compat -p /sbin/ldconfig %post backends-aresdns -p /sbin/ldconfig %postun backends-aresdns -p /sbin/ldconfig %if 0%{?fedora} %post backends-ubdns -p /sbin/ldconfig %postun backends-ubdns -p /sbin/ldconfig %endif %post backends-avahi -p /sbin/ldconfig %postun backends-avahi -p /sbin/ldconfig %files %files core %license COPYING %doc README TODO NEWS %{_libdir}/libnetresolve-backend-any.so.0 %{_libdir}/libnetresolve-backend-any.so.0.0.0 %{_libdir}/libnetresolve-backend-exec.so.0 %{_libdir}/libnetresolve-backend-exec.so.0.0.0 %{_libdir}/libnetresolve-backend-hostname.so.0 %{_libdir}/libnetresolve-backend-hostname.so.0.0.0 %{_libdir}/libnetresolve-backend-hosts.so.0 %{_libdir}/libnetresolve-backend-hosts.so.0.0.0 %{_libdir}/libnetresolve-backend-loopback.so.0 %{_libdir}/libnetresolve-backend-loopback.so.0.0.0 %{_libdir}/libnetresolve-backend-numerichost.so.0 %{_libdir}/libnetresolve-backend-numerichost.so.0.0.0 %{_libdir}/libnetresolve-backend-unix.so.0 %{_libdir}/libnetresolve-backend-unix.so.0.0.0 %{_libdir}/libnetresolve.so.0 %{_libdir}/libnetresolve.so.0.0.0 %{_libdir}/libnss_netresolve.so.2 %{_libdir}/libnss_netresolve.so.2.0.0 %files tools %{_bindir}/getaddrinfo %{_bindir}/gethostbyaddr %{_bindir}/gethostbyname %{_bindir}/getnameinfo %{_bindir}/netresolve %{_bindir}/res_query %files compat %{_bindir}/wrapresolve %{_libdir}/libnetresolve-asyncns.so.0 %{_libdir}/libnetresolve-asyncns.so.0.0.0 %{_libdir}/libnetresolve-libc.so.0 %{_libdir}/libnetresolve-libc.so.0.0.0 %files backends-compat %{_libdir}/libnetresolve-backend-asyncns.so.0 %{_libdir}/libnetresolve-backend-asyncns.so.0.0.0 %{_libdir}/libnetresolve-backend-libc.so.0 %{_libdir}/libnetresolve-backend-libc.so.0.0.0 %{_libdir}/libnetresolve-backend-nss.so.0 %{_libdir}/libnetresolve-backend-nss.so.0.0.0 %files backends-aresdns %{_libdir}/libnetresolve-backend-aresdns.so.0 %{_libdir}/libnetresolve-backend-aresdns.so.0.0.0 %files backends-avahi %{_libdir}/libnetresolve-backend-avahi.so.0 %{_libdir}/libnetresolve-backend-avahi.so.0.0.0 %if 0%{?fedora} %files backends-ubdns %{_libdir}/libnetresolve-backend-ubdns.so.0 %{_libdir}/libnetresolve-backend-ubdns.so.0.0.0 %endif %files devel %{_includedir}/netresolve-epoll.h %{_includedir}/netresolve-epoll.h %{_includedir}/netresolve-event.h %{_includedir}/netresolve-event.h %{_includedir}/netresolve-glib.h %{_includedir}/netresolve-glib.h %{_includedir}/netresolve-nonblock.h %{_includedir}/netresolve-nonblock.h %{_includedir}/netresolve-select.h %{_includedir}/netresolve-select.h %{_includedir}/netresolve.h %{_libdir}/libnetresolve-asyncns.so %{_libdir}/libnetresolve-backend-any.so %{_libdir}/libnetresolve-backend-aresdns.so %{_libdir}/libnetresolve-backend-asyncns.so %{_libdir}/libnetresolve-backend-avahi.so %{_libdir}/libnetresolve-backend-avahi.so %{_libdir}/libnetresolve-backend-exec.so %{_libdir}/libnetresolve-backend-hostname.so %{_libdir}/libnetresolve-backend-hosts.so %{_libdir}/libnetresolve-backend-libc.so %{_libdir}/libnetresolve-backend-libc.so %{_libdir}/libnetresolve-backend-loopback.so %{_libdir}/libnetresolve-backend-nss.so %{_libdir}/libnetresolve-backend-numerichost.so %if 0%{?fedora} %{_libdir}/libnetresolve-backend-ubdns.so %endif %{_libdir}/libnetresolve-backend-unix.so %{_libdir}/libnetresolve-libc.so %{_libdir}/libnetresolve.so %{_libdir}/libnss_netresolve.so %changelog * Mon Oct 08 2018 Petr Menšík - 0.0.1-0.22.20160317git - Rebuilt for unbound 1.8 * Fri Jul 13 2018 Fedora Release Engineering - 0.0.1-0.21.20160317git - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Feb 08 2018 Fedora Release Engineering - 0.0.1-0.20.20160317git - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.0.1-0.19.20160317git - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0.0.1-0.18.20160317git - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Mar 09 2017 Adam Williamson - 0.0.1-0.17.20160317git - Fix a syntax error in a test which broke compilation (pemensik) * Fri Feb 10 2017 Fedora Release Engineering - 0.0.1-0.16.20160317git - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Mar 14 2016 Pavel Šimerda - 0.0.1-0.15.20160314git - buildable on rhel, updated from git master * Mon Mar 07 2016 Pavel Šimerda - 0.0.1-0.14.20160307git - update from git master * Thu Feb 04 2016 Fedora Release Engineering - 0.0.1-0.13.20160121git - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jan 21 2016 Pavel Šimerda - 0.0.1-0.12.20160121git - updated live source * Tue Jan 05 2016 Pavel Šimerda - 0.0.1-0.11.20151111git - rebuilt * Mon Jan 04 2016 Pavel Šimerda - 0.0.1-0.10.20151111git - rebuilt * Wed Dec 16 2015 Pavel Šimerda - 0.0.1-0.9.20151111git - rebuilt * Tue Nov 24 2015 Pavel Šimerda - 0.0.1-0.8.20151111git - applied feedback * Mon Nov 09 2015 Pavel Šimerda - 0.0.1-0.7.20151109git - updated live source, incorporated feedback * Thu Oct 15 2015 Pavel Šimerda - 0.0.1-0.6.20151015git - updated live source, incorporated feedback * Thu Sep 17 2015 Pavel Šimerda - 0.0.1-0.5.20150923git - lots of changes upstream since the last time * Sun Nov 02 2014 Pavel Šimerda - 0.0.1-0.4.20141102git - rebuilt * Wed May 21 2014 Pavel Šimerda - 0.0.1-0.3.20140422git - avoid running the tests * Thu Apr 24 2014 Pavel Šimerda - 0.0.1-0.2.20140422git - incorporate review feedback * Wed Apr 23 2014 Pavel Šimerda - 0.0.1-0.1.20140422git - initial build