b111f2e
Name:           check
cf12165
Version:        0.14.0
cf12165
Release:        1%{?dist}
b111f2e
Summary:        A unit test framework for C
eaa27a7
Source0:        https://github.com/libcheck/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
b111f2e
License:        LGPLv2+
fe142d8
URL:            http://libcheck.github.io/check/
3b031ce
# Only needed for autotools in Fedora
79fb554
Patch0:         %{name}-0.11.0-info-in-builddir.patch
17664ae
# Fix test failures due to varying floating point behavior across platforms
17664ae
Patch1:         %{name}-0.11.0-fp.patch
17664ae
17664ae
BuildRequires:  gcc
17664ae
BuildRequires:  libtool
17664ae
BuildRequires:  patchutils
17664ae
BuildRequires:  pkgconfig
b7f236a
BuildRequires:  pkgconfig(libsubunit)
b276f0f
BuildRequires:  texinfo, texlive-tex, graphviz
17664ae
913f3b4
%description
913f3b4
Check is a unit test framework for C. It features a simple interface for 
913f3b4
defining unit tests, putting little in the way of the developer. Tests 
913f3b4
are run in a separate address space, so Check can catch both assertion 
913f3b4
failures and code errors that cause segmentation faults or other signals. 
913f3b4
The output from unit tests can be used within source code editors and IDEs.
913f3b4
913f3b4
%package devel
b111f2e
Summary:        Libraries and headers for developing programs with check
b111f2e
Requires:       pkgconfig
08a2e2f
Requires:       %{name}%{?_isa} = %{version}-%{release}
913f3b4
913f3b4
%description devel
b3fc97e
Libraries and headers for developing programs with check
b3fc97e
b3fc97e
%package static
b3fc97e
Summary:        Static libraries of check
b3fc97e
b3fc97e
%description static
b3fc97e
Static libraries of check.
913f3b4
Jerry James e17519f
%package checkmk
Jerry James e17519f
Summary:        Translate concise versions of test suites into C programs
Jerry James e17519f
License:        BSD
Jerry James e17519f
BuildArch:      noarch
Jerry James e17519f
Requires:       %{name} = %{version}-%{release}
Jerry James e17519f
Jerry James e17519f
%description checkmk
Jerry James e17519f
The checkmk binary translates concise versions of test suites into C
Jerry James e17519f
programs suitable for use with the Check unit test framework.
Jerry James e17519f
913f3b4
%prep
913f3b4
%setup -q
3b031ce
%if 0%{?fedora}
c706075
%patch0 -p1 -b .info-in-builddir
c706075
%endif
17664ae
%patch1
Jerry James 178336d
Jerry James e17519f
# Fix detection of various time-related function declarations
Jerry James 0cc5515
sed -e '/DECLS(\[a/s|)|,,,[AC_INCLUDES_DEFAULT\n[#include <time.h>\n #include <sys/time.h>]]&|' \
Jerry James 0cc5515
    -i configure.ac
Jerry James 0cc5515
34528f5
# Improve the info directory entry
34528f5
sed -e 's/\(Check: (check)\)Introduction./\1.               A unit testing framework for C./' \
34528f5
    -i doc/check.texi
34528f5
17664ae
# Get rid of version control files
8177f9a
find . -name .cvsignore -delete
17664ae
Jerry James 0cc5515
# Regenerate configure due to patch 0
Jerry James 0cc5515
autoreconf -ivf
913f3b4
913f3b4
%build
9f1c69b
%configure --disable-timeout-tests
Jerry James 178336d
Jerry James 178336d
# Get rid of undesirable hardcoded rpaths
Jerry James 178336d
sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
Jerry James 178336d
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
Jerry James 178336d
    -i libtool
Jerry James 178336d
Jerry James e17519f
make %{?_smp_mflags}
913f3b4
913f3b4
%install
913f3b4
make DESTDIR=$RPM_BUILD_ROOT install
b3fc97e
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
9ba3ee8
rm -rf $RPM_BUILD_ROOT%{_infodir}/dir
Jerry James 178336d
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
913f3b4
79fb554
Jerry James e17519f
%check
Jerry James e17519f
export LD_LIBRARY_PATH=$PWD/src/.libs
Jerry James e17519f
make check
79fb554
# Don't need to package the sh, log or trs files
79fb554
# when we scoop the other checkmk/test files for doc
79fb554
rm -rf checkmk/test/check_checkmk*
79fb554
# these files are empty
79fb554
rm -rf checkmk/test/empty_input
Jerry James e17519f
48d5fc8
%ldconfig_scriptlets
48d5fc8
b3fc97e
%files
aca9b70
%doc AUTHORS NEWS
79fb554
%license COPYING.LESSER
b3fc97e
%{_libdir}/libcheck.so.*
b3fc97e
%{_infodir}/check*
b3fc97e
913f3b4
%files devel
f7aad1c
%doc doc/example
913f3b4
%{_includedir}/check.h
2affa2f
%{_includedir}/check_stdint.h
b3fc97e
%{_libdir}/libcheck.so
b3fc97e
%{_libdir}/pkgconfig/check.pc
913f3b4
%{_datadir}/aclocal/check.m4
913f3b4
b3fc97e
#check used to be static only, hence this.
b3fc97e
%files static
79fb554
%license COPYING.LESSER
b3fc97e
%{_libdir}/libcheck.a
b3fc97e
Jerry James e17519f
%files checkmk
Jerry James e17519f
%doc checkmk/README checkmk/examples
79fb554
%doc checkmk/test
Jerry James e17519f
%{_bindir}/checkmk
Jerry James e17519f
%{_mandir}/man1/checkmk.1*
Jerry James e17519f
913f3b4
%changelog
cf12165
* Mon Jan 27 2020 Tom Callaway <spot@fedoraproject.org> - 0.14.0-1
cf12165
- update to 0.14.0
cf12165
aca9b70
* Mon Dec  2 2019 Tom Callaway <spot@fedoraproject.org> - 0.13.0-2
aca9b70
- package NEWS instead of the obsolete ChangeLog file
aca9b70
9358cec
* Tue Oct 22 2019 Tom Callaway <spot@fedoraproject.org> - 0.13.0-1
9358cec
- update to 0.13.0
9358cec
5c9234e
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-5
5c9234e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
5c9234e
1fc4812
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-4
1fc4812
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1fc4812
9f1c69b
* Mon Jul 23 2018 Jerry James <loganjerry@gmail.com> - 0.12.0-3
9f1c69b
- Disable unreliable timeout tests (sometimes fail on busy builders)
9f1c69b
71a981e
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-3
71a981e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
71a981e
3d12a39
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-2
3d12a39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3d12a39
eaa27a7
* Mon Jan 29 2018 Jerry James <loganjerry@gmail.com> - 0.12.0-1
eaa27a7
- Update to 0.12.0
eaa27a7
93d9ef3
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-4
93d9ef3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
93d9ef3
98e498b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-3
98e498b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
98e498b
782bdf1
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-2
782bdf1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
782bdf1
79fb554
* Wed Dec 21 2016 Tom Callaway <spot@fedoraproject.org> - 0.11.0-1
79fb554
- update to 0.11.0
79fb554
421fa70
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-3
421fa70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
421fa70
833a755
* Wed Oct 28 2015 David Tardon <dtardon@redhat.com> - 0.10.0-2
833a755
- rebuild for ICU 56.1
833a755
3b031ce
* Fri Aug  7 2015 Jerry James <loganjerry@gmail.com> - 0.10.0-1
3b031ce
- Update to 0.10.0
3b031ce
efbfaf9
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.14-3
efbfaf9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
efbfaf9
5336dbe
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.14-2
5336dbe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
5336dbe
Jerry James 0cc5515
* Mon Jul 28 2014 Jerry James <loganjerry@gmail.com> - 0.9.14-1
Jerry James 0cc5515
- New upstream version
Jerry James 0cc5515
- Drop -volatile patch, no longer needed
Jerry James 0cc5515
- Update time-related configure fix again
Jerry James 0cc5515
Jerry James b809179
* Mon Jun  9 2014 Jerry James <loganjerry@gmail.com> - 0.9.13-2
Jerry James b809179
- Add -volatile patch to fix test failure
Jerry James b809179
- Update time-related configure fix
Jerry James b809179
f9eec9c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.13-2
f9eec9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f9eec9c
d7236f6
* Mon Jun  2 2014 Tom Callaway <spot@fedoraproject.org> - 0.9.13-1
d7236f6
- update to 0.9.13
d7236f6
Jerry James bb48d0c
* Fri Apr 25 2014 Jerry James <loganjerry@gmail.com> - 0.9.12-2
Jerry James bb48d0c
- Build with subunit support
Jerry James bb48d0c
- Remove unused aarch64 patch
Jerry James bb48d0c
53e25ce
* Tue Jan 21 2014 Tom Callaway <spot@fedoraproject.org> - 0.9.12-1
53e25ce
- update to 0.9.12
53e25ce
f83a788
* Tue Nov  5 2013 Tom Callaway <spot@fedoraproject.org> - 0.9.11-1
f83a788
- update to 0.9.11
f83a788
- use autoreconf -ivf instead of the patch
f83a788
Jerry James e17519f
* Mon Aug  5 2013 Jerry James <loganjerry@gmail.com> - 0.9.10-3
Jerry James e17519f
- Drop -format patch, upstreamed
Jerry James e17519f
- Fix detection of more time-related functions
Jerry James e17519f
- Give checkmk its own subpackage for licensing reasons
Jerry James e17519f
- Add a check script
Jerry James e17519f
3a5e3f5
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.10-2
3a5e3f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3a5e3f5
2affa2f
* Thu Apr 18 2013 Tom Callaway <spot@fedoraproject.org> - 0.9.10-1
2affa2f
- update to 0.9.10
2affa2f
Jerry James 48cbf11
* Mon Mar 25 2013 Jerry James <loganjerry@gmail.com> - 0.9.9-3
Jerry James 48cbf11
- Enable aarch64 support (bz 925218)
Jerry James 48cbf11
b97781e
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.9-2
b97781e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b97781e
Jerry James 178336d
* Mon Oct 22 2012 Jerry James <loganjerry@gmail.com> - 0.9.9-1
Jerry James 178336d
- New upstream version
Jerry James 178336d
- Drop upstream patch for 0.9.8; fix now merged
Jerry James 178336d
64fde51
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8-6
64fde51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
64fde51
5b82753
* Tue May 15 2012 Jerry James <loganjerry@gmail.com> - 0.9.8-5
5b82753
- Add upstream patch for bz 821933
5b82753
08a2e2f
* Fri Jan  6 2012 Jerry James <loganjerry@gmail.com> - 0.9.8-4
08a2e2f
- Rebuild for GCC 4.7
08a2e2f
- Minor spec file cleanups.
08a2e2f
a2da1c4
* Mon Feb 14 2011 Jerry James <loganjerry@gmail.com> - 0.9.8-3
a2da1c4
- Rebuild for new gcc (Fedora 15 mass rebuild)
a2da1c4
15099ac
* Mon Nov 29 2010 Jerry James <loganjerry@gmail.com> - 0.9.8-2
15099ac
- Add license file to -static package.
15099ac
- Remove BuildRoot tag.
15099ac
f7aad1c
* Mon Sep 28 2009 Jerry James <loganjerry@gmail.com> - 0.9.8-1
f7aad1c
- Update to 0.9.8
f7aad1c
450c595
* Thu Aug  6 2009 Jerry James <loganjerry@gmail.com> - 0.9.6-5
450c595
- Support --excludedocs (bz 515933)
450c595
- Replace broken upstream info dir entry
450c595
d360c89
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-4
d360c89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d360c89
aaa97ff
* Tue Apr  7 2009 Jerry James <loganjerry@gmail.com> - 0.9.6-3
aaa97ff
- Add check-0.9.6-strdup.patch
aaa97ff
34ac142
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-2
34ac142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
34ac142
5fa372a
* Tue Jan  6 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 0.9.6-1
5fa372a
- update to 0.9.6
5fa372a
b111f2e
* Mon Dec  1 2008 Jerry James <loganjerry@gmail.com> - 0.9.5-3
b111f2e
- Fix unowned directory (bz 473635)
b111f2e
- Drop unnecessary BuildRequires
b111f2e
- Replace patches with addition of -fPIC to CFLAGS in the spec file
b111f2e
- Add some more documentation files
b111f2e
bb2f5e4
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.5-2.1
bb2f5e4
- Autorebuild for GCC 4.3
bb2f5e4
b3fc97e
* Thu Aug  2 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.5-1
b3fc97e
- 0.9.5 bump
b3fc97e
a37235b
* Fri Jul 14 2006 Jesse Keating <jkeating@redhat.com> - 0.9.3-5
a37235b
- rebuild
a37235b
5a5f802
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.9.3-4.fc5.2
5a5f802
- bump again for double-long bug on ppc(64)
5a5f802
7996ab6
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.9.3-4.fc5.1
7996ab6
- rebuilt for new gcc4.1 snapshot and glibc changes
7996ab6
913f3b4
* Mon Dec 19 2005 Warren Togami <wtogami@redhat.com> 0.9.2-4
913f3b4
- import into FC5 for gstreamer-0.10
913f3b4
913f3b4
* Fri Dec  2 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.2-3
913f3b4
- enabled -fPIC to resolve bz 174313
913f3b4
913f3b4
* Sat Sep 17 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.2-2
913f3b4
- get rid of the so file (not needed)
913f3b4
- only make devel package
913f3b4
913f3b4
* Sun Aug 14 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.2-1
913f3b4
- initial package for Fedora Extras