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