Browse code

NSX-T rpm dependencies

Change-Id: I14cb3f16d3ef7f4a7f4c26538374aeb913462564
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2070
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Priyesh Padmavilasom <ppadmavilasom@vmware.com>

Vinay Kulkarni authored on 2017/02/15 11:58:10
Showing 7 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,65 @@
0
+Summary:	A fast malloc tool for threads
1
+Name:		gperftools
2
+Version:	2.5
3
+Release:	1%{?dist}
4
+License:	BSD
5
+URL:		https://github.com/gperftools/gperftools
6
+Source0:	https://github.com/gperftools/gperftools/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
7
+%define sha1 gperftools=1e7069f23f926df84a541938a8e6078b0aedf218
8
+Group:		Development/Tools
9
+Vendor:		VMware, Inc.
10
+Distribution: 	Photon
11
+
12
+%description
13
+gperftools is a collection of a high-performance multi-threaded malloc() implementation, plus some pretty nifty performance analysis tools.
14
+
15
+%package devel
16
+Summary:        gperftools devel
17
+Group:          Development/Tools
18
+%description devel
19
+This contains development tools and libraries for gperftools.
20
+
21
+%package docs
22
+Summary:        gperftools docs
23
+Group:          Development/Tools
24
+%description docs
25
+The contains gperftools package doc files.
26
+
27
+%prep
28
+%setup -q
29
+
30
+%build
31
+./configure \
32
+	--prefix=%{_prefix} \
33
+	--docdir=%{_defaultdocdir}/%{name}-%{version}
34
+make %{?_smp_mflags}
35
+
36
+%install
37
+make DESTDIR=%{buildroot} install
38
+find %{buildroot} -name '*.la' -delete
39
+
40
+%check
41
+make %{?_smp_mflags} check
42
+
43
+%files
44
+%defattr(-,root,root)
45
+%{_bindir}/pprof
46
+%{_libdir}/libprofiler*.so.*
47
+%{_libdir}/libtcmalloc*.so.*
48
+
49
+%files devel
50
+%{_includedir}/google/*
51
+%{_includedir}/gperftools/*
52
+%{_libdir}/libprofiler*.a
53
+%{_libdir}/libprofiler*.so
54
+%{_libdir}/libtcmalloc*.a
55
+%{_libdir}/libtcmalloc*.so
56
+%{_libdir}/pkgconfig/lib*
57
+
58
+%files docs
59
+%{_docdir}/%{name}-%{version}/*
60
+%{_mandir}/man1/*
61
+
62
+%changelog
63
+*    Mon Feb 06 2017 Vinay Kulkarni <kulkarniv@vmware.com> 2.5-1
64
+-    Initial version of gperftools package.
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Kubernetes cluster management
2 2
 Name:           kubernetes
3 3
 Version:        1.5.2
4
-Release:        2%{?dist}
4
+Release:        3%{?dist}
5 5
 License:        ASL 2.0
6 6
 URL:            https://github.com/kubernetes/kubernetes/releases/download/v%{version}
7 7
 Source0:        https://dl.k8s.io/v1.5.2/kubernetes-server-linux-amd64-v%{version}.tar.gz
... ...
@@ -29,7 +29,7 @@ install -vdm644 %{buildroot}/etc/profile.d
29 29
 
30 30
 install -m 755 -d %{buildroot}%{_bindir}
31 31
 
32
-binaries=(kube-apiserver kube-controller-manager kube-scheduler kube-proxy kubelet kubectl hyperkube)
32
+binaries=(kube-apiserver kube-controller-manager kube-scheduler kube-proxy kubelet kubectl hyperkube kubeadm kube-discovery kube-dns kubefed)
33 33
 for bin in "${binaries[@]}"; do
34 34
   echo "+++ INSTALLING ${bin}"
35 35
   install -p -m 755 -t %{buildroot}%{_bindir} server/bin/${bin}
... ...
@@ -95,6 +95,8 @@ fi
95 95
 %config(noreplace) %{_sysconfdir}/%{name}/scheduler
96 96
 
97 97
 %changelog
98
+*   Mon Feb 13 2017 Xiaolin Li <xiaolinl@vmware.com> 1.5.2-3
99
+-   Added kubeadm, kubefed, dns, discovery to package.
98 100
 *   Fri Jan 27 2017 Xiaolin Li <xiaolinl@vmware.com> 1.5.2-2
99 101
 -   Added /lib/tmpfiles.d/kubernetes.conf.
100 102
 *   Thu Jan 19 2017 Xiaolin Li <xiaolinl@vmware.com> 1.5.2-1
101 103
new file mode 100644
... ...
@@ -0,0 +1,50 @@
0
+Summary:	Portable and efficient C programming interface (API) to determine the call-chain of a program.
1
+Name:		libunwind
2
+Version:	1.2
3
+Release:	1%{?dist}
4
+License:	X11
5
+URL:		http://www.nongnu.org/libunwind/
6
+Source0:	http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.gz
7
+%define sha1 libunwind=a33e52d7ecd18b9375508369b566eeb2cc6eec3b
8
+Group:		Utilities/Libraries
9
+Vendor:		VMware, Inc.
10
+Distribution: 	Photon
11
+
12
+%description
13
+Portable and efficient C programming interface (API) to determine the call-chain of a program. The API additionally provides the means to manipulate the preserved (callee-saved) state of each call-frame and to resume execution at any point in the call-chain (non-local goto). The API supports both local (same-process) and remote (across-process) operation. As such, the API is useful in a number of applications.
14
+
15
+%package devel
16
+Summary:        libunwind devel
17
+Group:          Development/Tools
18
+%description devel
19
+This contains development tools and libraries for libunwind.
20
+
21
+%prep
22
+%setup -q
23
+
24
+%build
25
+./configure \
26
+	--disable-silent-rules \
27
+	--prefix=%{_prefix} \
28
+	--bindir=%{_bindir} \
29
+	--libdir=%{_libdir}
30
+
31
+make %{?_smp_mflags}
32
+
33
+%install
34
+make DESTDIR=%{buildroot} install
35
+find %{buildroot} -name '*.la' -delete
36
+
37
+%files
38
+%defattr(-,root,root)
39
+%{_libdir}/libunwind*.so.*
40
+
41
+%files devel
42
+%{_includedir}/*unwind*
43
+%{_libdir}/libunwind*.a
44
+%{_libdir}/libunwind*.so
45
+%{_libdir}/pkgconfig/libunwind*
46
+
47
+%changelog
48
+*    Mon Feb 06 2017 Vinay Kulkarni <kulkarniv@vmware.com> 1.2-1
49
+-    Initial version of libunwind package for Photon.
0 50
new file mode 100644
... ...
@@ -0,0 +1,102 @@
0
+Summary:	Virtualization API library that supports KVM, QEMU, Xen, ESX etc
1
+Name:		libvirt
2
+Version:	3.0.0
3
+Release:	1%{?dist}
4
+License:	LGPL
5
+URL:		http://libvirt.org/
6
+Source0:	http://libvirt.org/sources/%{name}-%{version}.tar.xz
7
+%define sha1 libvirt=8a38fd5a0538a8ac05c8e4722bc4015c51237be0
8
+Group:		Virtualization/Libraries
9
+Vendor:		VMware, Inc.
10
+Distribution: 	Photon
11
+BuildRequires:  cyrus-sasl
12
+BuildRequires:  device-mapper-devel
13
+BuildRequires:  gnutls-devel
14
+BuildRequires:  libxml2-devel
15
+BuildRequires:  e2fsprogs-devel
16
+BuildRequires:  libcap-ng-devel
17
+BuildRequires:  libnl-devel
18
+BuildRequires:  libselinux-devel
19
+BuildRequires:  libssh2-devel
20
+BuildRequires:  systemd-devel
21
+BuildRequires:  parted
22
+BuildRequires:  python2-devel
23
+BuildRequires:  readline-devel
24
+Requires:       cyrus-sasl
25
+Requires:       device-mapper
26
+Requires:       gnutls
27
+Requires:       libxml2
28
+Requires:       e2fsprogs
29
+Requires:       libcap-ng
30
+Requires:       libnl
31
+Requires:       libselinux
32
+Requires:       libssh2
33
+Requires:       systemd
34
+Requires:       parted
35
+Requires:       python2
36
+Requires:       readline
37
+
38
+%description
39
+Libvirt is collection of software that provides a convenient way to manage virtual machines and other virtualization functionality, such as storage and network interface management. These software pieces include an API library, a daemon (libvirtd), and a command line utility (virsh).  An primary goal of libvirt is to provide a single way to manage multiple different virtualization providers/hypervisors. For example, the command 'virsh list --all' can be used to list the existing virtual machines for any supported hypervisor (KVM, Xen, VMWare ESX, etc.) No need to learn the hypervisor specific tools!
40
+
41
+%package docs
42
+Summary:        libvirt docs
43
+Group:          Development/Tools
44
+%description docs
45
+The contains libvirt package doc files.
46
+
47
+%package devel
48
+Summary:        libvirt devel
49
+Group:          Development/Tools
50
+%description devel
51
+This contains development tools and libraries for libvirt.
52
+
53
+%prep
54
+%setup -q
55
+
56
+%build
57
+./configure \
58
+	--disable-silent-rules \
59
+	--prefix=%{_prefix} \
60
+	--bindir=%{_bindir} \
61
+	--libdir=%{_libdir} \
62
+        --with-udev=no \
63
+        --with-pciaccess=no
64
+
65
+make %{?_smp_mflags}
66
+
67
+%install
68
+make DESTDIR=%{buildroot} install
69
+find %{buildroot} -name '*.la' -delete
70
+
71
+%files
72
+%defattr(-,root,root)
73
+%{_bindir}/*
74
+/etc/libvirt/*
75
+/etc/logrotate.d/libvirtd*
76
+/etc/sasl2/libvirt.conf
77
+%{_sysconfdir}/*
78
+%{_libdir}/libvirt*.so.*
79
+%{_libdir}/sysctl.d/60-libvirtd.conf
80
+%{_libdir}/systemd/system/*
81
+/usr/libexec/libvirt*
82
+%{_sbindir}/*
83
+
84
+%files devel
85
+%{_includedir}/libvirt/*
86
+%{_libdir}/libvirt*.so
87
+%{_libdir}/libvirt/connection-driver/*.so
88
+%{_libdir}/libvirt/lock-driver/*.so
89
+%{_libdir}/pkgconfig/libvirt*
90
+
91
+%files docs
92
+/usr/share/augeas/lenses/*
93
+/usr/share/doc/libvirt-3.0.0/*
94
+/usr/share/gtk-doc/*
95
+/usr/share/libvirt/*
96
+/usr/share/locale/*
97
+%{_mandir}/*
98
+
99
+%changelog
100
+*    Fri Feb 03 2017 Vinay Kulkarni <kulkarniv@vmware.com> 3.0.0-1
101
+-    Initial version of libvirt package for Photon.
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Open vSwitch daemon/database/utilities
2 2
 Name:           openvswitch
3 3
 Version:        2.6.1
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 License:        ASL 2.0 and LGPLv2+
6 6
 URL:            http://www.openvswitch.org/
7 7
 Group:          System Environment/Daemons
... ...
@@ -65,7 +65,8 @@ It contains the documentation and manpages for openvswitch.
65 65
         --libdir=%{_libdir} \
66 66
         --sysconfdir=/etc \
67 67
         --localstatedir=/var \
68
-        --enable-ssl
68
+        --enable-ssl \
69
+        --enable-shared
69 70
 
70 71
 make %{_smp_mflags}
71 72
 
... ...
@@ -110,6 +111,7 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
110 110
 %{_sbindir}/ovs-*
111 111
 %{_sbindir}/ovsdb-server
112 112
 %{_libdir}/systemd/system/openvswitch.service
113
+%{_libdir}/lib*
113 114
 /etc/bash_completion.d/ovs-*-bashcomp.bash
114 115
 /usr/share/openvswitch/*.ovsschema
115 116
 /usr/share/openvswitch/bugtool-plugins/*
... ...
@@ -136,6 +138,8 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
136 136
 /usr/share/man/man8/vtep-ctl.8.gz
137 137
 
138 138
 %changelog
139
+*	Fri Feb 10 2017 Vinay Kulkarni <kulkarniv@vmware.com> 2.6.1-2
140
+-	Build ovs shared library
139 141
 *	Wed Nov 16 2016 Vinay Kulkarni <kulkarniv@vmware.com> 2.6.1-1
140 142
 -	Update to openvswitch 2.6.1
141 143
 *	Sat Sep 24 2016 Vinay Kulkarni <kulkarniv@vmware.com> 2.5.0-1
142 144
new file mode 100644
... ...
@@ -0,0 +1,46 @@
0
+%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
1
+%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
2
+
3
+Name:           python-mako
4
+Version:        1.0.6
5
+Release:        1%{?dist}
6
+Summary:        Python templating language
7
+License:        MIT
8
+Group:          Development/Languages/Python
9
+Url:            https://pypi.python.org/packages/56/4b/cb75836863a6382199aefb3d3809937e21fa4cb0db15a4f4ba0ecc2e7e8e/Mako-%{version}.tar.gz
10
+Source0:        Mako-%{version}.tar.gz
11
+%define sha1    Mako=8cbc52319268525208c88dd3ef62c929069e4b24
12
+
13
+BuildRequires:  python2
14
+BuildRequires:  python2-libs
15
+BuildRequires:  python-setuptools
16
+
17
+Requires:       python2
18
+Requires:       python2-libs
19
+
20
+BuildArch:      noarch
21
+
22
+%description
23
+A super-fast templating language that borrows the best ideas from the existing templating languages. Mako is a template library written in Python. It provides a familiar, non-XML syntax which compiles into Python modules for maximum performance. Mako’s syntax and API borrows from the best ideas of many others, including Django templates, Cheetah, Myghty, and Genshi.
24
+
25
+%prep
26
+%setup -n Mako-%{version}
27
+
28
+%build
29
+python setup.py build
30
+
31
+%install
32
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
33
+
34
+%check
35
+easy_install py
36
+%{__python} test_mako.py
37
+
38
+%files
39
+%defattr(-,root,root,-)
40
+/usr/bin/mako-render
41
+%{python_sitelib}/*
42
+
43
+%changelog
44
+*   Fri Feb 03 2017 Vinay Kulkarni <kulkarniv@vmware.com> 1.0.6-1
45
+-   Initial version of python-mako package for Photon.
0 46
new file mode 100644
... ...
@@ -0,0 +1,46 @@
0
+%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
1
+%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
2
+
3
+Name:           python-netaddr
4
+Version:        0.7.19
5
+Release:        1%{?dist}
6
+Summary:        A network address manipulation library for Python
7
+License:        MIT
8
+Group:          Development/Languages/Python
9
+Url:            https://pypi.python.org/packages/0c/13/7cbb180b52201c07c796243eeff4c256b053656da5cfe3916c3f5b57b3a0/netaddr-0.7.19.tar.gz
10
+Source0:        netaddr-%{version}.tar.gz
11
+%define sha1    netaddr=00e0ce7d7ebc1d6e7943e884aa51ccb7becdc9ea
12
+
13
+BuildRequires:  python2
14
+BuildRequires:  python2-libs
15
+BuildRequires:  python-setuptools
16
+
17
+Requires:       python2
18
+Requires:       python2-libs
19
+
20
+BuildArch:      noarch
21
+
22
+%description
23
+A network address manipulation library for Python
24
+
25
+%prep
26
+%setup -n netaddr-%{version}
27
+
28
+%build
29
+python setup.py build
30
+
31
+%install
32
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
33
+
34
+%check
35
+easy_install py
36
+%{__python} test_netadr.py
37
+
38
+%files
39
+%defattr(-,root,root,-)
40
+/usr/bin/netaddr
41
+%{python_sitelib}/*
42
+
43
+%changelog
44
+*   Fri Feb 03 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.7.19-1
45
+-   Initial version of python-netaddr package for Photon.