Andreas Schneider a15f3b4
Name:           resolv_wrapper
Jakub Hrozek 386c8b8
Version:        1.1.5
8f96788
Release:        2%{?dist}
Andreas Schneider a15f3b4
Andreas Schneider a15f3b4
Summary:        A wrapper for dns name resolving or dns faking
Andreas Schneider a15f3b4
License:        BSD
Andreas Schneider a15f3b4
Url:            http://cwrap.org/
Andreas Schneider a15f3b4
Andreas Schneider a15f3b4
Source0:        https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
Andreas Schneider a15f3b4
Andreas Schneider a15f3b4
BuildRequires:  cmake
Andreas Schneider a15f3b4
BuildRequires:  libcmocka-devel
Andreas Schneider a15f3b4
Andreas Schneider 683b342
Recommends:     cmake
Andreas Schneider 683b342
Recommends:     pkgconfig
Andreas Schneider a15f3b4
Andreas Schneider a15f3b4
%description
Andreas Schneider a15f3b4
It is likely that if you have a server/client architecture, you need to do DNS
Andreas Schneider a15f3b4
queries or a third party library, like Kerberos needs to be able to do queries.
Andreas Schneider a15f3b4
In the case of Kerberos the client needs to look the address of the KDC up via a
Andreas Schneider a15f3b4
SRV record. resolv_wrapper is able to either redirect all DNS queries to your
Andreas Schneider a15f3b4
DNS server implementation, or fake DNS replies!
Andreas Schneider a15f3b4
Andreas Schneider a15f3b4
To use it set the following environment variables:
Andreas Schneider a15f3b4
Andreas Schneider a15f3b4
LD_PRELOAD=libresolv_wrapper.so
Andreas Schneider a15f3b4
RESOLV_WRAPPER_CONF=./my_resolv.conf
Andreas Schneider a15f3b4
Andreas Schneider a15f3b4
This package doesn't have a devel package because this project is for
Andreas Schneider a15f3b4
development/testing.
Andreas Schneider a15f3b4
Andreas Schneider a15f3b4
%prep
Andreas Schneider a15f3b4
%setup -q
Andreas Schneider a15f3b4
Andreas Schneider a15f3b4
%build
Andreas Schneider a15f3b4
if test ! -e "obj"; then
Andreas Schneider a15f3b4
  mkdir obj
Andreas Schneider a15f3b4
fi
Andreas Schneider a15f3b4
pushd obj
Andreas Schneider a15f3b4
%cmake \
Andreas Schneider a15f3b4
  -DUNIT_TESTING=ON \
Andreas Schneider a15f3b4
  %{_builddir}/%{name}-%{version}
Andreas Schneider a15f3b4
Andreas Schneider a15f3b4
make %{?_smp_mflags} VERBOSE=1
Andreas Schneider a15f3b4
popd
Andreas Schneider a15f3b4
Andreas Schneider a15f3b4
%install
Andreas Schneider a15f3b4
pushd obj
Andreas Schneider a15f3b4
make DESTDIR=%{buildroot} install
Andreas Schneider a15f3b4
popd
Andreas Schneider a15f3b4
Andreas Schneider a15f3b4
%post -p /sbin/ldconfig
Andreas Schneider a15f3b4
Andreas Schneider a15f3b4
%postun -p /sbin/ldconfig
Andreas Schneider a15f3b4
Andreas Schneider a15f3b4
%check
Andreas Schneider a15f3b4
pushd obj
Andreas Schneider a15f3b4
make test
Andreas Schneider a15f3b4
popd
Andreas Schneider a15f3b4
Andreas Schneider a15f3b4
%files
Andreas Schneider a15f3b4
%doc AUTHORS README ChangeLog COPYING
Andreas Schneider a15f3b4
%{_libdir}/libresolv_wrapper.so*
Andreas Schneider a15f3b4
%dir %{_libdir}/cmake/resolv_wrapper
Andreas Schneider a15f3b4
%{_libdir}/cmake/resolv_wrapper/resolv_wrapper-config-version.cmake
Andreas Schneider a15f3b4
%{_libdir}/cmake/resolv_wrapper/resolv_wrapper-config.cmake
Andreas Schneider a15f3b4
%{_libdir}/pkgconfig/resolv_wrapper.pc
Andreas Schneider a15f3b4
%{_mandir}/man1/resolv_wrapper.1*
Andreas Schneider a15f3b4
Andreas Schneider a15f3b4
%changelog
8f96788
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-2
8f96788
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8f96788
Jakub Hrozek 386c8b8
* Mon Apr 24 2017 Jakub Hrozek <jhrozek@redhat.com> - 1.1.5-1
Jakub Hrozek 386c8b8
- Update to version 1.1.5
Jakub Hrozek 386c8b8
  * Support URI DNS records
Jakub Hrozek 386c8b8
  * Support PTR DNS records
Jakub Hrozek 386c8b8
8093f8a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-2
8093f8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8093f8a
Andreas Schneider 683b342
* Thu Jun 02 2016 Andreas Schneider <asn@redhat.com> - 1.1.4-1
Andreas Schneider 683b342
- Update to version 1.1.4
Andreas Schneider 683b342
  * Added support for faking NS entries
Andreas Schneider 683b342
  * Fixed some platform compatibility bugs
Andreas Schneider 683b342
c464583
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-2
c464583
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c464583
Andreas Schneider cf41e45
* Wed Sep 02 2015 Andreas Schneider <asn@redhat.com> - 1.1.3-1
Andreas Schneider cf41e45
- Update to version 1.1.3
Andreas Schneider cf41e45
ac10b65
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
ac10b65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ac10b65
Andreas Schneider a15f3b4
* Tue Dec 16 2014 Andreas Schneider <asn@redhat.com> - 1.1.0-2
Andreas Schneider a15f3b4
- Add Requires for pkgconfig and cmake.
Andreas Schneider a15f3b4
Andreas Schneider a15f3b4
* Wed Dec 10 2014 Andreas Schneider <asn@redhat.com> - 1.1.0-1
Andreas Schneider a15f3b4
- resolves: #1172534 - Initial package.