buildable on rhel, updated from git master
This commit is contained in:
parent
b738e025bb
commit
5e615b8c28
@ -1,8 +1,8 @@
|
|||||||
%global snapshot_suffix .20160307git
|
%global snapshot_suffix .20160314git
|
||||||
|
|
||||||
Name: netresolve
|
Name: netresolve
|
||||||
Version: 0.0.1
|
Version: 0.0.1
|
||||||
Release: 0.14%{?snapshot_suffix}%{?dist}
|
Release: 0.15%{?snapshot_suffix}%{?dist}
|
||||||
Summary: Generic name resolution library
|
Summary: Generic name resolution library
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -10,13 +10,19 @@ URL: https://sourceware.org/%{name}/
|
|||||||
Source0: %{name}-0.0.1.tar.xz
|
Source0: %{name}-0.0.1.tar.xz
|
||||||
BuildRequires: ldns-devel
|
BuildRequires: ldns-devel
|
||||||
BuildRequires: pkgconfig(libcares)
|
BuildRequires: pkgconfig(libcares)
|
||||||
|
%if 0%{?fedora}
|
||||||
BuildRequires: unbound-devel
|
BuildRequires: unbound-devel
|
||||||
|
%endif
|
||||||
BuildRequires: pkgconfig(avahi-client)
|
BuildRequires: pkgconfig(avahi-client)
|
||||||
BuildRequires: pkgconfig(libasyncns)
|
BuildRequires: pkgconfig(libasyncns)
|
||||||
# live builds
|
# live builds
|
||||||
BuildRequires: autoconf automake libtool
|
BuildRequires: autoconf automake libtool
|
||||||
# tests
|
# tests
|
||||||
BuildRequires: valgrind
|
BuildRequires: valgrind
|
||||||
|
%if 0%{?rhel}
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1190724
|
||||||
|
BuildRequires: openssl-devel
|
||||||
|
%endif
|
||||||
# subpackages installed by netresolve virtual package
|
# subpackages installed by netresolve virtual package
|
||||||
Requires: %{name}-core%{?_isa} = %{version}-%{release}
|
Requires: %{name}-core%{?_isa} = %{version}-%{release}
|
||||||
Requires: %{name}-tools%{?_isa} = %{version}-%{release}
|
Requires: %{name}-tools%{?_isa} = %{version}-%{release}
|
||||||
@ -76,6 +82,7 @@ Requires: %{name}-core%{?_isa} = %{version}-%{release}
|
|||||||
This package provides Multicast DNS capabilities using Avahi daemon and
|
This package provides Multicast DNS capabilities using Avahi daemon and
|
||||||
libraries.
|
libraries.
|
||||||
|
|
||||||
|
%if 0%{?fedora}
|
||||||
%package backends-ubdns
|
%package backends-ubdns
|
||||||
Summary: DNS backend for netresolve based on libunbound
|
Summary: DNS backend for netresolve based on libunbound
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -83,6 +90,7 @@ Requires: %{name}-core%{?_isa} = %{version}-%{release}
|
|||||||
%description backends-ubdns
|
%description backends-ubdns
|
||||||
This package provides DNS capabilities including DNSSEC validation to
|
This package provides DNS capabilities including DNSSEC validation to
|
||||||
netresolve using libunbound.
|
netresolve using libunbound.
|
||||||
|
%endif
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for netresolve
|
Summary: Development files for netresolve
|
||||||
@ -111,9 +119,11 @@ make %{?_smp_mflags}
|
|||||||
%make_install
|
%make_install
|
||||||
find %{buildroot} -name '*.la' -delete
|
find %{buildroot} -name '*.la' -delete
|
||||||
|
|
||||||
|
%if 0%{?fedora}
|
||||||
%check
|
%check
|
||||||
export NETRESOLVE_TEST_COMMAND="libtool execute valgrind --leak-check=full --error-exitcode=1 ./netresolve"
|
export NETRESOLVE_TEST_COMMAND="libtool execute valgrind --leak-check=full --error-exitcode=1 ./netresolve"
|
||||||
make check || { cat ./test-suite.log; false; }
|
make check || { cat ./test-suite.log; false; }
|
||||||
|
%endif
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
@ -130,8 +140,10 @@ make check || { cat ./test-suite.log; false; }
|
|||||||
%post backends-aresdns -p /sbin/ldconfig
|
%post backends-aresdns -p /sbin/ldconfig
|
||||||
%postun backends-aresdns -p /sbin/ldconfig
|
%postun backends-aresdns -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%if 0%{?fedora}
|
||||||
%post backends-ubdns -p /sbin/ldconfig
|
%post backends-ubdns -p /sbin/ldconfig
|
||||||
%postun backends-ubdns -p /sbin/ldconfig
|
%postun backends-ubdns -p /sbin/ldconfig
|
||||||
|
%endif
|
||||||
|
|
||||||
%post backends-avahi -p /sbin/ldconfig
|
%post backends-avahi -p /sbin/ldconfig
|
||||||
%postun backends-avahi -p /sbin/ldconfig
|
%postun backends-avahi -p /sbin/ldconfig
|
||||||
@ -191,9 +203,11 @@ make check || { cat ./test-suite.log; false; }
|
|||||||
%{_libdir}/libnetresolve-backend-avahi.so.0
|
%{_libdir}/libnetresolve-backend-avahi.so.0
|
||||||
%{_libdir}/libnetresolve-backend-avahi.so.0.0.0
|
%{_libdir}/libnetresolve-backend-avahi.so.0.0.0
|
||||||
|
|
||||||
|
%if 0%{?fedora}
|
||||||
%files backends-ubdns
|
%files backends-ubdns
|
||||||
%{_libdir}/libnetresolve-backend-ubdns.so.0
|
%{_libdir}/libnetresolve-backend-ubdns.so.0
|
||||||
%{_libdir}/libnetresolve-backend-ubdns.so.0.0.0
|
%{_libdir}/libnetresolve-backend-ubdns.so.0.0.0
|
||||||
|
%endif
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/netresolve-epoll.h
|
%{_includedir}/netresolve-epoll.h
|
||||||
@ -228,6 +242,9 @@ make check || { cat ./test-suite.log; false; }
|
|||||||
%{_libdir}/libnss_netresolve.so
|
%{_libdir}/libnss_netresolve.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 14 2016 Pavel Šimerda <psimerda@redhat.com> - 0.0.1-0.15.20160314git
|
||||||
|
- buildable on rhel, updated from git master
|
||||||
|
|
||||||
* Mon Mar 07 2016 Pavel Šimerda <psimerda@redhat.com> - 0.0.1-0.14.20160307git
|
* Mon Mar 07 2016 Pavel Šimerda <psimerda@redhat.com> - 0.0.1-0.14.20160307git
|
||||||
- update from git master
|
- update from git master
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user