package created using the webbuild interface [release 1.1.5-1mamba;Thu Apr 30 2020]

This commit is contained in:
Silvan Calarco 2024-01-05 21:27:35 +01:00
parent 89b699f337
commit fa8f790d0a
2 changed files with 80 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# cmocka
mocka is an elegant unit testing framework for C with support for mock objects.

78
cmocka.spec Normal file
View File

@ -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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 1.1.5-1mamba
- package created using the webbuild interface