]> git.pld-linux.org Git - packages/check.git/blame - check.spec
- pl for -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
a661bf6c 4Version: 0.9.8
ad7c7a3c 5Release: 2
0044121d 6License: LGPL v2.1+
28297c4f
ER
7Group: Libraries
8Source0: http://downloads.sourceforge.net/check/%{name}-%{version}.tar.gz
a661bf6c 9# Source0-md5: 5d75e9a6027cde79d2c339ef261e7470
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
0044121d
JB
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
4713b48d 18%undefine __cxx
19
0044121d
JB
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
eda70338
JB
28This package contains only shared library.
29
ff212a42
JR
30%description -l pl.UTF-8
31Check to szkielet testów jednostkowych dla C. Ma prosty interfejs do
32definiowania testów jednostkowych, nie przeszkadzający zbytnio
33programiście. Testy są uruchamiane w wydzielonej przestrzeni
34adresowej, dzięki czemu Check może wyłapać zarówno niepowodzenia
28297c4f
ER
35zapewnień (assert), jak i błędy w kodzie powodujące naruszenie ochrony
36pamięci lub inne sygnały. Wyjście z testów jednostkowych może być
37używane z poziomu edytorów kodu źródłowego i IDE.
38
eda70338
JB
39Ten pakiet zawiera tylko bibliotekę współdzieloną.
40
28297c4f 41%package devel
eda70338
JB
42Summary: Headers for developing programs with check library
43Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów przy użyciu biblioteki checka
28297c4f
ER
44Group: Development/Libraries
45Requires: %{name} = %{version}-%{release}
46
47%description devel
eda70338
JB
48Headers for developing programs with check library.
49
50%description devel -l pl.UTF-8
51Pliki nagłówkowe do tworzenia programów przy użyciu biblioteki checka.
0044121d 52
1b5e9f8c
JB
53%package static
54Summary: Static check library
55Summary(pl.UTF-8): Biblioteka statyczna check
56Group: Development/Libraries
28297c4f 57Requires: %{name}-devel = %{version}-%{release}
1b5e9f8c
JB
58
59%description static
60Static check library.
61
62%description static -l pl.UTF-8
63Biblioteka statyczna check.
64
0044121d
JB
65%prep
66%setup -q
5a1f9cd0 67%patch0 -p1
0044121d
JB
68
69%build
5a1f9cd0
JB
70CFLAGS="%{rpmcflags} -fPIC"
71%configure
72%{__make}
0044121d
JB
73
74%install
75rm -rf $RPM_BUILD_ROOT
76
77%{__make} install \
1bc5c11c
SS
78 exampledir=%{_examplesdir}/%{name}-%{version} \
79 examplesrcdir=%{_examplesdir}/%{name}-%{version}/src \
80 exampletestsdir=%{_examplesdir}/%{name}-%{version}/tests \
0044121d
JB
81 DESTDIR=$RPM_BUILD_ROOT
82
78e36e09 83rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
f3f03e56 84rm -f $RPM_BUILD_ROOT%{_libdir}/libcheck.la
a661bf6c 85rm -f $RPM_BUILD_ROOT%{_infodir}/dir
f3f03e56 86
0044121d
JB
87%clean
88rm -rf $RPM_BUILD_ROOT
89
a661bf6c
ER
90%post -p /sbin/ldconfig
91%postun -p /sbin/ldconfig
f3f03e56 92
a661bf6c
ER
93%post devel -p /sbin/postshell
94-/usr/sbin/fix-info-dir -c %{_infodir}
95
96%postun devel -p /sbin/postshell
97-/usr/sbin/fix-info-dir -c %{_infodir}
f3f03e56 98
0044121d
JB
99%files
100%defattr(644,root,root,755)
2a5d9e97 101%doc AUTHORS ChangeLog* NEWS README SVNChangeLog THANKS TODO
78e36e09 102%attr(755,root,root) %{_libdir}/libcheck.so.*.*.*
a661bf6c 103%attr(755,root,root) %ghost %{_libdir}/libcheck.so.0
28297c4f
ER
104
105%files devel
106%defattr(644,root,root,755)
78e36e09 107%attr(755,root,root) %{_libdir}/libcheck.so
78e36e09
JB
108%{_includedir}/check.h
109%{_aclocaldir}/check.m4
f3f03e56 110%{_pkgconfigdir}/check.pc
f3f03e56 111%{_infodir}/check.info*
78e36e09 112%{_examplesdir}/%{name}-%{version}
1b5e9f8c
JB
113
114%files static
115%defattr(644,root,root,755)
116%{_libdir}/libcheck.a
This page took 0.127303 seconds and 4 git commands to generate.