[packages/boxes] Up to 2.3.1
arekm
arekm at pld-linux.org
Wed May 20 18:16:48 CEST 2026
commit 1c4aaa6d2e2daf5215f3eda3a34660bf3fd7808e
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed May 20 18:16:24 2026 +0200
Up to 2.3.1
boxes-cflags.patch | 16 ----------------
boxes-no-strip.patch | 18 ++++++++++++++++++
boxes.spec | 36 +++++++++++++++++++-----------------
3 files changed, 37 insertions(+), 33 deletions(-)
---
diff --git a/boxes.spec b/boxes.spec
index c3abdbb..84a5efe 100644
--- a/boxes.spec
+++ b/boxes.spec
@@ -1,16 +1,19 @@
Summary: Draw any kind of box around some given text
Summary(pl.UTF-8): Rysowanie dowolnych ramek wokół podanego tekstu
Name: boxes
-Version: 1.1
-Release: 2
-License: GPL
+Version: 2.3.1
+Release: 1
+License: GPL v3
Group: Applications/Text
-Source0: http://boxes.thomasjensen.com/download/%{name}-%{version}.src.tar.gz
-# Source0-md5: d2ef9fa28a87bf32b3fe0c47ab82fa97
-Patch0: %{name}-cflags.patch
-URL: http://boxes.thomasjensen.com/
+Source0: https://github.com/ascii-boxes/boxes/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: ff64e5a75018ce337da5fa9a78414152
+Patch0: %{name}-no-strip.patch
+URL: https://boxes.thomasjensen.com/
BuildRequires: bison
BuildRequires: flex
+BuildRequires: libunistring-devel
+BuildRequires: ncurses-devel
+BuildRequires: pcre2-32-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -39,27 +42,26 @@ konfiguracyjnego o otwartym formacie.
%patch -P0 -p1
%build
-rm -f doc/boxes.1
-rm -f src/boxes.h
%{__make} \
CC="%{__cc}" \
- CFLAGS_ADDTL="%{rpmcflags}" \
+ CFLAGS_ADDTL="%{rpmcflags} %{rpmcppflags}" \
+ LDFLAGS_ADDTL="%{rpmldflags}" \
GLOBALCONF="%{_sysconfdir}/boxes.conf"
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_sysconfdir}}
-install src/boxes $RPM_BUILD_ROOT%{_bindir}
-install doc/boxes.1 $RPM_BUILD_ROOT%{_mandir}/man1
-install boxes-config $RPM_BUILD_ROOT%{_sysconfdir}/boxes.conf
+install -p out/boxes $RPM_BUILD_ROOT%{_bindir}/boxes
+cp -p doc/boxes.1 $RPM_BUILD_ROOT%{_mandir}/man1
+cp -p boxes-config $RPM_BUILD_ROOT%{_sysconfdir}/boxes.conf
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README
-%attr(755,root,root) %{_bindir}/*
-%{_mandir}/man1/*
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
+%doc README.md LICENSE
+%attr(755,root,root) %{_bindir}/boxes
+%{_mandir}/man1/boxes.1*
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/boxes.conf
diff --git a/boxes-cflags.patch b/boxes-cflags.patch
deleted file mode 100644
index 05e7196..0000000
--- a/boxes-cflags.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-diff -urN boxes-1.1.orig/src/Makefile boxes-1.1/src/Makefile
---- boxes-1.1.orig/src/Makefile 2000-03-18 00:53:59.000000000 +0100
-+++ boxes-1.1/src/Makefile 2003-08-10 12:56:00.000000000 +0200
-@@ -99,10 +99,10 @@
-
-
- build:
-- $(MAKE) CFLAGS_ADDTL=-O boxes
-+ $(MAKE) boxes
- strip boxes
- debug:
-- $(MAKE) CFLAGS_ADDTL=-g boxes
-+ $(MAKE) boxes
-
- boxes: $(ALL_OBJ)
- $(MAKE) -C regexp CC=$(CC) libregexp.a
diff --git a/boxes-no-strip.patch b/boxes-no-strip.patch
new file mode 100644
index 0000000..988906e
--- /dev/null
+++ b/boxes-no-strip.patch
@@ -0,0 +1,18 @@
+--- boxes-2.3.1.orig/src/Makefile 2026-05-20 17:35:37.012161746 +0200
++++ boxes-2.3.1/src/Makefile 2026-05-20 17:35:37.092038010 +0200
+@@ -65,15 +65,12 @@
+
+ boxes: $(ALL_OBJ) | check_dir
+ $(CC) $(LDFLAGS) $^ -o $@ -lunistring -lpcre2-32 -lncurses
+- if [ "$(STRIP)" = "true" ] ; then strip $@ ; fi
+
+ boxes.static: $(ALL_OBJ) | check_dir
+ $(CC) $(LDFLAGS) $^ -o $(BOXES_EXECUTABLE_NAME) -l:libunistring.a -l:libpcre2-32.a -l:libncurses.a
+- if [ "$(STRIP)" = "true" ] ; then strip $(BOXES_EXECUTABLE_NAME) ; fi
+
+ boxes.exe: $(ALL_OBJ) | check_dir
+ $(CC) $(LDFLAGS) $^ -o $@ -lkernel32 -l:libunistring.a -l:libpcre2-32.a -l:libiconv.a
+- if [ "$(STRIP)" = "true" ] ; then strip $@ ; fi
+
+
+ flags_unix:
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/boxes.git/commitdiff/1c4aaa6d2e2daf5215f3eda3a34660bf3fd7808e
More information about the pld-cvs-commit
mailing list