Blame SPECS/socket_wrapper.spec

8ba92b
Name:           socket_wrapper
9b797e
Version:        1.2.3
9b797e
Release:        1%{?dist}
8ba92b
8ba92b
License:        BSD
8ba92b
Summary:        A library passing all socket communications through Unix sockets
8ba92b
Url:            http://cwrap.org/
8ba92b
8ba92b
Source0:        https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
9b797e
Source1:        https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz.asc
9b797e
Source2:        socket_wrapper.keyring
8ba92b
8ba92b
BuildRequires:  cmake
9b797e
BuildRequires:  gcc
9b797e
BuildRequires:  gnupg2
8ba92b
BuildRequires:  libcmocka-devel >= 1.1.0
8ba92b
8ba92b
Recommends:     cmake
8ba92b
Recommends:     pkgconfig
8ba92b
8ba92b
%description
8ba92b
socket_wrapper aims to help client/server software development teams willing to
8ba92b
gain full functional test coverage. It makes it possible to run several
8ba92b
instances of the full software stack on the same machine and perform locally
8ba92b
functional testing of complex network configurations.
8ba92b
8ba92b
To use it set the following environment variables:
8ba92b
8ba92b
LD_PRELOAD=libsocket_wrapper.so
8ba92b
SOCKET_WRAPPER_DIR=/path/to/swrap_dir
8ba92b
8ba92b
This package doesn't have a devel package because this project is for
8ba92b
development/testing.
8ba92b
8ba92b
%prep
9b797e
gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
8ba92b
%autosetup -p1
8ba92b
8ba92b
%build
8ba92b
if test ! -e "obj"; then
8ba92b
mkdir obj
8ba92b
fi
8ba92b
pushd obj
8ba92b
%cmake \
8ba92b
-DUNIT_TESTING=ON \
8ba92b
%{_builddir}/%{name}-%{version}
8ba92b
8ba92b
make %{?_smp_mflags} VERBOSE=1
8ba92b
popd
8ba92b
8ba92b
%install
8ba92b
pushd obj
8ba92b
make DESTDIR=%{buildroot} install
8ba92b
popd
8ba92b
9b797e
%ldconfig_scriptlets
8ba92b
8ba92b
%check
8ba92b
pushd obj
9b797e
ctest --output-on-failure
8ba92b
8ba92b
LD_PRELOAD=src/libsocket_wrapper.so bash -c '>/dev/null'
8ba92b
8ba92b
popd
8ba92b
8ba92b
%files
9b797e
%doc AUTHORS README.md ChangeLog
9b797e
%license LICENSE
8ba92b
%{_libdir}/libsocket_wrapper.so*
8ba92b
%dir %{_libdir}/cmake/socket_wrapper
8ba92b
%{_libdir}/cmake/socket_wrapper/socket_wrapper-config-version.cmake
8ba92b
%{_libdir}/cmake/socket_wrapper/socket_wrapper-config.cmake
8ba92b
%{_libdir}/pkgconfig/socket_wrapper.pc
8ba92b
%{_mandir}/man1/socket_wrapper.1*
8ba92b
8ba92b
%changelog
9b797e
* Thu Mar 28 2019 Andreas Schneider <asn@redhat.com> - 1.2.3-1
9b797e
- Update to version 1.2.3
9b797e
9b797e
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
9b797e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
9b797e
9b797e
* Wed Nov 14 2018 Andreas Schneider <asn@redhat.com> - 1.2.1-1
9b797e
- Update to version 1.2.1
9b797e
  * Removed error message to fix applications doing stupid things
9b797e
9b797e
* Tue Nov 13 2018 Andreas Schneider <asn@redhat.com> - 1.2.0-1
9b797e
- Update to vesrion 1.2.0
9b797e
  * Added threading support
9b797e
  * Moved to modern cmake
9b797e
  * Several smaller bugfixes
9b797e
9b797e
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.9-3
9b797e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9b797e
8ba92b
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.9-2
8ba92b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8ba92b
8ba92b
* Wed Dec 06 2017 Andreas Schneider <asn@redhat.com> - 1.1.9-1
8ba92b
- Update to version 1.1.9
8ba92b
  * Fix thread deadlock with due to a signal interrupt
8ba92b
8ba92b
* Fri Oct 13 2017 Andreas Schneider <asn@redhat.com> - 1.1.8-1
8ba92b
- Update to version 1.1.8
8ba92b
  * Added support for openat()
8ba92b
  * Added support for open64() and fopen64()
8ba92b
  * Always enabled logging support
8ba92b
  * Increased maximum for wrapped interfaces to 64
8ba92b
  * Improved fd duplication code
8ba92b
  * Fixed strict-aliasing issues
8ba92b
  * Fixed some use after free issues
8ba92b
  * Fixed issues on ppc64le
8ba92b
8ba92b
* Wed Aug 02 2017 Andreas Schneider <asn@redhat.com> - 1.1.7-4
8ba92b
- resolves: #1465147 - Fix socket_wrapper on ppc64le
8ba92b
8ba92b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.7-3
8ba92b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8ba92b
8ba92b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.7-2
8ba92b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8ba92b
8ba92b
* Thu Jun 02 2016 Andreas Schneider <asn@redhat.com> - 1.1.7-1
8ba92b
- Update to version 1.1.7
8ba92b
  * Added support for accept4()
8ba92b
  * Added support for OpenBSD
8ba92b
  * Fixed sendto() with UDP and a connected socket
8ba92b
  * Fixed AF_RAWLINK sockets
8ba92b
8ba92b
* Wed Mar 23 2016 Andreas Schneider <asn@redhat.com> - 1.1.6-1
8ba92b
- Update to version 1.1.6
8ba92b
  * Added a wrapper for write()
8ba92b
  * Added support for automatic binding of ephemeral ports
8ba92b
  * Fixed recvmsg() with UDP
8ba92b
  * Fixed AF_NETLINK sockets
8ba92b
8ba92b
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.5-2
8ba92b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8ba92b
8ba92b
* Mon Nov 02 2015 Andreas Schneider <asn@redhat.com> - 1.1.5-1
8ba92b
- Update to version 1.1.5
8ba92b
  o Added support for TCP_NODELAY in setsockopt/getsockopt
8ba92b
  o Fixed cmsg space calculation
8ba92b
8ba92b
* Thu Sep 03 2015 Andreas Schneider <asn@redhat.com> - 1.1.4-1
8ba92b
- Update to version 1.1.4
8ba92b
  o Fixed handling of msg_name in recvmsg()
8ba92b
  o Fixed sendmsg()/recvmsg() TCP support
8ba92b
  o Fixed several compile warnings
8ba92b
  o Added environment variable to change MTU
8ba92b
8ba92b
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-2
8ba92b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8ba92b
8ba92b
* Mon Feb 23 2015 Andreas Schneider <asn@redhat.com> - 1.1.3-1
8ba92b
- Update to version 1.1.3.
8ba92b
  o Added support for address sanitizer.
8ba92b
  o Fixed leaking of memory and fds of stale sockets.
8ba92b
  o Fixed the library loading code.
8ba92b
8ba92b
* Mon Dec 15 2014 Michael Adam <madam@redhat.com> - 1.1.2-2
8ba92b
- Fix format of changelog entries.
8ba92b
- Require cmake.
8ba92b
- Require pkgconfig instead of owning {_libdir}/pkgconfig
8ba92b
8ba92b
* Fri Dec 12 2014 Michael Adam <madam@redhat.com> - 1.1.2-2
8ba92b
- Fix typos.
8ba92b
8ba92b
* Wed Oct 01 2014 Andreas Schneider <asn@redhat.com> - 1.1.2-1
8ba92b
- Update to version 1.1.2.
8ba92b
8ba92b
* Wed Oct 01 2014 Andreas Schneider <asn@redhat.com> - 1.1.1-2
8ba92b
- resolves: #1146409 - Do not own /usr/lib64/cmake
8ba92b
8ba92b
* Tue Sep 09 2014 Andreas Schneider <asn@redhat.com> - 1.1.1-1
8ba92b
- Update to version 1.1.1.
8ba92b
8ba92b
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
8ba92b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
8ba92b
8ba92b
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
8ba92b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8ba92b
8ba92b
* Mon Jun 02 2014 Andreas Schneider <asn@redhat.com> - 1.1.0-1
8ba92b
- Update to version 1.1.0.
8ba92b
8ba92b
* Tue May 06 2014 Andreas Schneider <asn@redhat.com> - 1.0.2-1
8ba92b
- Update to version 1.0.2.
8ba92b
8ba92b
* Tue Feb 11 2014 Andreas Schneider <asn@redhat.com> - 1.0.1-3
8ba92b
- Remove Group
8ba92b
- Remove glibc-devel build requirement
8ba92b
- Do not create a subpackage.
8ba92b
8ba92b
* Tue Feb 04 2014 Andreas Schneider <asn@redhat.com> - 1.0.1-2
8ba92b
- Fixed a typo.
8ba92b
8ba92b
* Tue Feb 04 2014 Andreas Schneider <asn@redhat.com> - 1.0.1-1
8ba92b
- Update to version 1.0.1
8ba92b
  * Added --libs to pkg-config.
8ba92b
  * Added socket_wrapper-config.cmake
8ba92b
  * Fixed a bug packaging the obj directory.
8ba92b
8ba92b
* Mon Feb 03 2014 Andreas Schneider <asn@redhat.com> - 1.0.0-1
8ba92b
- Initial version 1.0.0