Browse code

add netmgmt package

Change-Id: I67903a362e18d88aac04877712b05ae68c993f5c
Reviewed-on: http://photon-jenkins.eng.vmware.com/893
Reviewed-by: Vinay Kulkarni <kulkarniv@vmware.com>
Tested-by: jenkins-photon <wangnan2015@hotmail.com>

ppadmavilasom authored on 2016/05/19 09:26:27
Showing 3 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,61 @@
0
+Summary:       PhotonOS Network Management Utilities
1
+Name:          netmgmt
2
+Version:       1.0.1
3
+Release:       1%{?dist}
4
+Group:         Applications/System
5
+Vendor:        VMware, Inc.
6
+License:       Apache2.0
7
+URL:           http://www.vmware.com
8
+Source0:       %{name}-%{version}.tar.gz
9
+Distribution:  Photon
10
+BuildRequires: autoconf
11
+BuildRequires: glib-devel
12
+Requires:      glib
13
+%define sha1 netmgmt=b297d7fb04f1103e780a35ed739c402d6d474a6d
14
+
15
+%description
16
+Network management utilities for PhotonOS
17
+
18
+%package devel
19
+Summary: netmgmt development headers and libraries
20
+Group: Development/Libraries
21
+Requires: netmgmt = %{version}-%{release}
22
+
23
+%description devel
24
+header files and libraries for netmgmt 
25
+
26
+%prep
27
+%setup -q
28
+
29
+%build
30
+autoreconf -mif
31
+./configure \
32
+    --prefix=%{_prefix} \
33
+    --libdir=%{_lib64dir}
34
+make
35
+
36
+%install
37
+make DESTDIR=%{buildroot} install
38
+find %{buildroot} -name '*.la' -delete
39
+
40
+%post
41
+
42
+    /sbin/ldconfig
43
+
44
+    # First argument is 1 => New Installation
45
+    # First argument is 2 => Upgrade
46
+
47
+%files
48
+%defattr(-,root,root)
49
+%{_bindir}/netmgr
50
+%{_lib64dir}/libnetmgr.so*
51
+
52
+%files devel
53
+%{_includedir}/*
54
+%{_lib64dir}/libnetmgr.a
55
+
56
+# %doc ChangeLog README COPYING
57
+
58
+%changelog
59
+*   Wed May 18 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0.1-1
60
+-   Initial
... ...
@@ -260,6 +260,7 @@
260 260
         "c-ares",
261 261
         "c-ares-devel",
262 262
         "dnsmasq",
263
-        "ddclient"
263
+        "ddclient",
264
+        "netmgmt"
264 265
     ]
265 266
 }
... ...
@@ -134,6 +134,7 @@ SECTION 4: Apache License, V2.0
134 134
    >>> httpd-2.4.18
135 135
    >>> kubernetes-1.1.8
136 136
    >>> mesos-0.24.0
137
+   >>> netmgmt-1.0.0
137 138
    >>> openvswitch-2.4.0
138 139
    >>> pcstat-1
139 140
    >>> python-cryptography-1.2.3