From b6bf9cc5dbf5ff7b23d04c0bdc3c3d4dfd5e5134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Wed, 14 Oct 2020 22:59:53 +0200 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/cmocka#3bd642632b30377466967663ba8c702ea9a1f067 --- .gitignore | 16 ++++ cmocka.keyring | Bin 0 -> 3432 bytes cmocka.spec | 254 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 2 + 4 files changed, 272 insertions(+) create mode 100644 cmocka.keyring create mode 100644 cmocka.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..d65f990 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,16 @@ +/cmocka-0.2.0.tar.gz +/cmocka-0.3.0.tar.gz +/cmocka-0.3.1.tar.gz +/cmocka-0.3.2.tar.xz +/cmocka-0.4.0.tar.xz +/cmocka-0.4.1.tar.xz +/cmocka-1.0.0.tar.xz +/cmocka-1.0.1.tar.xz +/cmocka-1.1.0.tar.xz +/cmocka-1.1.1.tar.xz +/cmocka-1.1.2.tar.xz +/cmocka-1.1.2.tar.xz.asc +/cmocka-1.1.3.tar.xz +/cmocka-1.1.3.tar.xz.asc +/cmocka-1.1.5.tar.xz +/cmocka-1.1.5.tar.xz.asc diff --git a/cmocka.keyring b/cmocka.keyring new file mode 100644 index 0000000000000000000000000000000000000000..411bf36750f0fc4a8856034415e39c7116559ee4 GIT binary patch literal 3432 zcma*p_ct4i!ocx}QL!m1M$D?3u}kf!7>&Kfo>jzNwfC+*)QGKCjjC0OQpBF2iW)Uz zuiB;D=e_5i^FF`a_q_kZ=X}pM8%R!|t2L&GM+F!>lQPCyyIvl`cuN@$-G>|ou&}^A zn93lyCo!q)4>ia3)el-n*1nj^vXJGQThLGx{NnCp;L^s1(PBlSFEXaSzqiqHCY|Id zZL;oMaJk9*-Y}D^u@0LTMT-k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PoxUyIdGMRwuhk6WWJ9^{u<7yf3T#u|{}N_jm0p ziG*>B&4R**r*0}{4{oPZYS;#x*!+in_-dxU5>=M*(Q(>mhqs_R4`+9##H{rQDNmd$ z<3GL8m+A2c+HN0Em|MzNi4e zszZ^O3|CJCW&}y2kY0M)Q)(7n%-OHtW{!&MCPB`pRyAe6PtJ9^PT^+x5Ms?2lpEcg zxLE42T2Q;)-@I2rN3bZf`ZGVsESUm*azDxK)1S)?X1dOY6Fk110>vSA>xs@(83LvN zrqZ8RqPwhP2MbDS8dN(KLk<M0^X91Y&-2YtVD z7BEl8V*IU1za57kjLA}OZbyBE4RPh&y8`PFdQS*AN%(*I0Dhl5g_`w+fV-wDz^?%e-MC+^^F)pKXO*>8GLAobn_18oHSlg1D@CVQ@t^{77jP+?~bsVsupi zx!ysj!tWst*4B-=Dlp12NVbB|9bzI+YYMDxj^+?*_K=k1?_vXW+YMq5Fgxu;00GLv7ozi8D%0m6&DgGm$ag&vThM`$#;S->ro4Abem9=|F=4Q<)fXi_hC?5-{)I4qJ<*-gGX^b5V}^M4xQA-l?J3`= z+j%iAdqjf#6K6CNg}+~#7iki!4|J-=5~{hT*G;m(8i?A7`d1HoY>4HBTts484LyV# WZDm2tMA4T=UAs2at-!xR8~z2&g;JCN literal 0 HcmV?d00001 diff --git a/cmocka.spec b/cmocka.spec new file mode 100644 index 0000000..b4d97ce --- /dev/null +++ b/cmocka.spec @@ -0,0 +1,254 @@ +Name: cmocka +Version: 1.1.5 +Release: 7%{?dist} + +License: ASL 2.0 +Summary: An elegant unit testing framework for C with support for mock objects +URL: https://cmocka.org + +Source0: https://cmocka.org/files/1.1/%{name}-%{version}.tar.xz +Source1: https://cmocka.org/files/1.1/%{name}-%{version}.tar.xz.asc +Source2: cmocka.keyring + +BuildRequires: gcc +BuildRequires: cmake +BuildRequires: doxygen +BuildRequires: glibc-devel +BuildRequires: gnupg2 + +%description +There are a variety of C unit testing frameworks available however many of them +are fairly complex and require the latest compiler technology. Some development +requires the use of old compilers which makes it difficult to use some unit +testing frameworks. In addition many unit testing frameworks assume the code +being tested is an application or module that is targeted to the same platform +that will ultimately execute the test. Because of this assumption many +frameworks require the inclusion of standard C library headers in the code +module being tested which may collide with the custom or incomplete +implementation of the C library utilized by the code under test. + +Cmocka only requires a test application is linked with the standard C library +which minimizes conflicts with standard C library headers. Also, CMocka tries +to avoid the use of some of the newer features of C compilers. + +This results in CMocka being a relatively small library that can be used to +test a variety of exotic code. If a developer wishes to simply test an +application with the latest compiler then other unit testing frameworks may be +preferable. + +This is the successor of Google's Cmockery. + +%package -n libcmocka +Summary: Lightweight library to simplify and generalize unit tests for C + +Conflicts: cmockery2 + +%description -n libcmocka +There are a variety of C unit testing frameworks available however many of them +are fairly complex and require the latest compiler technology. Some development +requires the use of old compilers which makes it difficult to use some unit +testing frameworks. In addition many unit testing frameworks assume the code +being tested is an application or module that is targeted to the same platform +that will ultimately execute the test. Because of this assumption many +frameworks require the inclusion of standard C library headers in the code +module being tested which may collide with the custom or incomplete +implementation of the C library utilized by the code under test. + +CMocka only requires a test application is linked with the standard C library +which minimizes conflicts with standard C library headers. Also, CMocka tries +to avoid the use of some of the newer features of C compilers. + +This results in CMocka being a relatively small library that can be used to +test a variety of exotic code. If a developer wishes to simply test an +application with the latest compiler then other unit testing frameworks may be +preferable. + +This is the successor of Google's Cmockery. + +%package -n libcmocka-static +Summary: Lightweight library to simplify and generalize unit tests for C + +%description -n libcmocka-static +Static version of the cmocka library. + +%package -n libcmocka-devel +Summary: Development headers for the cmocka library +Requires: libcmocka = %{version}-%{release} + +Conflicts: cmockery2-devel + +%description -n libcmocka-devel +Development headers for the cmocka unit testing library. + +%prep +%autosetup -p1 + +%build +# This package uses -Wl,-wrap to wrap calls at link time. This is incompatible +# with LTO. +# Disable LTO +%define _lto_cflags %{nil} + +%cmake \ + -DWITH_STATIC_LIB=ON \ + -DWITH_CMOCKERY_SUPPORT=ON \ + -DUNIT_TESTING=ON + +%cmake_build +%__cmake --build %{__cmake_builddir} --target docs + +%install +%cmake_install +ln -s libcmocka.so %{buildroot}%{_libdir}/libcmockery.so + +%ldconfig_scriptlets -n libcmocka + +%check +%ctest + +%files -n libcmocka +%doc AUTHORS README.md ChangeLog +%license COPYING +%{_libdir}/libcmocka.so.* + +%files -n libcmocka-static +%{_libdir}/libcmocka-static.a + +%files -n libcmocka-devel +%doc %{__cmake_builddir}/doc/html +%{_includedir}/cmocka.h +%{_includedir}/cmocka_pbc.h +%{_includedir}/cmockery/cmockery.h +%{_includedir}/cmockery/pbc.h +%{_libdir}/libcmocka.so +%{_libdir}/libcmockery.so +%{_libdir}/pkgconfig/cmocka.pc +%{_libdir}/cmake/cmocka/cmocka-config-version.cmake +%{_libdir}/cmake/cmocka/cmocka-config.cmake + +%changelog +* Wed Aug 05 2020 Andreas Schneider - 1.1.5-7 +- Correctly build with new cmake macros + +* Sat Aug 01 2020 Fedora Release Engineering - 1.1.5-6 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jul 27 2020 Fedora Release Engineering - 1.1.5-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 1 2020 Jeff Law - 1.1.5-4 +- Disable LTO + +* Tue Jan 28 2020 Fedora Release Engineering - 1.1.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Jul 24 2019 Fedora Release Engineering - 1.1.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Mar 28 2019 Andreas Schneider - 1.1.5-1 +- Update to version 1.1.5 + +* Thu Jan 31 2019 Fedora Release Engineering - 1.1.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Sep 27 2018 Andreas Schneider - 1.1.3-1 +- Update to version 1.1.3 + +* Wed Aug 29 2018 Andreas Schneider - 1.1.2-1 +- Update to version 1.1.2 + +* Thu Jul 12 2018 Fedora Release Engineering - 1.1.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 1.1.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Aug 02 2017 Fedora Release Engineering - 1.1.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.1.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Tue Mar 28 2017 Than Ngo - 1.1.0-5 +- added workaround for gcc7 bug on ppc64le temporary + +* Fri Feb 10 2017 Fedora Release Engineering - 1.1.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Sep 21 2016 Jakub Hrozek - 1.1.0-1 +- Update to version 1.1.0 + * Added support to catch multiple exceptions + * Added support to verify call ordering + * Added support to pass initial data to test cases + * Added will_return_maybe() for ignoring mock returns + * Added subtests for groups using TAP output + * Added support to write multiple XML files for groups + * Improved documentation + * Fixed XML output generataion + * Fixed Windows builds with VS2015 + +* Wed Feb 03 2016 Fedora Release Engineering - 1.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 1.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Thu Mar 12 2015 Andreas Schneider - 1.0.1-1 +- Update to version 1.0.1: + * Added a macro for assert_ptr_equal(). + * Fixed test_realloc() if 0 size is passed. + * Fixed objects packaging bug. + * Fixed building with newer gcc versions. + +* Mon Feb 16 2015 Andreas Schneider - 1.0.0-1 +- Update to version 1.0.0: + * Added new test runner with group fixtures. The old runner is deprecated + * Added an extensible message output formatter + * Added jUnit XML message output + * Added subunit message output + * Added Test Anything Protocol message output + * Added skip() command + * Added test_realloc() + * Added a cmockery compat header + * Fixed a lot of bugs on Windows + +* Sat Aug 16 2014 Fedora Release Engineering - 0.4.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.4.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Mon May 26 2014 - Andreas Schneider - 0.4.1-1 +- Update to version 0.4.1. + +* Fri Apr 11 2014 - Andreas Schneider - 0.4.0-1 +- Update to version 0.4.0. + +* Wed Nov 06 2013 - Andreas Schneider - 0.3.2-1 +- Update to version 0.3.2. +- Include API documentation. + +* Sat Aug 03 2013 Fedora Release Engineering - 0.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Jul 10 2013 - Andreas Schneider - 0.3.0-2 +- Update to version 0.3.1. +- Fixed cmocka issues on big endian. +- resolves: #975044 + +* Wed Jun 05 2013 - Andreas Schneider - 0.3.0-1 +- Update to version 0.3.0. + +* Wed Feb 13 2013 Fedora Release Engineering - 0.2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Jan 18 2013 - Andreas Schneider - 0.2.0-3 +- Fixed typo in Source URL. + +* Thu Jan 17 2013 - Andreas Schneider - 0.2.0-2 +- Fixed Source URL. +- Fixed package groups. + +* Tue Jan 15 2013 - Andreas Schneider - 0.2.0-1 +- Initial version 0.2.0 diff --git a/sources b/sources new file mode 100644 index 0000000..2c97098 --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +SHA512 (cmocka-1.1.5.tar.xz) = cad7f04757183d004f6eaad39036fc0e24c5e0e987f80e85bc43bc66dba22389cb02b08e25531cc28a541d0a24a86b29be134a2d6fc339128e87d66952f502bd +SHA512 (cmocka-1.1.5.tar.xz.asc) = 2723fbdd872ede0fc1a0ffae13967000485daafeca92700e37954ae5fdca9f9aa67b9c7c90ae2c53643f1b394d67bdc9926902af68e4eac2203b6bba4ecc07c4