]> git.pld-linux.org Git - packages/check.git/blame - check.spec
- no need for libstdc++-devel, just undefine __cxx
[packages/check.git] / check.spec
CommitLineData
0044121d 1Summary: Check - unit testing framework for C
39525af9 2Summary(pl.UTF-8): Check - szkielet testów jednostkowych dla C
0044121d 3Name: check
a3ffaac2 4Version: 0.9.5
f3f03e56 5Release: 1
0044121d
JB
6License: LGPL v2.1+
7Group: Development/Libraries
8Source0: http://dl.sourceforge.net/check/%{name}-%{version}.tar.gz
a3ffaac2 9# Source0-md5: 30143c7974b547a12a7da47809a90951
5a1f9cd0 10Patch0: %{name}-info.patch
0044121d 11URL: http://check.sourceforge.net/
8c92c757 12# aclocal required for %{_aclocaldir}
13BuildRequires: automake
f3f03e56
SS
14BuildRequires: libtool
15BuildRequires: texinfo >= 4.2
78e36e09 16Requires(post,postun): /sbin/ldconfig
0044121d
JB
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
4713b48d 19%undefine __cxx
20
0044121d
JB
21%description
22Check is a unit test framework for C. It features a simple interface
23for defining unit tests, putting little in the way of the developer.
24Tests are run in a separate address space, so Check can catch both
25assertion failures and code errors that cause segmentation faults or
26other signals. The output from unit tests can be used within source
27code editors and IDEs.
28
ff212a42
JR
29%description -l pl.UTF-8
30Check to szkielet testów jednostkowych dla C. Ma prosty interfejs do
31definiowania testów jednostkowych, nie przeszkadzający zbytnio
32programiście. Testy są uruchamiane w wydzielonej przestrzeni
33adresowej, dzięki czemu Check może wyłapać zarówno niepowodzenia
34zapewnień (assert), jak i błędy w kodzie powodujące naruszenie
35ochrony pamięci lub inne sygnały. Wyjście z testów jednostkowych może
36być używane z poziomu edytorów kodu źródłowego i IDE.
0044121d 37
1b5e9f8c
JB
38%package static
39Summary: Static check library
40Summary(pl.UTF-8): Biblioteka statyczna check
41Group: Development/Libraries
42Requires: %{name} = %{version}-%{release}
43
44%description static
45Static check library.
46
47%description static -l pl.UTF-8
48Biblioteka statyczna check.
49
0044121d
JB
50%prep
51%setup -q
5a1f9cd0 52%patch0 -p1
0044121d
JB
53
54%build
5a1f9cd0
JB
55CFLAGS="%{rpmcflags} -fPIC"
56%configure
57%{__make}
0044121d
JB
58
59%install
60rm -rf $RPM_BUILD_ROOT
61
62%{__make} install \
1bc5c11c
SS
63 exampledir=%{_examplesdir}/%{name}-%{version} \
64 examplesrcdir=%{_examplesdir}/%{name}-%{version}/src \
65 exampletestsdir=%{_examplesdir}/%{name}-%{version}/tests \
0044121d
JB
66 DESTDIR=$RPM_BUILD_ROOT
67
78e36e09 68rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
f3f03e56
SS
69rm -f $RPM_BUILD_ROOT%{_libdir}/libcheck.la
70
0044121d
JB
71%clean
72rm -rf $RPM_BUILD_ROOT
73
f3f03e56 74%post
78e36e09 75/sbin/ldconfig
f3f03e56
SS
76[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
77
78%postun
78e36e09 79/sbin/ldconfig
f3f03e56
SS
80[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
81
0044121d
JB
82%files
83%defattr(644,root,root,755)
2a5d9e97 84%doc AUTHORS ChangeLog* NEWS README SVNChangeLog THANKS TODO
78e36e09
JB
85%attr(755,root,root) %{_libdir}/libcheck.so.*.*.*
86%attr(755,root,root) %{_libdir}/libcheck.so
78e36e09
JB
87%{_includedir}/check.h
88%{_aclocaldir}/check.m4
f3f03e56 89%{_pkgconfigdir}/check.pc
f3f03e56 90%{_infodir}/check.info*
78e36e09 91%{_examplesdir}/%{name}-%{version}
1b5e9f8c
JB
92
93%files static
94%defattr(644,root,root,755)
95%{_libdir}/libcheck.a
This page took 0.0436 seconds and 4 git commands to generate.