diff --git a/check-0.11.0.tar.gz b/check-0.11.0.tar.gz deleted file mode 100644 index e21d68e..0000000 --- a/check-0.11.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:df18bb72ba31eed2e06c21dd97402174500a211645e4b3748e9e277551acc97d -size 275579 diff --git a/check-0.12.0.tar.gz b/check-0.12.0.tar.gz new file mode 100644 index 0000000..8abb995 --- /dev/null +++ b/check-0.12.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:464201098bee00e90f5c4bdfa94a5d3ead8d641f9025b560a27755a83b824234 +size 764043 diff --git a/check.changes b/check.changes index 35b3a81..0be5385 100644 --- a/check.changes +++ b/check.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +Wed Feb 28 16:24:09 UTC 2018 - dimstar@opensuse.org + +- Modernize spec-file by calling spec-cleaner + +------------------------------------------------------------------- +Fri Feb 16 02:32:05 UTC 2018 - luc14n0@linuxmail.org + +- Update to version 0.12.0: + + Fix out-of-tree builds with CMake (gh#libcheck/check#86). + + Fix issue found with Clang regarding invalid suffix on a + literal (gh#libcheck/check#110). + + Check now responds to a few errors in a more clear way when + it cannot run tests (gh#libcheck/check#122 and + gh#libcheck/check#123). + + The maximum message size of check assertions is now + configurable (gh#libcheck/check#127). + + Check support added for Visual Studios 2010, 2012, 2013, 2015, + and 2017 both for x86/64 and ARM (gh#libcheck/check#129 and + gh#libcheck/check#125). +- Adopt the use of %make_build and %make_install rather than raw + make commands, following the best practices. And pass docdir + to configure instead of passing directly to make. +- Add automake, autoconf and sed BuildRequires to avoid implicit + dependencies. + ------------------------------------------------------------------- Wed Sep 20 01:18:39 UTC 2017 - avvissu@yandex.by diff --git a/check.spec b/check.spec index ef12ad2..469eca6 100644 --- a/check.spec +++ b/check.spec @@ -1,7 +1,7 @@ # # spec file for package check # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,33 +16,35 @@ # +%define libname libcheck0 Name: check -%define lname libcheck0 -Version: 0.11.0 +Version: 0.12.0 Release: 0 Summary: Unit Test Framework for C -License: LGPL-2.1+ +License: LGPL-2.1-or-later Group: Development/Libraries/C and C++ -Url: https://libcheck.github.io/check/ -Source: https://github.com/libcheck/check/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +URL: https://libcheck.github.io/check/ +Source: https://github.com/libcheck/check/releases/download/%{version}/%{name}-%{version}.tar.gz Source99: baselibs.conf -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: autoconf +BuildRequires: automake BuildRequires: fdupes BuildRequires: libtool BuildRequires: makeinfo -BuildRequires: pkg-config +BuildRequires: pkgconfig +BuildRequires: sed %description Check is a unit test framework for C. It features a simple interface for defining unit tests, limitating the developer the less possible. -%package -n %lname +%package -n %{libname} Summary: Unit Test Framework for C Group: System/Libraries -Obsoletes: check < %version-%release -Provides: check = %version-%release +Obsoletes: check < %{version}-%{release} +Provides: check = %{version}-%{release} -%description -n %lname +%description -n %{libname} Check is a unit test framework for C. It features a simple interface for defining unit tests, limitating the developer the less possible. Tests are run in a separate address space, so Check cancatch both, assertion @@ -53,7 +55,7 @@ editors and IDEs. %package devel Summary: Development files for the CHECK unit test framework Group: Development/Libraries/C and C++ -Requires: %lname = %version +Requires: %{libname} = %{version} Requires: glibc-devel %description devel @@ -72,41 +74,41 @@ autoreconf -fiv export CFLAGS="%{optflags} -std=gnu99" export CXXFLAGS="%{optflags} -std=gnu99" export FFLAGS="%{optflags} -std=gnu99" -%configure --disable-static -make %{?_smp_mflags} docdir=%{_docdir}/%{name} +%configure \ + --disable-static +%make_build docdir=%{_docdir}/%{name} %install %make_install docdir=%{_docdir}/%{name} -%{__cp} -a AUTHORS COPYING.LESSER NEWS THANKS TODO %{buildroot}%{_docdir}/%{name} -%{__rm} -f %{buildroot}%{_libdir}/*.la -# a little duplicate documentation… -%fdupes %buildroot/%_datadir +find %{buildroot} -type f -name "*.la" -delete -print +%fdupes %{buildroot}/%{_datadir} -%post -n %lname -p /sbin/ldconfig +# We package these either with %%license or %%doc macros +rm %{buildroot}%{_docdir}/%{name}/{COPYING.LESSER,ChangeLog,NEWS,README} +%post -n %{libname} -p /sbin/ldconfig %post devel %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz -%postun -n %lname -p /sbin/ldconfig - +%postun -n %{libname} -p /sbin/ldconfig %preun devel %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz -%files -n %lname -%defattr (-, root, root) -%doc COPYING* +%files -n %{libname} +%license COPYING.LESSER %{_libdir}/*.so.* %files devel -%defattr (-, root, root) +%doc AUTHORS ChangeLog NEWS README THANKS TODO +%{_infodir}/%{name}.info* +%{_mandir}/man1/checkmk.1%{?ext_man} +%dir %{_docdir}/%{name} +%doc %{_docdir}/%{name}/example +%{_bindir}/checkmk %dir %{_datadir}/aclocal %{_datadir}/aclocal/*.m4 %{_includedir}/*.h -%doc %{_infodir}/%{name}.info* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc -%{_docdir}/%{name}/ -%{_bindir}/checkmk -%{_mandir}/man1/checkmk.1%{?ext_man} %changelog