]> git.pld-linux.org Git - packages/check.git/blame - check.spec
- -devel subpackage (parted links with libcheck.so); rel 2
[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
28297c4f 5Release: 2
0044121d 6License: LGPL v2.1+
28297c4f
ER
7Group: Libraries
8Source0: http://downloads.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
28297c4f
ER
34zapewnień (assert), jak i błędy w kodzie powodujące naruszenie ochrony
35pamięci lub inne sygnały. Wyjście z testów jednostkowych może być
36używane z poziomu edytorów kodu źródłowego i IDE.
37
38%package devel
39Summary: Libraries and headers for developing programs with check
40Group: Development/Libraries
41Requires: %{name} = %{version}-%{release}
42
43%description devel
44Libraries and headers for developing programs with check
0044121d 45
1b5e9f8c
JB
46%package static
47Summary: Static check library
48Summary(pl.UTF-8): Biblioteka statyczna check
49Group: Development/Libraries
28297c4f 50Requires: %{name}-devel = %{version}-%{release}
1b5e9f8c
JB
51
52%description static
53Static check library.
54
55%description static -l pl.UTF-8
56Biblioteka statyczna check.
57
0044121d
JB
58%prep
59%setup -q
5a1f9cd0 60%patch0 -p1
0044121d
JB
61
62%build
5a1f9cd0
JB
63CFLAGS="%{rpmcflags} -fPIC"
64%configure
65%{__make}
0044121d
JB
66
67%install
68rm -rf $RPM_BUILD_ROOT
69
70%{__make} install \
1bc5c11c
SS
71 exampledir=%{_examplesdir}/%{name}-%{version} \
72 examplesrcdir=%{_examplesdir}/%{name}-%{version}/src \
73 exampletestsdir=%{_examplesdir}/%{name}-%{version}/tests \
0044121d
JB
74 DESTDIR=$RPM_BUILD_ROOT
75
78e36e09 76rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
f3f03e56
SS
77rm -f $RPM_BUILD_ROOT%{_libdir}/libcheck.la
78
0044121d
JB
79%clean
80rm -rf $RPM_BUILD_ROOT
81
f3f03e56 82%post
78e36e09 83/sbin/ldconfig
f3f03e56
SS
84[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
85
86%postun
78e36e09 87/sbin/ldconfig
f3f03e56
SS
88[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
89
0044121d
JB
90%files
91%defattr(644,root,root,755)
2a5d9e97 92%doc AUTHORS ChangeLog* NEWS README SVNChangeLog THANKS TODO
78e36e09 93%attr(755,root,root) %{_libdir}/libcheck.so.*.*.*
28297c4f
ER
94
95%files devel
96%defattr(644,root,root,755)
78e36e09 97%attr(755,root,root) %{_libdir}/libcheck.so
78e36e09
JB
98%{_includedir}/check.h
99%{_aclocaldir}/check.m4
f3f03e56 100%{_pkgconfigdir}/check.pc
f3f03e56 101%{_infodir}/check.info*
78e36e09 102%{_examplesdir}/%{name}-%{version}
1b5e9f8c
JB
103
104%files static
105%defattr(644,root,root,755)
106%{_libdir}/libcheck.a
This page took 0.036882 seconds and 4 git commands to generate.