[packages/libBlocksRuntime] Rel 2; build with gcc
arekm
arekm at pld-linux.org
Tue Mar 10 00:53:17 CET 2026
commit 38b5a3f14ffe050102e797ef8e72812f45c4bb03
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Mar 10 00:53:13 2026 +0100
Rel 2; build with gcc
compiler-selection-gcc-first.patch | 11 +++++++++++
libBlocksRuntime.spec | 11 ++++++-----
2 files changed, 17 insertions(+), 5 deletions(-)
---
diff --git a/libBlocksRuntime.spec b/libBlocksRuntime.spec
index 014bd0e..cf27c1e 100644
--- a/libBlocksRuntime.spec
+++ b/libBlocksRuntime.spec
@@ -2,13 +2,13 @@ Summary: The runtime library for C blocks support
Summary(pl.UTF-8): Biblioteka uruchomieniowa do obsługi bloków w C
Name: libBlocksRuntime
Version: 0.3
-Release: 1
+Release: 2
License: MIT-like
Group: Libraries
-Source0: http://downloads.sourceforge.net/blocksruntime/%{name}-%{version}.tar.gz
+Source0: https://downloads.sourceforge.net/blocksruntime/%{name}-%{version}.tar.gz
# Source0-md5: 9731dac1aff89a65ba0cb83ad5da9cda
-URL: http://sourceforge.net/projects/blocksruntime/
-BuildRequires: clang
+Patch0: compiler-selection-gcc-first.patch
+URL: https://sourceforge.net/projects/blocksruntime/
BuildRequires: ruby
BuildRequires: sed >= 4.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -51,10 +51,10 @@ Statyczna biblioteka BlocksRuntime.
%prep
%setup -q
+%patch -P0 -p1
%build
# NOTE: not autoconf configure
-CC="clang" \
./configure \
--build=%{_target_platform} \
--prefix=%{_prefix} \
@@ -64,6 +64,7 @@ CC="clang" \
%{__sed} -i -e 's at -shared@-shared -Wl,-soname,libBlocksRuntime.so.0@' Makefile
%{__make} \
+ libBlocksRuntime.so libBlocksRuntime.a \
CFLAGS="%{rpmcflags}" \
LDFLAGS="%{rpmldflags}"
diff --git a/compiler-selection-gcc-first.patch b/compiler-selection-gcc-first.patch
new file mode 100644
index 0000000..bc6a708
--- /dev/null
+++ b/compiler-selection-gcc-first.patch
@@ -0,0 +1,11 @@
+--- libBlocksRuntime-0.3/configure.rb.orig 2011-06-17 18:35:23.000000000 +0200
++++ libBlocksRuntime-0.3/configure.rb 2026-03-10 13:42:00.000000000 +0100
+@@ -20,7 +20,7 @@
+ require 'makeconf'
+
+ cc = CCompiler.new(
+- :search => %w{clang}
++ :search => %w{gcc clang}
+ )
+
+ project = Project.new(
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libBlocksRuntime.git/commitdiff/38b5a3f14ffe050102e797ef8e72812f45c4bb03
More information about the pld-cvs-commit
mailing list