Summary: Check - unit testing framework for C
Summary(pl.UTF-8): Check - szkielet testów jednostkowych dla C
Name: check
-Version: 0.9.5
-Release: 1
+Version: 0.9.10
+Release: 2
License: LGPL v2.1+
-Group: Development/Libraries
-Source0: http://dl.sourceforge.net/check/%{name}-%{version}.tar.gz
-# Source0-md5: 30143c7974b547a12a7da47809a90951
+Group: Libraries
+Source0: http://downloads.sourceforge.net/check/%{name}-%{version}.tar.gz
+# Source0-md5: 6d10a8efb9a683467b92b3bce97aeb30
+Patch0: %{name}-info.patch
URL: http://check.sourceforge.net/
+# aclocal required for %{_aclocaldir}
+BuildRequires: automake
BuildRequires: libtool
BuildRequires: texinfo >= 4.2
-Requires(post,postun): /sbin/ldconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%undefine __cxx
+
%description
Check is a unit test framework for C. It features a simple interface
for defining unit tests, putting little in the way of the developer.
other signals. The output from unit tests can be used within source
code editors and IDEs.
+This package contains only shared library.
+
%description -l pl.UTF-8
Check to szkielet testów jednostkowych dla C. Ma prosty interfejs do
definiowania testów jednostkowych, nie przeszkadzający zbytnio
programiście. Testy są uruchamiane w wydzielonej przestrzeni
adresowej, dzięki czemu Check może wyłapać zarówno niepowodzenia
-zapewnień (assert), jak i błędy w kodzie powodujące naruszenie
-ochrony pamięci lub inne sygnały. Wyjście z testów jednostkowych może
-być używane z poziomu edytorów kodu źródłowego i IDE.
+zapewnień (assert), jak i błędy w kodzie powodujące naruszenie ochrony
+pamięci lub inne sygnały. Wyjście z testów jednostkowych może być
+używane z poziomu edytorów kodu źródłowego i IDE.
+
+Ten pakiet zawiera tylko bibliotekę współdzieloną.
+
+%package devel
+Summary: Headers for developing programs with check library
+Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów przy użyciu biblioteki checka
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Headers for developing programs with check library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe do tworzenia programów przy użyciu biblioteki checka.
%package static
Summary: Static check library
Summary(pl.UTF-8): Biblioteka statyczna check
Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}-devel = %{version}-%{release}
%description static
Static check library.
%prep
%setup -q
+%patch0 -p1
%build
-%configure2_13
-%{__make} \
- CFLAGS="%{rpmcflags} -Wall -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -fPIC"
+CFLAGS="%{rpmcflags} -fPIC"
+%configure
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
exampletestsdir=%{_examplesdir}/%{name}-%{version}/tests \
DESTDIR=$RPM_BUILD_ROOT
-rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
-rm -f $RPM_BUILD_ROOT%{_libdir}/libcheck.la
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libcheck.la
+%{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir
%clean
rm -rf $RPM_BUILD_ROOT
-%post
-/sbin/ldconfig
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
-%postun
-/sbin/ldconfig
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
+%post devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
+
+%postun devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog* NEWS README SVNChangeLog THANKS TODO
%attr(755,root,root) %{_libdir}/libcheck.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libcheck.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/checkmk
%attr(755,root,root) %{_libdir}/libcheck.so
%{_includedir}/check.h
+%{_includedir}/check_stdint.h
%{_aclocaldir}/check.m4
%{_pkgconfigdir}/check.pc
+%{_mandir}/man1/checkmk.1*
%{_infodir}/check.info*
%{_examplesdir}/%{name}-%{version}