Change-Id: Ia85880f3942e59055f0121c358efeab5e5276d84
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2334
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,67 @@ |
0 |
+Summary: Google's C++ logging module |
|
1 |
+Name: glog |
|
2 |
+Version: 0.3.4 |
|
3 |
+Release: 1%{?dist} |
|
4 |
+License: BSD |
|
5 |
+URL: https://github.com/google/glog |
|
6 |
+Source0: https://github.com/google/glog/archive/%{name}-v%{version}.tar.gz |
|
7 |
+%define sha1 glog=69f91cd5a1de35ead0bc4103ea87294b0206a456 |
|
8 |
+Group: Development/Tools |
|
9 |
+Vendor: VMware, Inc. |
|
10 |
+Distribution: Photon |
|
11 |
+BuildRequires: autoconf |
|
12 |
+BuildRequires: automake |
|
13 |
+BuildRequires: make |
|
14 |
+BuildRequires: gcc |
|
15 |
+BuildRequires: libgcc |
|
16 |
+BuildRequires: libtool |
|
17 |
+ |
|
18 |
+%description |
|
19 |
+Google's C++ logging module |
|
20 |
+ |
|
21 |
+%package devel |
|
22 |
+Summary: glog devel |
|
23 |
+Group: Development/Tools |
|
24 |
+%description devel |
|
25 |
+This contains development tools and libraries for glog. |
|
26 |
+ |
|
27 |
+%package docs |
|
28 |
+Summary: glog docs |
|
29 |
+Group: Development/Tools |
|
30 |
+%description docs |
|
31 |
+The contains glog package doc files. |
|
32 |
+ |
|
33 |
+%prep |
|
34 |
+%setup -n %{name}-%{version} |
|
35 |
+ |
|
36 |
+%build |
|
37 |
+./configure \ |
|
38 |
+ --disable-silent-rules \ |
|
39 |
+ --includedir=%{_includedir} \ |
|
40 |
+ --libdir=%{_libdir} \ |
|
41 |
+ --mandir=%{_mandir} \ |
|
42 |
+ --docdir=%{_docdir} |
|
43 |
+make |
|
44 |
+ |
|
45 |
+%install |
|
46 |
+make DESTDIR=%{buildroot} install |
|
47 |
+find %{buildroot} -name '*.la' -delete |
|
48 |
+ |
|
49 |
+%files |
|
50 |
+%defattr(-,root,root) |
|
51 |
+%{_libdir}/libglog.so.* |
|
52 |
+ |
|
53 |
+%files devel |
|
54 |
+%defattr(-,root,root) |
|
55 |
+%{_includedir}/%{name}/* |
|
56 |
+%{_libdir}/libglog.a |
|
57 |
+%{_libdir}/libglog.so |
|
58 |
+%{_libdir}/pkgconfig/libglog.pc |
|
59 |
+ |
|
60 |
+%files docs |
|
61 |
+%defattr(-,root,root) |
|
62 |
+/usr/local/share/doc/%{name}-%{version}/* |
|
63 |
+ |
|
64 |
+%changelog |
|
65 |
+* Sat Mar 25 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.3.4-1 |
|
66 |
+- Initial version of glog for Photon. |
0 | 67 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,66 @@ |
0 |
+Summary: A C++ JSON Parser/Generator |
|
1 |
+Name: json_spirit |
|
2 |
+Version: 4.08 |
|
3 |
+Release: 1%{?dist} |
|
4 |
+License: MIT |
|
5 |
+URL: https://www.codeproject.com/Articles/20027/JSON-Spirit-A-C-JSON-Parser-Generator-Implemented |
|
6 |
+Source0: https://www.codeproject.com/KB/recipes/JSON_Spirit/json_spirit_v4.08.zip |
|
7 |
+%define sha1 json_spirit=d46a896991b7eb736bff2628909645d3bbaaf5cf |
|
8 |
+Group: Development/Tools |
|
9 |
+Vendor: VMware, Inc. |
|
10 |
+Distribution: Photon |
|
11 |
+BuildRequires: autoconf |
|
12 |
+BuildRequires: automake |
|
13 |
+BuildRequires: boost |
|
14 |
+BuildRequires: boost-devel |
|
15 |
+BuildRequires: cmake |
|
16 |
+BuildRequires: make |
|
17 |
+BuildRequires: gcc |
|
18 |
+BuildRequires: unzip |
|
19 |
+Requires: boost |
|
20 |
+ |
|
21 |
+%description |
|
22 |
+JSON Spirit is a C++ library that reads and writes JSON files or streams. It |
|
23 |
+is written using the Boost Spirit parser generator. |
|
24 |
+ |
|
25 |
+%package devel |
|
26 |
+Summary: json_spirit devel |
|
27 |
+Group: Development/Tools |
|
28 |
+%description devel |
|
29 |
+This contains development tools and libraries for json_spirit. |
|
30 |
+ |
|
31 |
+%prep |
|
32 |
+%setup -n json_spirit_v%{version} |
|
33 |
+export BOOST_ROOT=/usr |
|
34 |
+export BOOST_INCLUDEDIR=/usr/include/boost |
|
35 |
+ |
|
36 |
+%build |
|
37 |
+mkdir -p build |
|
38 |
+cd build |
|
39 |
+# Build static lib |
|
40 |
+cmake .. |
|
41 |
+make CXX_FLAGS='-std=c++98' |
|
42 |
+# Build shared lib |
|
43 |
+pushd ../json_spirit |
|
44 |
+sed -i s/"json_spirit STATIC"/"json_spirit SHARED"/g CMakeLists.txt |
|
45 |
+popd |
|
46 |
+cmake .. |
|
47 |
+make CXX_FLAGS='-std=c++98 -fPIC' |
|
48 |
+ |
|
49 |
+%install |
|
50 |
+cd build |
|
51 |
+make DESTDIR=%{buildroot} install |
|
52 |
+install -v -D json_spirit/libjson_spirit.so -t %{buildroot}/usr/lib/ |
|
53 |
+ |
|
54 |
+%files |
|
55 |
+%defattr(-,root,root) |
|
56 |
+/usr/lib/libjson_spirit.so |
|
57 |
+ |
|
58 |
+%files devel |
|
59 |
+%defattr(-,root,root) |
|
60 |
+/usr/local/include/json_spirit* |
|
61 |
+/usr/local/lib/libjson_spirit.a |
|
62 |
+ |
|
63 |
+%changelog |
|
64 |
+* Sat Mar 25 2017 Vinay Kulkarni <kulkarniv@vmware.com> 4.08-1 |
|
65 |
+- Initial version of json_spirit for Photon. |
0 | 66 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,43 @@ |
0 |
+Name: python-fuse |
|
1 |
+Version: 0.2.1 |
|
2 |
+Release: 1%{?dist} |
|
3 |
+Summary: Python interface to libfuse |
|
4 |
+License: LGPL |
|
5 |
+Group: Development/Languages/Python |
|
6 |
+Url: https://github.com/libfuse/%{name}/archive/%{version}.tar.gz |
|
7 |
+Source0: %{name}-%{version}.tar.gz |
|
8 |
+%define sha1 python-fuse=789a922e0c11ed961c469794c73ea7b9ef88eb5f |
|
9 |
+Vendor: VMware, Inc. |
|
10 |
+Distribution: Photon |
|
11 |
+BuildRequires: fuse |
|
12 |
+BuildRequires: fuse-devel |
|
13 |
+BuildRequires: pkg-config |
|
14 |
+BuildRequires: python2 |
|
15 |
+BuildRequires: python2-libs |
|
16 |
+BuildRequires: python-setuptools |
|
17 |
+Requires: fuse |
|
18 |
+Requires: python2 |
|
19 |
+Requires: python2-libs |
|
20 |
+ |
|
21 |
+%description |
|
22 |
+FUSE (Filesystem in USErspace) is a simple interface for userspace programs to export a virtual filesystem to the linux kernel. "fuse.py" reexports the root filesystem within the mount point. It also offers a class, fuse.Fuse, which can be subclassed to create a filesystem. |
|
23 |
+ |
|
24 |
+%prep |
|
25 |
+%setup -n %{name}-%{version} |
|
26 |
+ |
|
27 |
+%build |
|
28 |
+python setup.py build |
|
29 |
+ |
|
30 |
+%install |
|
31 |
+python setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
32 |
+ |
|
33 |
+%check |
|
34 |
+easy_install py |
|
35 |
+ |
|
36 |
+%files |
|
37 |
+%defattr(-,root,root,-) |
|
38 |
+%{python_sitelib}/fuse* |
|
39 |
+ |
|
40 |
+%changelog |
|
41 |
+* Thu Apr 06 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.2.1-1 |
|
42 |
+- Initial version of python-fuse package for Photon. |