add packaging
authorAnas Nashif <anas.nashif@intel.com>
Tue, 30 Oct 2012 21:59:35 +0000 (14:59 -0700)
committerJongmin Lee <jm105.lee@samsung.com>
Wed, 29 Aug 2018 04:34:07 +0000 (13:34 +0900)
packaging/baselibs.conf [new file with mode: 0644]
packaging/check.changes [new file with mode: 0644]
packaging/check.spec [new file with mode: 0644]

diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644 (file)
index 0000000..f03fc12
--- /dev/null
@@ -0,0 +1 @@
+check
diff --git a/packaging/check.changes b/packaging/check.changes
new file mode 100644 (file)
index 0000000..4580f8b
--- /dev/null
@@ -0,0 +1,3 @@
+* Wed Feb 06 2013 Anas Nashif <anas.nashif@intel.com> upstream/0.9.8@3610581
+- Cleanup spec file
+
diff --git a/packaging/check.spec b/packaging/check.spec
new file mode 100644 (file)
index 0000000..0f0beb8
--- /dev/null
@@ -0,0 +1,68 @@
+Name:           check
+Version:        0.9.8
+Release:        3
+License:        LGPL-2.1+
+Summary:        Unit Test Framework for C
+Url:            http://check.sourceforge.net/
+Group:          Development/Libraries/C and C++
+Source:         %{name}-%{version}.tar.bz2
+Source99:       baselibs.conf
+BuildRequires:  pkg-config
+
+%description
+Check is a unit test framework for C. It features a simple interfacefor
+defining unit tests, limitating the developer the less possible. Tests
+are run in a separate address space, so Check cancatch both, assertion
+failures and code errors that cause segmentationfaults or other
+signals. The output of unit tests can be used within source code
+editors and IDEs.
+
+%package devel
+License:        LGPL-2.1+
+Summary:        Unit Test Framework for C
+Group:          Development/Libraries/C and C++
+Requires:       %{name} = %{version}
+Requires:       glibc-devel
+Recommends:     pgk-config
+
+%description devel
+Check is a unit test framework for C. It features a simple interface
+for defining unit tests, putting little in the way of the developer.
+Tests are run in a separate address space, so Check can catch both
+assertion failures and code errors that cause segmentation faults or
+other signals. The output from unit tests can be used within source
+code editors and IDEs.
+
+%prep
+%setup -q
+
+%build
+export CFLAGS="%{optflags} -std=gnu99"
+export CXXFLAGS="%{optflags} -std=gnu99"
+export FFLAGS="%{optflags} -std=gnu99"
+%configure --disable-static --with-pic
+make %{?_smp_mflags} 
+
+%install
+%make_install 
+
+%remove_docs
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr (-, root, root)
+%license COPYING.*
+%{_libdir}/*.so.*
+
+%files devel
+%defattr (-, root, root)
+%dir %{_datadir}/aclocal
+%{_datadir}/aclocal/*.m4
+%{_includedir}/*.h
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*.pc
+
+%changelog