| 1 | Name: check
|
|---|
| 2 | Version: 0.12.0
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: A unit test framework for C
|
|---|
| 5 | License: LGPLv2+
|
|---|
| 6 | URL: http://libcheck.github.io/check/
|
|---|
| 7 | Group: Development/Tools
|
|---|
| 8 |
|
|---|
| 9 | Vendor: bww bitwise works GmbH
|
|---|
| 10 | %scm_source github https://github.com/bitwiseworks/check-os2 %{version}-os2
|
|---|
| 11 |
|
|---|
| 12 | # DEF files to create forwarders for the legacy package
|
|---|
| 13 | Source10: check.def
|
|---|
| 14 |
|
|---|
| 15 | BuildRequires: gcc
|
|---|
| 16 | BuildRequires: libtool
|
|---|
| 17 | #BuildRequires: patchutils
|
|---|
| 18 | BuildRequires: pkgconfig
|
|---|
| 19 | #BuildRequires: subunit-devel
|
|---|
| 20 | BuildRequires: texinfo
|
|---|
| 21 |
|
|---|
| 22 | %description
|
|---|
| 23 | Check is a unit test framework for C. It features a simple interface for
|
|---|
| 24 | defining unit tests, putting little in the way of the developer. Tests
|
|---|
| 25 | are run in a separate address space, so Check can catch both assertion
|
|---|
| 26 | failures and code errors that cause segmentation faults or other signals.
|
|---|
| 27 | The output from unit tests can be used within source code editors and IDEs.
|
|---|
| 28 |
|
|---|
| 29 | %package devel
|
|---|
| 30 | Summary: Libraries and headers for developing programs with check
|
|---|
| 31 | Group: Development/Libraries
|
|---|
| 32 | Requires: pkgconfig
|
|---|
| 33 | Requires: %{name} = %{version}-%{release}
|
|---|
| 34 |
|
|---|
| 35 | %description devel
|
|---|
| 36 | Libraries and headers for developing programs with check
|
|---|
| 37 |
|
|---|
| 38 | %package static
|
|---|
| 39 | Summary: Static libraries of check
|
|---|
| 40 | Group: Development/Libraries
|
|---|
| 41 |
|
|---|
| 42 | %description static
|
|---|
| 43 | Static libraries of check.
|
|---|
| 44 |
|
|---|
| 45 | %package checkmk
|
|---|
| 46 | Summary: Translate concise versions of test suites into C programs
|
|---|
| 47 | License: BSD
|
|---|
| 48 | BuildArch: noarch
|
|---|
| 49 | Requires: %{name} = %{version}-%{release}
|
|---|
| 50 |
|
|---|
| 51 | %description checkmk
|
|---|
| 52 | The checkmk binary translates concise versions of test suites into C
|
|---|
| 53 | programs suitable for use with the Check unit test framework.
|
|---|
| 54 |
|
|---|
| 55 | %debug_package
|
|---|
| 56 |
|
|---|
| 57 |
|
|---|
| 58 | %prep
|
|---|
| 59 | %scm_setup
|
|---|
| 60 |
|
|---|
| 61 | # Get rid of version control files
|
|---|
| 62 | find . -name .cvsignore -exec rm {} +
|
|---|
| 63 |
|
|---|
| 64 | # Regenerate configure
|
|---|
| 65 | autoreconf -ivf
|
|---|
| 66 |
|
|---|
| 67 | # Prepare forwarder DLLs.
|
|---|
| 68 | for m in %{SOURCE10}; do
|
|---|
| 69 | cp ${m} .
|
|---|
| 70 | done
|
|---|
| 71 |
|
|---|
| 72 |
|
|---|
| 73 | %build
|
|---|
| 74 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 75 | export LIBS="-lcx"
|
|---|
| 76 | export VENDOR="%{vendor}"
|
|---|
| 77 |
|
|---|
| 78 | %configure
|
|---|
| 79 |
|
|---|
| 80 | make %{?_smp_mflags}
|
|---|
| 81 |
|
|---|
| 82 | %install
|
|---|
| 83 | make DESTDIR=$RPM_BUILD_ROOT install
|
|---|
| 84 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|---|
| 85 | rm -rf $RPM_BUILD_ROOT%{_infodir}/dir
|
|---|
| 86 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
|
|---|
| 87 |
|
|---|
| 88 |
|
|---|
| 89 | # Generate & install forwarder DLLs.
|
|---|
| 90 | gcc -Zomf -Zdll -nostdlib check.def -l$RPM_BUILD_ROOT/%{_libdir}/check0.dll -lend -o $RPM_BUILD_ROOT/%{_libdir}/check.dll
|
|---|
| 91 |
|
|---|
| 92 |
|
|---|
| 93 | %check
|
|---|
| 94 | #export LD_LIBRARY_PATH=$PWD/src/.libs
|
|---|
| 95 | #make check
|
|---|
| 96 | # Don't need to package the sh, log or trs files
|
|---|
| 97 | # when we scoop the other checkmk/test files for doc
|
|---|
| 98 | rm -rf checkmk/test/check_checkmk*
|
|---|
| 99 | # these files are empty
|
|---|
| 100 | rm -rf checkmk/test/empty_input
|
|---|
| 101 |
|
|---|
| 102 |
|
|---|
| 103 | %files
|
|---|
| 104 | %doc AUTHORS ChangeLog
|
|---|
| 105 | %license COPYING.LESSER
|
|---|
| 106 | %{_libdir}/*.dll
|
|---|
| 107 | %{_infodir}/check*
|
|---|
| 108 |
|
|---|
| 109 | %files devel
|
|---|
| 110 | %doc doc/example
|
|---|
| 111 | %{_includedir}/check.h
|
|---|
| 112 | %{_includedir}/check_stdint.h
|
|---|
| 113 | %{_libdir}/check*_dll.a
|
|---|
| 114 | %{_libdir}/pkgconfig/check.pc
|
|---|
| 115 | %{_datadir}/aclocal/check.m4
|
|---|
| 116 |
|
|---|
| 117 | #check used to be static only, hence this.
|
|---|
| 118 | %files static
|
|---|
| 119 | %license COPYING.LESSER
|
|---|
| 120 | %{_libdir}/check.a
|
|---|
| 121 |
|
|---|
| 122 | %files checkmk
|
|---|
| 123 | %doc checkmk/README checkmk/examples
|
|---|
| 124 | %doc checkmk/test
|
|---|
| 125 | %{_bindir}/checkmk
|
|---|
| 126 | %{_mandir}/man1/checkmk.1*
|
|---|
| 127 |
|
|---|
| 128 | %changelog
|
|---|
| 129 | * Mon Jul 01 2019 Silvan Scherrer <silvan.scherrer@aroa.ch> 0.12.0-1
|
|---|
| 130 | - update vendor source to version 0.12.0
|
|---|
| 131 |
|
|---|
| 132 | * Thu Apr 13 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 0.11.0-2
|
|---|
| 133 | - fix a script error
|
|---|
| 134 |
|
|---|
| 135 | * Mon Apr 03 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 0.11.0-1
|
|---|
| 136 | - update vendor source to version 0.11.0
|
|---|
| 137 | - move source from netlabs svn to github
|
|---|
| 138 |
|
|---|
| 139 | * Mon Aug 29 2011 yd <yd@os2power.com> 0.9.8-3
|
|---|
| 140 | - massive rebuild due to new rpm lx parser updates
|
|---|
| 141 |
|
|---|
| 142 | * Wed Apr 20 2011 yd <yd@os2power.com> 0.9.8-2
|
|---|
| 143 | - add target cpu field in cache file
|
|---|
| 144 |
|
|---|
| 145 | * Wed Nov 10 2010 yd <yd@os2power.com> 0.9.8-1
|
|---|
| 146 | - first initial rpm
|
|---|