2016-03-17 11:07:53 +00:00
|
|
|
%global snapshot_suffix .20160317git
|
2014-04-24 11:16:23 +00:00
|
|
|
|
|
|
|
Name: netresolve
|
|
|
|
Version: 0.0.1
|
2017-08-03 03:55:14 +00:00
|
|
|
Release: 0.19%{?snapshot_suffix}%{?dist}
|
2014-04-24 11:16:23 +00:00
|
|
|
Summary: Generic name resolution library
|
2014-04-24 11:49:24 +00:00
|
|
|
Group: System Environment/Libraries
|
2014-04-24 11:16:23 +00:00
|
|
|
License: BSD
|
2017-03-10 01:04:29 +00:00
|
|
|
# https://github.com/crossdistro/netresolve , possibly?
|
2015-11-09 10:26:28 +00:00
|
|
|
URL: https://sourceware.org/%{name}/
|
|
|
|
Source0: %{name}-0.0.1.tar.xz
|
2017-03-10 01:04:29 +00:00
|
|
|
# Fix a syntax error in a test
|
|
|
|
# From https://github.com/crossdistro/netresolve/pull/2
|
|
|
|
Patch0: netresolve-0.0.1-test-equality.patch
|
|
|
|
|
2015-09-17 21:47:26 +00:00
|
|
|
BuildRequires: ldns-devel
|
|
|
|
BuildRequires: pkgconfig(libcares)
|
2016-03-14 16:26:23 +00:00
|
|
|
%if 0%{?fedora}
|
2015-09-17 21:47:26 +00:00
|
|
|
BuildRequires: unbound-devel
|
2016-03-14 16:26:23 +00:00
|
|
|
%endif
|
2015-09-17 21:47:26 +00:00
|
|
|
BuildRequires: pkgconfig(avahi-client)
|
|
|
|
BuildRequires: pkgconfig(libasyncns)
|
|
|
|
# live builds
|
|
|
|
BuildRequires: autoconf automake libtool
|
|
|
|
# tests
|
|
|
|
BuildRequires: valgrind
|
2016-03-14 16:26:23 +00:00
|
|
|
%if 0%{?rhel}
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1190724
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
%endif
|
2015-11-24 14:11:35 +00:00
|
|
|
# subpackages installed by netresolve virtual package
|
2015-11-09 10:26:28 +00:00
|
|
|
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}
|
2014-04-24 11:16:23 +00:00
|
|
|
%description
|
2015-09-17 21:47:26 +00:00
|
|
|
Netresolve is a package for non-blocking network name resolution via backends
|
2014-04-24 11:16:23 +00:00
|
|
|
intended as a replacement for name service switch based name resolution in
|
2015-09-17 21:47:26 +00:00
|
|
|
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
|
2015-11-24 14:11:35 +00:00
|
|
|
capabilities for tools and application.
|
2015-09-17 21:47:26 +00:00
|
|
|
|
|
|
|
%package compat
|
|
|
|
Summary: Compatibility netresolve libraries and tools
|
|
|
|
Group: Development/Libraries
|
2015-11-24 14:11:35 +00:00
|
|
|
Requires: %{name}-core%{?_isa} = %{version}-%{release}
|
2015-09-17 21:47:26 +00:00
|
|
|
%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
|
2015-11-24 14:11:35 +00:00
|
|
|
Requires: %{name}-core%{?_isa} = %{version}-%{release}
|
2015-09-17 21:47:26 +00:00
|
|
|
%description tools
|
|
|
|
This package provides tools that provide netresolve capabilities using the
|
|
|
|
command line.
|
|
|
|
|
|
|
|
%package backends-compat
|
|
|
|
Summary: Backends for netresolve using existing tools
|
2015-11-24 14:11:35 +00:00
|
|
|
Requires: %{name}-core%{?_isa} = %{version}-%{release}
|
2015-09-17 21:47:26 +00:00
|
|
|
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
|
2015-11-24 14:11:35 +00:00
|
|
|
Requires: %{name}-core%{?_isa} = %{version}-%{release}
|
2015-09-17 21:47:26 +00:00
|
|
|
%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
|
2015-11-24 14:11:35 +00:00
|
|
|
Requires: %{name}-core%{?_isa} = %{version}-%{release}
|
2015-09-17 21:47:26 +00:00
|
|
|
%description backends-avahi
|
|
|
|
This package provides Multicast DNS capabilities using Avahi daemon and
|
|
|
|
libraries.
|
|
|
|
|
2016-03-14 16:26:23 +00:00
|
|
|
%if 0%{?fedora}
|
2015-09-17 21:47:26 +00:00
|
|
|
%package backends-ubdns
|
|
|
|
Summary: DNS backend for netresolve based on libunbound
|
|
|
|
Group: Development/Libraries
|
2015-11-24 14:11:35 +00:00
|
|
|
Requires: %{name}-core%{?_isa} = %{version}-%{release}
|
2015-09-17 21:47:26 +00:00
|
|
|
%description backends-ubdns
|
|
|
|
This package provides DNS capabilities including DNSSEC validation to
|
|
|
|
netresolve using libunbound.
|
2016-03-14 16:26:23 +00:00
|
|
|
%endif
|
2014-04-24 11:16:23 +00:00
|
|
|
|
|
|
|
%package devel
|
2015-09-17 21:47:26 +00:00
|
|
|
Summary: Development files for netresolve
|
2014-04-24 11:16:23 +00:00
|
|
|
Group: Development/Libraries
|
2014-04-24 11:49:24 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2014-04-24 11:16:23 +00:00
|
|
|
%description devel
|
|
|
|
This package contains header files and libraries needed to compile
|
|
|
|
applications or shared objects that use netresolve.
|
|
|
|
|
|
|
|
%prep
|
2017-03-10 01:04:29 +00:00
|
|
|
%autosetup -p1
|
2015-09-17 21:47:26 +00:00
|
|
|
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
|
2014-04-24 11:16:23 +00:00
|
|
|
|
|
|
|
%build
|
2014-04-24 11:49:24 +00:00
|
|
|
%configure \
|
|
|
|
--disable-silent-rules
|
2014-04-24 11:16:23 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
find %{buildroot} -name '*.la' -delete
|
|
|
|
|
2016-03-14 16:26:23 +00:00
|
|
|
%if 0%{?fedora}
|
2015-09-17 21:47:26 +00:00
|
|
|
%check
|
|
|
|
export NETRESOLVE_TEST_COMMAND="libtool execute valgrind --leak-check=full --error-exitcode=1 ./netresolve"
|
|
|
|
make check || { cat ./test-suite.log; false; }
|
2016-03-14 16:26:23 +00:00
|
|
|
%endif
|
2014-04-24 11:16:23 +00:00
|
|
|
|
2014-04-24 11:49:24 +00:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
2014-04-24 11:16:23 +00:00
|
|
|
|
2015-11-09 10:26:28 +00:00
|
|
|
%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
|
|
|
|
|
2016-03-14 16:26:23 +00:00
|
|
|
%if 0%{?fedora}
|
2015-11-09 10:26:28 +00:00
|
|
|
%post backends-ubdns -p /sbin/ldconfig
|
|
|
|
%postun backends-ubdns -p /sbin/ldconfig
|
2016-03-14 16:26:23 +00:00
|
|
|
%endif
|
2015-11-09 10:26:28 +00:00
|
|
|
|
|
|
|
%post backends-avahi -p /sbin/ldconfig
|
|
|
|
%postun backends-avahi -p /sbin/ldconfig
|
2015-09-17 21:47:26 +00:00
|
|
|
|
2016-01-05 10:53:47 +00:00
|
|
|
%files
|
|
|
|
|
2015-09-17 21:47:26 +00:00
|
|
|
%files core
|
2015-11-09 10:26:28 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc README TODO NEWS
|
2014-04-24 11:16:23 +00:00
|
|
|
%{_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
|
2015-09-17 21:47:26 +00:00
|
|
|
%{_libdir}/libnetresolve-backend-hostname.so.0
|
|
|
|
%{_libdir}/libnetresolve-backend-hostname.so.0.0.0
|
2014-04-24 11:16:23 +00:00
|
|
|
%{_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
|
2015-09-17 21:47:26 +00:00
|
|
|
%{_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
|
|
|
|
|
2016-03-14 16:26:23 +00:00
|
|
|
%if 0%{?fedora}
|
2015-09-17 21:47:26 +00:00
|
|
|
%files backends-ubdns
|
|
|
|
%{_libdir}/libnetresolve-backend-ubdns.so.0
|
|
|
|
%{_libdir}/libnetresolve-backend-ubdns.so.0.0.0
|
2016-03-14 16:26:23 +00:00
|
|
|
%endif
|
2014-04-24 11:16:23 +00:00
|
|
|
|
|
|
|
%files devel
|
2015-09-17 21:47:26 +00:00
|
|
|
%{_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
|
2014-04-24 11:16:23 +00:00
|
|
|
%{_includedir}/netresolve.h
|
2015-09-17 21:47:26 +00:00
|
|
|
%{_libdir}/libnetresolve-asyncns.so
|
2014-04-24 11:16:23 +00:00
|
|
|
%{_libdir}/libnetresolve-backend-any.so
|
|
|
|
%{_libdir}/libnetresolve-backend-aresdns.so
|
2015-09-17 21:47:26 +00:00
|
|
|
%{_libdir}/libnetresolve-backend-asyncns.so
|
|
|
|
%{_libdir}/libnetresolve-backend-avahi.so
|
|
|
|
%{_libdir}/libnetresolve-backend-avahi.so
|
2014-04-24 11:16:23 +00:00
|
|
|
%{_libdir}/libnetresolve-backend-exec.so
|
2015-09-17 21:47:26 +00:00
|
|
|
%{_libdir}/libnetresolve-backend-hostname.so
|
2014-04-24 11:16:23 +00:00
|
|
|
%{_libdir}/libnetresolve-backend-hosts.so
|
2015-09-17 21:47:26 +00:00
|
|
|
%{_libdir}/libnetresolve-backend-libc.so
|
|
|
|
%{_libdir}/libnetresolve-backend-libc.so
|
2014-04-24 11:16:23 +00:00
|
|
|
%{_libdir}/libnetresolve-backend-loopback.so
|
|
|
|
%{_libdir}/libnetresolve-backend-nss.so
|
|
|
|
%{_libdir}/libnetresolve-backend-numerichost.so
|
2016-03-14 19:06:44 +00:00
|
|
|
%if 0%{?fedora}
|
2014-04-24 11:16:23 +00:00
|
|
|
%{_libdir}/libnetresolve-backend-ubdns.so
|
2016-03-14 19:06:44 +00:00
|
|
|
%endif
|
2014-04-24 11:16:23 +00:00
|
|
|
%{_libdir}/libnetresolve-backend-unix.so
|
|
|
|
%{_libdir}/libnetresolve-libc.so
|
|
|
|
%{_libdir}/libnetresolve.so
|
2015-09-17 21:47:26 +00:00
|
|
|
%{_libdir}/libnss_netresolve.so
|
2014-04-24 11:16:23 +00:00
|
|
|
|
|
|
|
%changelog
|
2017-08-03 03:55:14 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.1-0.19.20160317git
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 22:51:30 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.1-0.18.20160317git
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-03-10 01:04:29 +00:00
|
|
|
* Thu Mar 09 2017 Adam Williamson <awilliam@redhat.com> - 0.0.1-0.17.20160317git
|
|
|
|
- Fix a syntax error in a test which broke compilation (pemensik)
|
|
|
|
|
2017-02-10 22:13:54 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.1-0.16.20160317git
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-03-14 16:26:23 +00:00
|
|
|
* Mon Mar 14 2016 Pavel Šimerda <psimerda@redhat.com> - 0.0.1-0.15.20160314git
|
|
|
|
- buildable on rhel, updated from git master
|
|
|
|
|
2016-03-07 10:10:14 +00:00
|
|
|
* Mon Mar 07 2016 Pavel Šimerda <psimerda@redhat.com> - 0.0.1-0.14.20160307git
|
|
|
|
- update from git master
|
|
|
|
|
2016-02-04 09:16:42 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.1-0.13.20160121git
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-01-21 17:08:31 +00:00
|
|
|
* Thu Jan 21 2016 Pavel Šimerda <psimerda@redhat.com> - 0.0.1-0.12.20160121git
|
|
|
|
- updated live source
|
|
|
|
|
2016-01-05 10:53:47 +00:00
|
|
|
* Tue Jan 05 2016 Pavel Šimerda <psimerda@redhat.com> - 0.0.1-0.11.20151111git
|
|
|
|
- rebuilt
|
|
|
|
|
2016-01-04 09:32:25 +00:00
|
|
|
* Mon Jan 04 2016 Pavel Šimerda <psimerda@redhat.com> - 0.0.1-0.10.20151111git
|
|
|
|
- rebuilt
|
|
|
|
|
2015-12-16 08:59:42 +00:00
|
|
|
* Wed Dec 16 2015 Pavel Šimerda <psimerda@redhat.com> - 0.0.1-0.9.20151111git
|
|
|
|
- rebuilt
|
|
|
|
|
2015-11-24 14:11:35 +00:00
|
|
|
* Tue Nov 24 2015 Pavel Šimerda <psimerda@redhat.com> - 0.0.1-0.8.20151111git
|
|
|
|
- applied feedback
|
|
|
|
|
2015-11-09 10:26:28 +00:00
|
|
|
* Mon Nov 09 2015 Pavel Šimerda <psimerda@redhat.com> - 0.0.1-0.7.20151109git
|
|
|
|
- updated live source, incorporated feedback
|
|
|
|
|
2015-10-15 14:03:17 +00:00
|
|
|
* Thu Oct 15 2015 Pavel Šimerda <psimerda@redhat.com> - 0.0.1-0.6.20151015git
|
|
|
|
- updated live source, incorporated feedback
|
|
|
|
|
|
|
|
* Thu Sep 17 2015 Pavel Šimerda <psimerda@redhat.com> - 0.0.1-0.5.20150923git
|
|
|
|
- lots of changes upstream since the last time
|
2015-09-17 21:47:26 +00:00
|
|
|
|
|
|
|
* Sun Nov 02 2014 Pavel Šimerda <psimerda@redhat.com> - 0.0.1-0.4.20141102git
|
|
|
|
- rebuilt
|
|
|
|
|
2014-05-21 10:58:32 +00:00
|
|
|
* Wed May 21 2014 Pavel Šimerda <psimerda@redhat.com> - 0.0.1-0.3.20140422git
|
|
|
|
- avoid running the tests
|
|
|
|
|
2014-04-24 11:49:24 +00:00
|
|
|
* Thu Apr 24 2014 Pavel Šimerda <psimerda@redhat.com> - 0.0.1-0.2.20140422git
|
|
|
|
- incorporate review feedback
|
|
|
|
|
2014-04-24 11:16:23 +00:00
|
|
|
* Wed Apr 23 2014 Pavel Šimerda <psimerda@redhat.com> - 0.0.1-0.1.20140422git
|
|
|
|
- initial build
|