netresolve/netresolve.spec

249 lines
7.9 KiB
RPMSpec
Raw Normal View History

%global snapshot_suffix .20151111git
2014-04-24 11:16:23 +00:00
Name: netresolve
Version: 0.0.1
Release: 0.7%{?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
URL: https://sourceware.org/%{name}/
Source0: %{name}-0.0.1.tar.xz
BuildRequires: ldns-devel
BuildRequires: pkgconfig(libcares)
BuildRequires: unbound-devel
BuildRequires: pkgconfig(avahi-client)
BuildRequires: pkgconfig(libasyncns)
# live builds
BuildRequires: autoconf automake libtool
# tests
BuildRequires: valgrind
#
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
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
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 to tools and application.
%package compat
Summary: Compatibility netresolve libraries and tools
Group: Development/Libraries
Requires: %{name}%{?_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}%{?_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}%{?_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}%{?_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}%{?_isa} = %{version}-%{release}
%description backends-avahi
This package provides Multicast DNS capabilities using Avahi daemon and
libraries.
%package backends-ubdns
Summary: DNS backend for netresolve based on libunbound
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description backends-ubdns
This package provides DNS capabilities including DNSSEC validation to
netresolve using libunbound.
2014-04-24 11:16:23 +00:00
%package devel
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
%setup -q
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
%check
export NETRESOLVE_TEST_COMMAND="libtool execute valgrind --leak-check=full --error-exitcode=1 ./netresolve"
make check || { cat ./test-suite.log; false; }
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
%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
%post backends-ubdns -p /sbin/ldconfig
%postun backends-ubdns -p /sbin/ldconfig
%post backends-avahi -p /sbin/ldconfig
%postun backends-avahi -p /sbin/ldconfig
%files core
%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
%{_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
%{_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
%files backends-ubdns
%{_libdir}/libnetresolve-backend-ubdns.so.0
%{_libdir}/libnetresolve-backend-ubdns.so.0.0.0
2014-04-24 11:16:23 +00:00
%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
2014-04-24 11:16:23 +00:00
%{_includedir}/netresolve.h
%{_libdir}/libnetresolve-asyncns.so
2014-04-24 11:16:23 +00:00
%{_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
2014-04-24 11:16:23 +00:00
%{_libdir}/libnetresolve-backend-exec.so
%{_libdir}/libnetresolve-backend-hostname.so
2014-04-24 11:16:23 +00:00
%{_libdir}/libnetresolve-backend-hosts.so
%{_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
%{_libdir}/libnetresolve-backend-ubdns.so
%{_libdir}/libnetresolve-backend-unix.so
%{_libdir}/libnetresolve-libc.so
%{_libdir}/libnetresolve.so
%{_libdir}/libnss_netresolve.so
2014-04-24 11:16:23 +00:00
%changelog
* Mon Nov 09 2015 Pavel Šimerda <psimerda@redhat.com> - 0.0.1-0.7.20151109git
- updated live source, incorporated feedback
* 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
* 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