[521] | 1 | Summary: A unit test framework for C |
---|
| 2 | Summary(ja): C 言語用単体テストフレームワーク |
---|
| 3 | Name: check |
---|
[8369] | 4 | Version: 0.9.12 |
---|
[7064] | 5 | Release: 1%{?_dist_release} |
---|
[521] | 6 | License: LGPL |
---|
| 7 | Group: Development/Tools |
---|
| 8 | URL: http://check.sourceforge.net/ |
---|
| 9 | Source0: http://prdownloads.sourceforge.net/check/%{name}-%{version}.tar.gz |
---|
| 10 | Patch0: %{name}-examples-bootstrap.patch |
---|
| 11 | Patch1: check-0.9.5-fPIC.patch |
---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 13 | BuildRequires: docbook-utils |
---|
| 14 | Requires(post,preun): /sbin/install-info |
---|
| 15 | |
---|
[890] | 16 | Vendor: Project Vine |
---|
| 17 | Distribution: Vine Linux |
---|
| 18 | Packager: USAMI Kosuke <usami-k@yc5.so-net.ne.jp> |
---|
[521] | 19 | |
---|
| 20 | %description |
---|
| 21 | Check is a unit test framework for C. It features a simple interface |
---|
| 22 | for defining unit tests, putting little in the way of the developer. |
---|
| 23 | Tests are run in a separate address space, so Check can catch both |
---|
| 24 | assertion failures and code errors that cause segmentation faults or |
---|
| 25 | other signals. The output from unit tests can be used within source |
---|
| 26 | code editors and IDEs. |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | %package devel |
---|
| 30 | Summary: Libraries and headers for developing programs with check |
---|
| 31 | Summary(ja): Check を使ったプログラム開発用ライブラリとヘッダファイル |
---|
| 32 | Group: Development/Libraries |
---|
| 33 | Requires: pkgconfig |
---|
| 34 | Requires: %{name} = %{version}-%{release} |
---|
| 35 | |
---|
| 36 | %description devel |
---|
| 37 | Libraries and headers for developing programs with check |
---|
| 38 | |
---|
| 39 | |
---|
[7064] | 40 | %package tools |
---|
| 41 | Summary: The tools for %{name} |
---|
| 42 | Summary(ja): Check 用のツール |
---|
| 43 | Group: Development/Languages |
---|
| 44 | Requires: %{name} = %{version}-%{release} |
---|
| 45 | |
---|
| 46 | %description tools |
---|
| 47 | This package contains check tool "chkckmk". |
---|
| 48 | checkmk, a tool for reducing "boilerplate coding" when writing unit tests with check. |
---|
| 49 | |
---|
| 50 | |
---|
[521] | 51 | %prep |
---|
| 52 | %setup -q |
---|
| 53 | %patch0 -p1 |
---|
[890] | 54 | #patch1 -p1 -b .fPIC |
---|
[521] | 55 | |
---|
| 56 | |
---|
| 57 | %build |
---|
[890] | 58 | %configure --disable-static |
---|
| 59 | make %{?_smp_mflags} |
---|
[521] | 60 | |
---|
| 61 | |
---|
| 62 | %install |
---|
| 63 | rm -rf $RPM_BUILD_ROOT |
---|
| 64 | %makeinstall |
---|
| 65 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 66 | rm -rf $RPM_BUILD_ROOT%{_infodir}/dir |
---|
| 67 | |
---|
| 68 | rm -rf example |
---|
| 69 | cp -pr $RPM_BUILD_ROOT%{_datadir}/doc/check/example . |
---|
| 70 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/check |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | %clean |
---|
| 74 | rm -rf $RPM_BUILD_ROOT |
---|
| 75 | |
---|
| 76 | |
---|
| 77 | %post |
---|
| 78 | /sbin/ldconfig |
---|
| 79 | /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : |
---|
| 80 | |
---|
| 81 | |
---|
| 82 | %postun -p /sbin/ldconfig |
---|
| 83 | |
---|
| 84 | %preun |
---|
| 85 | if [ $1 = 0 ]; then |
---|
| 86 | /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : |
---|
| 87 | fi |
---|
| 88 | |
---|
| 89 | |
---|
| 90 | %files |
---|
| 91 | %defattr(-,root,root) |
---|
| 92 | %doc AUTHORS COPYING.LESSER ChangeLog ChangeLogOld NEWS README SVNChangeLog |
---|
| 93 | %{_libdir}/libcheck.so.* |
---|
| 94 | %{_infodir}/check.info* |
---|
| 95 | |
---|
| 96 | |
---|
| 97 | %files devel |
---|
| 98 | %defattr(-,root,root) |
---|
| 99 | %doc example |
---|
| 100 | %{_includedir}/check.h |
---|
[8369] | 101 | %{_includedir}/check_stdint.h |
---|
[521] | 102 | %{_libdir}/libcheck.so |
---|
| 103 | %{_libdir}/pkgconfig/check.pc |
---|
| 104 | %{_datadir}/aclocal/check.m4 |
---|
| 105 | |
---|
| 106 | |
---|
[7064] | 107 | %files tools |
---|
| 108 | %defattr(-,root,root) |
---|
| 109 | %{_bindir}/checkmk |
---|
| 110 | %{_mandir}/man1/checkmk.1.gz |
---|
| 111 | |
---|
| 112 | |
---|
[521] | 113 | %changelog |
---|
[8369] | 114 | * Sun Apr 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.12-1 |
---|
| 115 | - new upstream release |
---|
| 116 | |
---|
[7064] | 117 | * Sat Nov 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.9-1 |
---|
| 118 | - new upstream release |
---|
| 119 | - create %{name}-tools sub package |
---|
| 120 | |
---|
[1958] | 121 | * Thu Sep 30 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.8-2 |
---|
| 122 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
| 123 | |
---|
[890] | 124 | * Sat Apr 24 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.8-1 |
---|
| 125 | - new upstream release |
---|
| 126 | - dropt Patch1 |
---|
| 127 | |
---|
[521] | 128 | * Mon May 26 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.9.5-2 |
---|
| 129 | - spec in UTF-8 |
---|
| 130 | - split devel subpackage |
---|
| 131 | |
---|
| 132 | * Sat Apr 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9.5-1vl5 |
---|
| 133 | - new upstream release |
---|
| 134 | - updated Patch1 |
---|
| 135 | |
---|
| 136 | * Mon Sep 18 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.9.3-0vl2 |
---|
| 137 | - enable -fPIC to build gstreamer on x86_64 |
---|
| 138 | |
---|
| 139 | * Mon Jan 16 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.9.3-0vl1 |
---|
| 140 | - upstream release |
---|
| 141 | - add BuildRequires: docbook-utils instead of lyx |
---|
| 142 | |
---|
| 143 | * Fri Aug 1 2003 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 0.8.4-0vl2 |
---|
| 144 | - Rebuild for new Vine. |
---|
| 145 | |
---|
| 146 | * Wed Jun 18 2003 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> 0.8.4-0vl1 |
---|
| 147 | - Initial build. |
---|
| 148 | |
---|