tizen: Intial packaging of googletest-1.7.0 35/23135/18
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Fri, 10 Nov 2017 16:42:06 +0000 (17:42 +0100)
committerPhil Coval <p.coval@samsung.com>
Thu, 9 May 2019 15:26:51 +0000 (15:26 +0000)
Formerly know as gtest,

Change-Id: If95d302cbfd47ba3d63c6acbd008d6b01d0a3ec3
Bug-IoTivity: https://jira.iotivity.org/browse/IOT-2241
Bug-Tizen: https://bugs.tizen.org/browse/SO-1063
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
extlibs/gtest/googletest.spec [new file with mode: 0644]

diff --git a/extlibs/gtest/googletest.spec b/extlibs/gtest/googletest.spec
new file mode 100644 (file)
index 0000000..5e643a9
--- /dev/null
@@ -0,0 +1,33 @@
+Name: googletest
+Version: 1.7.0
+Release: 0
+Summary: Lib for unit testing
+Source: %{name}-%{version}.tar.gz
+License: BSD-3-Clause
+BuildRequires: make
+
+%description
+Lib for unit testing
+
+%prep
+
+%setup -q -n %{name}-%{version}
+
+%build
+
+%reconfigure
+%__make
+
+echo "TODO: make_install to preserve static lib"
+rpm --eval '%make_install'
+install -d "%{buildroot}/%{_includedir}/" "%{buildroot}/%{_libdir}/"
+cp -rfa include/gtest "%{buildroot}/%{_includedir}/"
+cp -a lib/.libs/lib*.a "%{buildroot}/%{_libdir}/"
+touch debugsources.list
+
+%clean
+
+%files
+%license LICENSE
+%{_includedir}/*
+%{_libdir}/*