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>
(cherry picked from commit edf9476e940b171a340e6d3be15a23fe6a659c52)
Reviewed-on: http://photon-jenkins.eng.vmware.com/947
Reviewed-by: suezzelur <anishs@vmware.com>
Tested-by: suezzelur <anishs@vmware.com>
| 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 |