Dominique Leuenberger 2022-03-28 14:58:44 +00:00 committed by Git OBS Bridge
commit 96d8d4cfd0
3 changed files with 29 additions and 5 deletions

View File

@ -1,6 +1,4 @@
# Since the main package is a devel package: # Since the main package is a devel package:
addFilter("devel-file-in-non-devel-package") addFilter("non-devel-file-in-devel-package")
# Symlinks are intentionally not generated for the SO:
addFilter("shlib-policy-missing-suffix")
# The package doesn't provide any libraries anymore: # The package doesn't provide any libraries anymore:
addFilter("obsolete-not-provided libgoogletest0") addFilter("obsolete-not-provided libgoogletest0")

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Feb 2 15:56:01 UTC 2022 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- Add missing ldconfig calls in %post/%postun
- Enable unit tests on Tumbleweed (fails on 15.x)
- Update rpmlintrc for rpmlint 2.0
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jan 5 09:15:53 UTC 2022 - Dirk Müller <dmueller@suse.com> Wed Jan 5 09:15:53 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -16,6 +16,12 @@
# #
%if 0%{?suse_version} >= 1550
%bcond_without tests
%else
%bcond_with tests
%endif
%define _name googlemock %define _name googlemock
Name: googletest Name: googletest
Version: 1.11.0 Version: 1.11.0
@ -77,8 +83,11 @@ with googlemock.
%setup -q -n %{name}-release-%{version} %setup -q -n %{name}-release-%{version}
%build %build
%cmake %cmake \
%make_jobs %{?with_tests:-Dgtest_build_tests=ON} \
%{?with_tests:-Dgmock_build_tests=ON} \
%{nil}
%cmake_build
%install %install
%cmake_install %cmake_install
@ -86,6 +95,16 @@ with googlemock.
mkdir -p %{buildroot}%{_includedir}/gmock/src && install -m 0644 googlemock/src/* %{buildroot}%{_includedir}/gmock/src mkdir -p %{buildroot}%{_includedir}/gmock/src && install -m 0644 googlemock/src/* %{buildroot}%{_includedir}/gmock/src
mkdir -p %{buildroot}%{_includedir}/gtest/src && install -m 0644 googletest/src/* %{buildroot}%{_includedir}/gtest/src mkdir -p %{buildroot}%{_includedir}/gtest/src && install -m 0644 googletest/src/* %{buildroot}%{_includedir}/gtest/src
%check
%if %{with tests}
%ctest
%endif
%post -n gtest -p /sbin/ldconfig
%postun -n gtest -p /sbin/ldconfig
%post -n gmock -p /sbin/ldconfig
%postun -n gmock -p /sbin/ldconfig
%files -n gtest %files -n gtest
%license LICENSE %license LICENSE
%doc README.md %doc README.md