Change-Id: I0ec498a31e22aa26aa4f090a1f4bc342faee4dfe
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2977
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Divya Thaluru <dthaluru@vmware.com>
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,72 @@ |
| 0 |
+%{!?python2_sitelib: %define python2_sitelib %(python2 -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 |
+Summary: The gcovr command provides a utility for managing the use of the GNU gcov utility |
|
| 4 |
+Name: gcovr |
|
| 5 |
+Version: 3.3 |
|
| 6 |
+Release: 1%{?dist}
|
|
| 7 |
+License: BSD Clause-3 |
|
| 8 |
+URL: http://gcovr.com/ |
|
| 9 |
+Source0: https://github.com/gcovr/gcovr/archive/%{name}-%{version}.tar.gz
|
|
| 10 |
+%define sha1 gcovr=880f1497859e83a45572914067a3a0ccae964ad5 |
|
| 11 |
+Group: Development/Tools |
|
| 12 |
+Vendor: VMware, Inc. |
|
| 13 |
+Distribution: Photon |
|
| 14 |
+BuildRequires: python2 |
|
| 15 |
+BuildRequires: python2-libs |
|
| 16 |
+BuildRequires: python2-devel |
|
| 17 |
+BuildRequires: python-setuptools |
|
| 18 |
+Requires: python2 |
|
| 19 |
+Requires: python2-libs |
|
| 20 |
+Buildarch: noarch |
|
| 21 |
+%description |
|
| 22 |
+The gcovr command provides a utility for managing the use of the GNU gcov utility and generating summarized code coverage results. This command is inspired by the Python coverage.py package, which provides a similar utility in Python. Gcovr produces either compact human-readable summary reports, machine readable XML reports or a simple HTML summary. |
|
| 23 |
+ |
|
| 24 |
+%package -n python3-gcovr |
|
| 25 |
+Summary: python3-gcovr |
|
| 26 |
+BuildRequires: python3-devel |
|
| 27 |
+BuildRequires: python3-libs |
|
| 28 |
+ |
|
| 29 |
+Requires: python3 |
|
| 30 |
+Requires: python3-libs |
|
| 31 |
+%description -n python3-gcovr |
|
| 32 |
+ |
|
| 33 |
+%prep |
|
| 34 |
+%setup -q |
|
| 35 |
+rm -rf ../p3dir |
|
| 36 |
+cp -a . ../p3dir |
|
| 37 |
+ |
|
| 38 |
+%build |
|
| 39 |
+python2 setup.py build |
|
| 40 |
+ |
|
| 41 |
+pushd ../p3dir |
|
| 42 |
+python3 setup.py build |
|
| 43 |
+popd |
|
| 44 |
+%install |
|
| 45 |
+pushd ../p3dir |
|
| 46 |
+python3 setup.py install --skip-build --prefix=%{_prefix} --root=%{buildroot}
|
|
| 47 |
+popd |
|
| 48 |
+mv %{buildroot}/%{_bindir}/gcovr %{buildroot}/%{_bindir}/gcovr3
|
|
| 49 |
+ |
|
| 50 |
+python2 setup.py install --skip-build --prefix=%{_prefix} --root=%{buildroot}
|
|
| 51 |
+ |
|
| 52 |
+ |
|
| 53 |
+%check |
|
| 54 |
+python2 setup.py test |
|
| 55 |
+python3 setup.py test |
|
| 56 |
+ |
|
| 57 |
+%files |
|
| 58 |
+%defattr(-,root,root) |
|
| 59 |
+%doc README.md LICENSE.txt CHANGELOG.txt |
|
| 60 |
+%{python2_sitelib}*
|
|
| 61 |
+%{_bindir}/gcovr
|
|
| 62 |
+ |
|
| 63 |
+%files -n python3-gcovr |
|
| 64 |
+%defattr(-,root,root) |
|
| 65 |
+%doc README.md LICENSE.txt CHANGELOG.txt |
|
| 66 |
+%{_bindir}/gcovr3
|
|
| 67 |
+%{python3_sitelib}*
|
|
| 68 |
+ |
|
| 69 |
+%changelog |
|
| 70 |
+* Fri Jun 09 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 3.3-1 |
|
| 71 |
+- Initial build. First version |
| 0 | 72 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,47 @@ |
| 0 |
+%global debug_package %{nil}
|
|
| 1 |
+Summary: A fast JSON parser/generator for C++ with both SAX/DOM style API |
|
| 2 |
+Name: rapidjson |
|
| 3 |
+Version: 1.1.0 |
|
| 4 |
+Release: 1%{?dist}
|
|
| 5 |
+License: BSD, JSON, MIT |
|
| 6 |
+URL: https://github.com/gcc-mirror/gcc/blob/master/gcc/gcov.c |
|
| 7 |
+Source0: https://github.com/miloyip/rapidjson/archive/%{name}-%{version}.tar.gz
|
|
| 8 |
+%define sha1 rapidjson=a3e0d043ad3c2d7638ffefa3beb30a77c71c869f |
|
| 9 |
+Group: Development/Tools |
|
| 10 |
+Vendor: VMware, Inc. |
|
| 11 |
+Distribution: Photon |
|
| 12 |
+BuildRequires: cmake |
|
| 13 |
+%description |
|
| 14 |
+RapidJSON is a JSON parser and generator for C++. It was inspired by RapidXml. |
|
| 15 |
+ |
|
| 16 |
+%package devel |
|
| 17 |
+Summary: Fast JSON parser and generator for C++ |
|
| 18 |
+Group: Development/Libraries/C and C++ |
|
| 19 |
+Provides: %{name} == %{version}
|
|
| 20 |
+ |
|
| 21 |
+%description devel |
|
| 22 |
+RapidJSON is a header-only JSON parser and generator for C++. |
|
| 23 |
+This package contains development headers and examples. |
|
| 24 |
+ |
|
| 25 |
+%prep |
|
| 26 |
+%setup -q |
|
| 27 |
+ |
|
| 28 |
+%build |
|
| 29 |
+mkdir build && cd build |
|
| 30 |
+cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} -DBUILD_SHARED_LIBS=ON ..
|
|
| 31 |
+make %{?_smp_mflags}
|
|
| 32 |
+ |
|
| 33 |
+%install |
|
| 34 |
+cd build |
|
| 35 |
+make DESTDIR=%{buildroot} install
|
|
| 36 |
+ |
|
| 37 |
+%files devel |
|
| 38 |
+%defattr(-,root,root) |
|
| 39 |
+%dir %{_libdir}/cmake/RapidJSON
|
|
| 40 |
+%{_libdir}/cmake/RapidJSON/*
|
|
| 41 |
+%{_libdir}/pkgconfig/*.pc
|
|
| 42 |
+%{_includedir}
|
|
| 43 |
+%{_datadir}
|
|
| 44 |
+%changelog |
|
| 45 |
+* Fri Jun 09 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.1.0-1 |
|
| 46 |
+- Initial build. First version |