bcunit 3.0.2-3 (znver1;x86_64;aarch64) 2022-15248
10002

Status published
Submitter mandian [@T] tutanota.com
Platform 4.3
Repository main
URL https://abf.openmandriva.org/build_lists/234909
Packages
bcunit-3.0.2-3.znver1.source
bcunit-debugsource-3.0.2-3.znver1.binary
lib64bcunit-devel-3.0.2-3.znver1.binary
lib64bcunit1-3.0.2-3.znver1.binary
lib64bcunit1-debuginfo-3.0.2-3.znver1.debuginfo
bcunit-3.0.2-3.x86_64.source
bcunit-debugsource-3.0.2-3.x86_64.binary
lib64bcunit-devel-3.0.2-3.x86_64.binary
lib64bcunit1-3.0.2-3.x86_64.binary
lib64bcunit1-debuginfo-3.0.2-3.x86_64.debuginfo
bcunit-3.0.2-3.aarch64.source
bcunit-debugsource-3.0.2-3.aarch64.binary
lib64bcunit-devel-3.0.2-3.aarch64.binary
lib64bcunit1-3.0.2-3.aarch64.binary
lib64bcunit1-debuginfo-3.0.2-3.aarch64.debuginfo
Build Date 2022-09-26 14:18:50 +0000 UTC
Last Updated 2022-09-30 18:22:00.350701726 +0000 UTC
$ git show --format=fuller --patch-with-stat --summary aa3e285c3c62d67c24a4daedf6a90ea1025600bf

commit aa3e285c3c62d67c24a4daedf6a90ea1025600bf
Author:     mandian <mandian@users.noreply.github.com>
AuthorDate: Wed Jul 6 20:34:22 2022 +0100
Commit:     mandian <mandian@users.noreply.github.com>
CommitDate: Wed Jul 6 20:34:22 2022 +0100

    update from git
---
 .abf.yml    |  1 +
 bcunit.spec | 61 +++++++++++++++++++++++++++++++++++++++++++------------------
 2 files changed, 44 insertions(+), 18 deletions(-)

diff --git a/.abf.yml b/.abf.yml
index fe2f3a1..73e2ca9 100644
--- a/.abf.yml
+++ b/.abf.yml
@@ -1,2 +1,3 @@
 sources:
   3.0.2.tar.gz: b670efe1849328d11106ca03f2dffea9b74dce7b
+  bcunit-e3557aed8ba22e04047a9e4371a331b863081fc8.tar.bz2: 036927169c831f1b90ec18ace9f70f6a50e22e8e
diff --git a/bcunit.spec b/bcunit.spec
index 73f837d..66c956d 100644
--- a/bcunit.spec
+++ b/bcunit.spec
@@ -1,18 +1,30 @@
-%define Name BCUnit
+%define oname BCUnit
+%define name %(echo %oname | tr [:upper:] {:lower:])
+
 %define	major 1
 %define	libname %mklibname %{name} %{major}
 %define develname %mklibname %{name} -d
 
+%bcond_without	ncurses
+%bcond_with	static
+
+# NOTE: use commit if the last release is too old
+%define commit e3557aed8ba22e04047a9e4371a331b863081fc8
+
 Name:		bcunit
 Version:	3.0.2
-Release:	2
+Release:	3
 License:	GPLv2+
 Summary:	A Unit Testing Framework for C, based on (abandoned) CUnit
 Group:		System/Libraries
 URL:		https://github.com/BelledonneCommunications/bcunit
-Source0:	https://github.com/BelledonneCommunications/bcunit/archive/%{version}.tar.gz
+Source0:	https://gitlab.linphone.org/BC/public/%{name}/-/archive/%{?commit:%{commit}}%{!?commit:%{version}}/%{name}-%{?commit:%{commit}}%{!?commit:%{version}}.tar.bz2
+BuildRequires:	cmake
+BuildRequires:	ninja
+%if %{with ncurses}
 BuildRequires:	pkgconfig(ncurses)
-BuildRequires:	cmake ninja
+%endif
+
 
 %description
 BCUnit is a lightweight system for writing, administering, and running unit
@@ -32,6 +44,8 @@ These interfaces currently include:
 
 It is based on the abandoned CUnit.
 
+#---------------------------------------------------------------------------
+
 %package -n %{libname}
 Summary:	C testing framework
 Group:		System/Libraries
@@ -54,34 +68,45 @@ These interfaces currently include:
 
 It is based on the abandoned CUnit.
 
+%files -n %{libname}
+%{_libdir}/*.so.%{major}*
+
+#---------------------------------------------------------------------------
+
 %package -n %{develname}
 Summary:	Development files for %{name}
 Group:		Development/C
 Requires:	%{libname} = %{version}-%{release}
 Provides:	%{name}-devel = %{version}-%{release}
 Provides:	lib%{name}-devel = %{version}-%{release}
-Obsoletes:	%mklibname %{name} 1 -d
 
 %description -n	%{develname}
 This package contains development files for %{name}.
 
+%files -n %{develname}
+%{_libdir}/*.so
+%if %{with static}
+%{_libdir}/*.a
+%endif
+%{_libdir}/pkgconfig/%{name}.pc
+%{_includedir}/%{oname}
+%{_datadir}/%{oname}
+%{_datadir}/BCunit
+
+#---------------------------------------------------------------------------
+
 %prep
-%autosetup -p1
-%cmake -G Ninja
+%autosetup -p1 -n %{name}-%{?commit:%{commit}}%{!?commit:%{version}}
 
 %build
-%ninja_build -C build
+%cmake \
+	-DENABLE_STRICT:BOOL=ON \
+	-DENABLE_STATIC:BOOL=%{?with_static:ON}%{?!with_static:OFF} \
+	-DENABLE_CURSES:BOLL=%{?with_ncurses:ON}%{?!with_ncurses:OFF} \
+	-G Ninja
+
+%ninja_build #-C build
 
 %install
 %ninja_install -C build
 
-%files -n %{libname}
-%{_libdir}/*.so.%{major}*
-
-%files -n %{develname}
-%{_libdir}/*.so
-%{_libdir}/*.a
-%{_libdir}/pkgconfig/%{name}.pc
-%{_includedir}/%{Name}
-%{_datadir}/%{Name}
-%{_datadir}/BCunit
Not Available

mandian [@T] tutanota.comNo Comment.61d 19hrs
benbullard79 [@T] cox.netNo Comment.60d 22hrs
benbullard79 [@T] cox.netNo Comment.60d 22hrs