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