[521] | 1 | Summary: A unit test framework for C |
---|
| 2 | Summary(ja): C 言語用単体テストフレームワーク |
---|
| 3 | Name: check |
---|
[890] | 4 | Version: 0.9.8 |
---|
[1958] | 5 | Release: 2%{?_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 | |
---|
| 40 | %prep |
---|
| 41 | %setup -q |
---|
| 42 | %patch0 -p1 |
---|
[890] | 43 | #patch1 -p1 -b .fPIC |
---|
[521] | 44 | |
---|
| 45 | |
---|
| 46 | %build |
---|
[890] | 47 | %configure --disable-static |
---|
| 48 | make %{?_smp_mflags} |
---|
[521] | 49 | |
---|
| 50 | |
---|
| 51 | %install |
---|
| 52 | rm -rf $RPM_BUILD_ROOT |
---|
| 53 | %makeinstall |
---|
| 54 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 55 | rm -rf $RPM_BUILD_ROOT%{_infodir}/dir |
---|
| 56 | |
---|
| 57 | rm -rf example |
---|
| 58 | cp -pr $RPM_BUILD_ROOT%{_datadir}/doc/check/example . |
---|
| 59 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/check |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | %clean |
---|
| 63 | rm -rf $RPM_BUILD_ROOT |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | %post |
---|
| 67 | /sbin/ldconfig |
---|
| 68 | /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : |
---|
| 69 | |
---|
| 70 | |
---|
| 71 | %postun -p /sbin/ldconfig |
---|
| 72 | |
---|
| 73 | %preun |
---|
| 74 | if [ $1 = 0 ]; then |
---|
| 75 | /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : |
---|
| 76 | fi |
---|
| 77 | |
---|
| 78 | |
---|
| 79 | %files |
---|
| 80 | %defattr(-,root,root) |
---|
| 81 | %doc AUTHORS COPYING.LESSER ChangeLog ChangeLogOld NEWS README SVNChangeLog |
---|
| 82 | %{_libdir}/libcheck.so.* |
---|
| 83 | %{_infodir}/check.info* |
---|
| 84 | |
---|
| 85 | |
---|
| 86 | %files devel |
---|
| 87 | %defattr(-,root,root) |
---|
| 88 | %doc example |
---|
| 89 | %{_includedir}/check.h |
---|
| 90 | %{_libdir}/libcheck.so |
---|
| 91 | %{_libdir}/pkgconfig/check.pc |
---|
| 92 | %{_datadir}/aclocal/check.m4 |
---|
| 93 | |
---|
| 94 | |
---|
| 95 | %changelog |
---|
[1958] | 96 | * Thu Sep 30 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.8-2 |
---|
| 97 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
| 98 | |
---|
[890] | 99 | * Sat Apr 24 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.8-1 |
---|
| 100 | - new upstream release |
---|
| 101 | - dropt Patch1 |
---|
| 102 | |
---|
[521] | 103 | * Mon May 26 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.9.5-2 |
---|
| 104 | - spec in UTF-8 |
---|
| 105 | - split devel subpackage |
---|
| 106 | |
---|
| 107 | * Sat Apr 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9.5-1vl5 |
---|
| 108 | - new upstream release |
---|
| 109 | - updated Patch1 |
---|
| 110 | |
---|
| 111 | * Mon Sep 18 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.9.3-0vl2 |
---|
| 112 | - enable -fPIC to build gstreamer on x86_64 |
---|
| 113 | |
---|
| 114 | * Mon Jan 16 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.9.3-0vl1 |
---|
| 115 | - upstream release |
---|
| 116 | - add BuildRequires: docbook-utils instead of lyx |
---|
| 117 | |
---|
| 118 | * Fri Aug 1 2003 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 0.8.4-0vl2 |
---|
| 119 | - Rebuild for new Vine. |
---|
| 120 | |
---|
| 121 | * Wed Jun 18 2003 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> 0.8.4-0vl1 |
---|
| 122 | - Initial build. |
---|
| 123 | |
---|