peter pushed to gmock (epel7). "Initial import (#676930)."

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Mar 26 14:48:33 UTC 2015


>From 66306954a98fa801382bdcf35c3be6c8f5badad7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Terje=20R=F8sten?= <terje.rosten at ntnu.no>
Date: Wed, 16 Feb 2011 08:27:07 +0100
Subject: Initial import (#676930).


diff --git a/.gitignore b/.gitignore
index e69de29..c130e5a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gmock-1.5.0.tar.bz2
diff --git a/gmock.spec b/gmock.spec
new file mode 100644
index 0000000..94f25e9
--- /dev/null
+++ b/gmock.spec
@@ -0,0 +1,102 @@
+Summary:        Google C++ Mocking Framework
+Name:           gmock
+Version:        1.5.0
+Release:        1%{?dist}
+License:        BSD
+Group:          System Environment/Libraries
+URL:            http://code.google.com/p/googlemock/
+Source0:        http://googlemock.googlecode.com/files/gmock-%{version}.tar.bz2
+BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+BuildRequires:  gtest-devel >= 1.5.0
+BuildRequires:  autoconf
+BuildRequires:  automake
+BuildRequires:  libtool
+BuildRequires:  python
+Requires:       gtest >= 1.5.0
+
+%description
+Inspired by jMock, EasyMock, and Hamcrest, and designed with C++'s
+specifics in mind, Google C++ Mocking Framework (or Google Mock for
+short) is a library for writing and using C++ mock classes.
+
+Google Mock:
+
+ o lets you create mock classes trivially using simple macros,
+ o supports a rich set of matchers and actions,
+ o handles unordered, partially ordered, or completely ordered
+   expectations,
+ o is extensible by users, and
+ o works on Linux, Mac OS X, Windows, Windows Mobile, minGW, and
+   Symbian.
+
+%package        devel
+Summary:        Development files for %{name}
+Group:          System Environment/Libraries
+Requires:       %{name} = %{version}-%{release}
+
+%description    devel
+This package contains development files for %{name}.
+
+%prep
+%setup -q
+# Only acx_pthread.m4 needed from gtest, 
+# save the rest for use in make check
+mv gtest gtest.rpmbuild
+install -D -p -m 0644 gtest.rpmbuild/m4/acx_pthread.m4 \
+    gtest/m4/acx_pthread.m4 
+
+%build
+# needed for mahe check to work without failures
+autoreconf -fvi     
+%configure --disable-static
+# Omit unused direct shared library dependencies and rpaths
+sed -i -e 's| -shared | -Wl,--as-needed\0|g' libtool
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make install INSTALL="%{__install} -p" DESTDIR=%{buildroot}
+find %{buildroot} -type f -name "*.la" -delete
+
+%check
+# restore gtest for make check to work
+rm -rf gtest
+mv gtest.rpmbuild gtest
+make check
+
+%clean
+rm -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-, root, root, -)
+%doc CHANGES CONTRIBUTORS COPYING README
+%{_libdir}/libgmock.so.*
+%{_libdir}/libgmock_main.so.*
+
+%files devel
+%defattr(-, root, root, -)
+%{_bindir}/gmock-config
+%{_bindir}/gmock_doctor.py
+%{_libdir}/libgmock.so
+%{_libdir}/libgmock_main.so
+%{_includedir}/gmock
+
+%changelog
+* Wed Jan 12 2011 Terje Rosten <terje.rosten at ntnu.no> - 1.5.0-1
+- 1.5.0
+- req gtest 1.5.0
+- fix description
+- fix group
+- fix files section
+- remove name macro
+- rpmlint error free
+- don't build with bundled gtest
+- make check works
+- add some buildreqs
+
+* Sun Oct 4 2009 Tejas Dinkar <tejas at gja.in> - 1.4.0-1
+- Initial gmock 1.4.0
diff --git a/sources b/sources
index e69de29..06dcc72 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d738cfee341ad10ce0d7a0cc4209dd5e  gmock-1.5.0.tar.bz2
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/gmock.git/commit/?h=epel7&id=66306954a98fa801382bdcf35c3be6c8f5badad7


More information about the scm-commits mailing list