Browse code

Added package socat. (Bug 1793607)

Change-Id: Ia26cdea49cd3204eff6804770b7d83e7ba8324e2
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1995
Reviewed-by: Divya Thaluru <dthaluru@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>

xiaolin-vmware authored on 2017/01/24 05:19:49
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,44 @@
0
+Summary:          Multipurpose relay (SOcket CAT)
1
+Name:             socat
2
+Version:          1.7.3.1
3
+Release:          1%{?dist}
4
+License:          GPL
5
+URL:              http://www.dest-unreach.org/socat
6
+Group:            Applications/Internet
7
+Vendor:           VMware, Inc.
8
+Distribution:     Photon
9
+Source0:          http://www.dest-unreach.org/socat/download/%{name}-%{version}.tar.bz2
10
+%define sha1      socat=2a5a6013dff9b4954303c6fd5680a86cfd66aa64
11
+BuildRequires:    openssl-devel
12
+Requires:         openssl
13
+
14
+%description
15
+Socat is a command line based utility that establishes two bidirectional byte streams and transfers data between them. Because the streams can be constructed from a large set of different types of data sinks and sources (see address types), and because lots of address options may be applied to the streams, socat can be used for many different purposes.
16
+
17
+%prep
18
+%setup -q
19
+
20
+%build
21
+./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir}
22
+
23
+make %{?_smp_mflags}
24
+%install
25
+[ %{buildroot} != "/"] && rm -rf %{buildroot}/*
26
+make DESTDIR=%{buildroot} install
27
+find %{buildroot} -name '*.la' -delete
28
+find %{buildroot} -name '*.a' -delete
29
+
30
+%check
31
+make %{?_smp_mflags} check
32
+
33
+%clean
34
+rm -rf %{buildroot}/*
35
+
36
+%files
37
+%defattr(-,root,root)
38
+%{_bindir}/*
39
+%{_mandir}/man1/*
40
+
41
+%changelog
42
+*   Wed Jan 11 2017 Xiaolin Li <xiaolinl@vmware.com>  1.7.3.1-1
43
+-   Initial build.