6 Commits

Author SHA256 Message Date
87f02d4d78 Accepting request 1240840 from M17N
OBS-URL: https://build.opensuse.org/request/show/1240840
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mined?expand=0&rev=27
2025-01-29 15:10:46 +00:00
41a41a2daf Fix date format to be parseable
OBS-URL: https://build.opensuse.org/package/show/M17N/mined?expand=0&rev=79
2025-01-28 13:46:42 +00:00
12a0448c11 Accepting request 1232819 from M17N
OBS-URL: https://build.opensuse.org/request/show/1232819
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mined?expand=0&rev=26
2024-12-20 14:28:44 +00:00
c25aa41ae0 - Compile with %{optflags}
- Override LIBDIR to properly find termcap library
- Use generic makefile also on arm

OBS-URL: https://build.opensuse.org/package/show/M17N/mined?expand=0&rev=77
2024-12-20 12:06:55 +00:00
6236bc944c Accepting request 1231711 from M17N
- Add do-not-use-gets-function.patch, use fgets instead of gets function. (forwarded request 1231710 from hillwood)

OBS-URL: https://build.opensuse.org/request/show/1231711
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mined?expand=0&rev=25
2024-12-17 18:25:32 +00:00
f65b27ee4c Accepting request 1231710 from home:hillwood:branches:M17N
- Add do-not-use-gets-function.patch, use fgets instead of gets function.

OBS-URL: https://build.opensuse.org/request/show/1231710
OBS-URL: https://build.opensuse.org/package/show/M17N/mined?expand=0&rev=75
2024-12-17 14:44:46 +00:00
3 changed files with 35 additions and 4 deletions

View File

@@ -0,0 +1,12 @@
diff -Nur mined-2022.27/src/handescr/insutf8ch.c mined-2022.27-new/src/handescr/insutf8ch.c
--- mined-2022.27/src/handescr/insutf8ch.c 2022-12-23 16:44:41.000000000 +0800
+++ mined-2022.27-new/src/handescr/insutf8ch.c 2024-12-17 22:37:01.235345846 +0800
@@ -127,7 +127,7 @@
if (argv[1][1] == 'd')
dec = 1;
- while (gets (buf)) {
+ while (fgets(buf, 9998, stdin)) {
char * U_ = strstr (buf, "U+");
if (U_) {
char * s = U_ + 2;

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Wed Dec 18 10:51:59 UTC 2024 - Andreas Schwab <schwab@suse.de>
- Compile with %{optflags}
- Override LIBDIR to properly find termcap library
- Use generic makefile also on arm
-------------------------------------------------------------------
Tue Dec 17 14:40:03 UTC 2024 - Hillwood Yang <hillwood@opensuse.org>
- Add do-not-use-gets-function.patch, use fgets instead of gets function.
-------------------------------------------------------------------
Fri Dec 23 12:21:44 UTC 2022 - Dirk Müller <dmueller@suse.com>
@@ -153,7 +165,8 @@ Bug fixes:
• Fixed Alt-digit accent prefix functions for mintty and rxvt (since 2012.20).
• Fixes related to NUL or NONE pseudo lineends.
Thu, 10 May 2012 00:00:00 CEST - towo@towo.net
-------------------------------------------------------------------
Thu May 10 00:00:00 CEST 2012 - towo@towo.net
Update to mined 2012.22 - highlights of last 3 releases:

View File

@@ -1,7 +1,7 @@
#
# spec file for package mined
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,9 @@ Group: Productivity/Editors/Other
URL: https://mined.github.io/
Source: https://github.com/mined/mined/archive/refs/tags/%{version}.tar.gz
Source2: http://unicode.org/Public/UNIDATA/Unihan.zip
# PATCH-FIX-UPSTREAM do-not-use-gets-function.patch hillwood@opensuee.org
# Use fgets instead of gets function
Patch0: do-not-use-gets-function.patch
BuildRequires: fdupes
BuildRequires: unzip
BuildRequires: update-desktop-files
@@ -65,6 +68,9 @@ It was the first editor that supported Unicode in a plain-text terminal
%prep
%setup -q
%patch -P 0 -p1
# Use generic makefile also for arm
sed -i s/arm/never/ makemined
# desktop file fix
sed -i "s/mined.xpm/mined/" ./usrshare/setup_install/mined.desktop
sed -i s/Utility/Utility\;/ ./usrshare/setup_install/mined.desktop
@@ -72,10 +78,10 @@ sed -i s/Utility/Utility\;/ ./usrshare/setup_install/mined.desktop
%build
cp -p %{SOURCE2} src
%configure
make OPT="%{optflags}" USRLIBDIR=%{_libdir} ROOTLIBDIR=/%{_lib} %{?_smp_mflags}
%make_build CCFLAGS="%{optflags}" LIBDIR=/%{_lib}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%make_install
# fix links
rm -rf %{buildroot}%{_bindir}/{minmacs,mpico,mstar}