[cmockery2/el5] EL5

Luis Pabon lpabon at fedoraproject.org
Wed Mar 19 20:27:50 UTC 2014


commit 5b5b1f7e46cbb46652a28fe450bdf65f3895f6da
Author: Luis Pabon <lpabon at redhat.com>
Date:   Wed Mar 19 16:27:37 2014 -0400

    EL5

 .gitignore     |    1 +
 cmockery2.spec |   94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources        |    1 +
 3 files changed, 96 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..65bc6b1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cmockery2-1.3.4.tar.gz
diff --git a/cmockery2.spec b/cmockery2.spec
new file mode 100644
index 0000000..e945d11
--- /dev/null
+++ b/cmockery2.spec
@@ -0,0 +1,94 @@
+Name:           cmockery2
+Summary:        Lightweight C unit testing framework
+Version:        1.3.4
+Release:        1%{?dist}
+Group:          System Environment/Libraries
+URL:            https://github.com/lpabon/%{name}
+License:        ASL 2.0
+Source0:        https://github.com/lpabon/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
+Buildroot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+BuildRequires:    automake libtool
+
+%description
+Cmockery tests are compiled into a stand-alone executable and linked
+with the cmockery library, the standard C library and module being
+tested. Any symbols external to the module being tested should be
+mocked - replaced with functions that return values determined by
+the test - within the test application. Even though significant
+differences may exist between the target execution environment of a
+code module and the environment used to test the code the unit
+testing is still valid since its goal is to test the logic of a
+code modules at a functional level and not necessarily all of its
+interactions with the target execution environment.
+
+Other features:
+* Lightweight C Unit test with mocking support
+* JUnit XML report output which can be used with Jenkins
+* Provides design-by-contract support
+
+This project is a successor of http://code.google.com/p/cmockery-staging/
+which is a successor of Google's http://code.google.com/p/cmockery/.
+
+%package devel
+Summary:        Lightweight C unit testing framework
+Group:          Development/Libraries
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+Cmockery tests are compiled into a stand-alone executable and linked
+with the Cmockery library, the standard C library and module being
+tested. Any symbols external to the module being tested should be
+mocked - replaced with functions that return values determined by
+the test - within the test application. Even though significant
+differences may exist between the target execution environment of a
+code module and the environment used to test the code the unit
+testing is still valid since its goal is to test the logic of a
+code modules at a functional level and not necessarily all of its
+interactions with the target execution environment.
+
+Other features:
+* Lightweight C Unit test with mocking support
+* JUnit XML report output which can be used with Jenkins
+* Provides design-by-contract support
+
+This project is a successor of http://code.google.com/p/cmockery-staging/
+which is a successor of Google's http://code.google.com/p/cmockery/.
+
+Package provides necessary headers for C unit test development
+
+%prep
+%setup -q
+
+%build
+./autogen.sh
+%configure
+make %{?_smp_mflags}
+
+%install
+%{__rm} -rf %{buildroot}
+%make_install
+
+%check
+make check
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%files
+%{_docdir}/cmockery*
+%{_libdir}/libcmockery.so.*
+
+%files devel
+%{_includedir}/cmockery*
+%{_libdir}/libcmockery.so
+%exclude %{_libdir}/libcmockery.a
+%exclude %{_libdir}/libcmockery.la
+
+%changelog
+* Thu Mar 13 2014 Luis Pabon, Jr. <lpabon at redhat.com> - 1.3.4-1
+- Initial Fedora release
+
diff --git a/sources b/sources
index e69de29..d942b91 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+bf5db46c93f8eee101c1b95931360130  cmockery2-1.3.4.tar.gz


More information about the scm-commits mailing list