From fa8f790d0a4265dde27afef8ec7ead639570c748 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 21:27:35 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.1.5-1mamba;Thu Apr 30 2020] --- README.md | 2 ++ cmocka.spec | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 cmocka.spec diff --git a/README.md b/README.md index 1cb4431..a4df848 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # cmocka +mocka is an elegant unit testing framework for C with support for mock objects. + diff --git a/cmocka.spec b/cmocka.spec new file mode 100644 index 0000000..2546ce0 --- /dev/null +++ b/cmocka.spec @@ -0,0 +1,78 @@ +Name: cmocka +Version: 1.1.5 +Release: 1mamba +Summary: An elegant unit testing framework for C with support for mock objects +Group: Applications/Development +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://cmocka.org/ +Source: https://cmocka.org/files/1.1/cmocka-%{version}.tar.xz +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +mocka is an elegant unit testing framework for C with support for mock objects. + +%package -n lib%{name} +Group: System/Libraries +Summary: An elegant unit testing framework for C with support for mock objects + +%description -n lib%{name} +mocka is an elegant unit testing framework for C with support for mock objects. +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libcmocka.so.* +%doc AUTHORS COPYING + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/cmocka.h +%{_includedir}/cmocka_pbc.h +%dir %{_libdir}/cmake/cmocka +%{_libdir}/cmake/cmocka/cmocka-config*.cmake +%{_libdir}/libcmocka.so +%{_libdir}/pkgconfig/cmocka.pc +%doc ChangeLog README.md + + +%changelog +* Thu Apr 30 2020 Silvan Calarco 1.1.5-1mamba +- package created using the webbuild interface