[socket_wrapper/f20] Initial import (#1060909)

asn asn at fedoraproject.org
Wed Feb 19 15:23:07 UTC 2014


commit 168d66f4a2033282014c123c9fb9431589bc7204
Author: Andreas Schneider <asn at cryptomilk.org>
Date:   Wed Feb 19 16:22:58 2014 +0100

    Initial import (#1060909)

 .gitignore          |    1 +
 socket_wrapper.spec |   83 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 85 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4fd5c93 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/socket_wrapper-1.0.1.tar.gz
diff --git a/socket_wrapper.spec b/socket_wrapper.spec
new file mode 100644
index 0000000..61eaeeb
--- /dev/null
+++ b/socket_wrapper.spec
@@ -0,0 +1,83 @@
+Name:           socket_wrapper
+Version:        1.0.1
+Release:        3%{?dist}
+
+License:        BSD
+Summary:        A library passing all socket communications trough Unix sockets
+Url:            http://cwrap.org/
+
+Source0:        https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
+
+BuildRequires:  cmake
+BuildRequires:  libcmocka-devel
+
+%description
+socket_wrapper aims to help client/server software development teams willing to
+gain full functional test coverage. It makes 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 cause 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
+%{_libdir}/cmake/socket_wrapper-config-version.cmake
+%{_libdir}/cmake/socket_wrapper-config.cmake
+%dir %{_libdir}/pkgconfig
+%{_libdir}/pkgconfig/socket_wrapper.pc
+
+%changelog
+* Tue Feb 11 2014 - Andreas Schneider <asn at 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 at redhat.com> - 1.0.1-2
+- Fixed a typo.
+
+* Tue Feb 04 2014 - Andreas Schneider <asn at 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 at redhat.com> - 1.0.0-1
+- Initial version 1.0.0
diff --git a/sources b/sources
index e69de29..de1d783 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+298e4b2d6cd88b9dbf3a4ac6566e8cd0  socket_wrapper-1.0.1.tar.gz


More information about the scm-commits mailing list