socket_wrapper/socket_wrapper.spec
Michael Adam b1296a306d Fix a couple of typos in the spec file.
Signed-off-by: Michael Adam <madam@redhat.com>
2014-12-15 11:47:08 +01:00

109 lines
2.9 KiB
RPMSpec

Name: socket_wrapper
Version: 1.1.2
Release: 2%{?dist}
License: BSD
Summary: A library passing all socket communications through Unix sockets
Url: http://cwrap.org/
Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: libcmocka-devel >= 0.4.1
%description
socket_wrapper aims to help client/server software development teams willing to
gain full functional test coverage. It makes it possible to run several
instances of the full software stack on the same machine and perform locally
functional testing of complex network configurations.
To use it set the following environment variables:
LD_PRELOAD=libsocket_wrapper.so
SOCKET_WRAPPER_DIR=/path/to/swrap_dir
This package doesn't have a devel package because this project is for
development/testing.
%prep
%setup -q
%build
if test ! -e "obj"; then
mkdir obj
fi
pushd obj
%cmake \
-DUNIT_TESTING=ON \
%{_builddir}/%{name}-%{version}
make %{?_smp_mflags} VERBOSE=1
popd
%install
pushd obj
make DESTDIR=%{buildroot} install
popd
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%check
pushd obj
make test
popd
%files
%defattr(-,root,root)
%doc AUTHORS README ChangeLog COPYING
%{_libdir}/libsocket_wrapper.so*
%dir %{_libdir}/cmake/socket_wrapper
%{_libdir}/cmake/socket_wrapper/socket_wrapper-config-version.cmake
%{_libdir}/cmake/socket_wrapper/socket_wrapper-config.cmake
%dir %{_libdir}/pkgconfig
%{_libdir}/pkgconfig/socket_wrapper.pc
%{_mandir}/man1/socket_wrapper.1*
%changelog
* Fri Dec 12 2014 Michael Adam <madam@redhat.com> - 1.1.2-2
- Fix typos.
* Wed Oct 01 2014 - Andreas Schneider <asn@redhat.com> - 1.1.2-1
- Update to version 1.1.2.
* Wed Oct 01 2014 - Andreas Schneider <asn@redhat.com> - 1.1.1-2
- resolves: #1146409 - Do not own /usr/lib64/cmake
* Tue Sep 09 2014 - Andreas Schneider <asn@redhat.com> - 1.1.1-1
- Update to version 1.1.1.
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Mon Jun 02 2014 - Andreas Schneider <asn@redhat.com> - 1.1.0-1
- Update to version 1.1.0.
* Tue May 06 2014 - Andreas Schneider <asn@redhat.com> - 1.0.2-1
- Update to version 1.0.2.
* Tue Feb 11 2014 - Andreas Schneider <asn@redhat.com> - 1.0.1-3
- Remove Group
- Remove glibc-devel build requirement
- Do not create a subpackage.
* Tue Feb 04 2014 - Andreas Schneider <asn@redhat.com> - 1.0.1-2
- Fixed a typo.
* Tue Feb 04 2014 - Andreas Schneider <asn@redhat.com> - 1.0.1-1
- Update to version 1.0.1
* Added --libs to pkg-config.
* Added socket_wrapper-config.cmake
* Fixed a bug packaging the obj directory.
* Mon Feb 03 2014 - Andreas Schneider <asn@redhat.com> - 1.0.0-1
- Initial version 1.0.0