xnedit 1.4.1-1 (znver1;aarch64;x86_64) 2023-17433
9999

Status published
Submitter rugyada [@T] gmail.com
Platform rolling
Repository unsupported
URL https://abf.openmandriva.org/build_lists/330336
Packages
xnedit-1.4.1-1.znver1.source
xnedit-1.4.1-1.znver1.binary
xnedit-debuginfo-1.4.1-1.znver1.debuginfo
xnedit-debugsource-1.4.1-1.znver1.binary
xnedit-1.4.1-1.aarch64.source
xnedit-1.4.1-1.aarch64.binary
xnedit-debuginfo-1.4.1-1.aarch64.debuginfo
xnedit-debugsource-1.4.1-1.aarch64.binary
xnedit-1.4.1-1.x86_64.source
xnedit-1.4.1-1.x86_64.binary
xnedit-debuginfo-1.4.1-1.x86_64.debuginfo
xnedit-debugsource-1.4.1-1.x86_64.binary
Build Date 2023-04-10 23:15:23 +0000 UTC
Last Updated 2023-04-16 00:07:46.364753336 +0000 UTC
$ git show --format=fuller --patch-with-stat --summary 2480cfcde9f62f5a30e691d22f65e6bd8e030273

commit 2480cfcde9f62f5a30e691d22f65e6bd8e030273
Author:     mandian <mandian@users.noreply.github.com>
AuthorDate: Sat Apr 8 23:31:30 2023 +0100
Commit:     mandian <mandian@users.noreply.github.com>
CommitDate: Sat Apr 8 23:31:30 2023 +0100

    Initial release
---
 .abf.yml                          |  2 ++
 xnedit-1.4.1-compiler_flags.patch | 11 ++++++
 xnedit.spec                       | 72 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 85 insertions(+)
 create mode 100644 .abf.yml
 create mode 100644 xnedit-1.4.1-compiler_flags.patch
 create mode 100644 xnedit.spec

diff --git a/.abf.yml b/.abf.yml
new file mode 100644
index 0000000..f564656
--- /dev/null
+++ b/.abf.yml
@@ -0,0 +1,2 @@
+sources:
+  xnedit-1.4.1.tar.gz: e35dbd2044d19c702aea9529ab900e54caa4fd60
diff --git a/xnedit-1.4.1-compiler_flags.patch b/xnedit-1.4.1-compiler_flags.patch
new file mode 100644
index 0000000..80f7f56
--- /dev/null
+++ b/xnedit-1.4.1-compiler_flags.patch
@@ -0,0 +1,11 @@
+--- a/makefiles/Makefile.linux
++++ b/makefiles/Makefile.linux
+@@ -22,7 +22,7 @@ AR=ar
+ # To use an alternative text field widget for search/replace, add
+ # -DXNE_TEXTFIELD to the CFLAGS.
+ # 
+-CFLAGS=-O -std=gnu99 -I/usr/X11R6/include -I/usr/include/X11 -DUSE_DIRENT -DUSE_LPR_PRINT_CMD $(shell pkg-config --cflags xft fontconfig)
++CFLAGS+=-O -std=gnu99 -I/usr/X11R6/include -I/usr/include/X11 -DUSE_DIRENT -DUSE_LPR_PRINT_CMD $(shell pkg-config --cflags xft fontconfig)
+ 
+ ARFLAGS=-urs
+ 
diff --git a/xnedit.spec b/xnedit.spec
new file mode 100644
index 0000000..c220ad9
--- /dev/null
+++ b/xnedit.spec
@@ -0,0 +1,72 @@
+Summary:		A fast and classic X11 text editor, based on NEdit
+Name:			xnedit
+Version:		1.4.1
+Release:		1
+License:		GPLv2
+Group:			Editors
+URL:			https://github.com/unixwork/xnedit
+Source0:		https://github.com/unixwork/xnedit/archive/v%{version}/%{name}-%{version}.tar.gz
+Patch0:			xnedit-1.4.1-compiler_flags.patch
+BuildRequires:	bison
+BuildRequires:	motif-devel
+BuildRequires:	imagemagick
+BuildRequires:	librsvg
+BuildRequires:	pkgconfig(freetype2)
+BuildRequires:	pkgconfig(fontconfig)
+BuildRequires:	pkgconfig(libpcre)
+BuildRequires:	pkgconfig(x11)
+BuildRequires:	pkgconfig(xft)
+BuildRequires:	pkgconfig(xpm)
+BuildRequires:	pkgconfig(xrender)
+BuildRequires:	pkgconfig(xt)
+
+%description
+XNEdit is a multi-purpose text editor for the X Window System, which combines
+a standard, easy to use, graphical user interface with the thorough
+functionality and stability required by users who edit text eight hours a day.
+It provides intensive support for development in a wide variety of languages,
+text processors, and other tools, but at the same time can be used productively
+by just about anyone who needs to edit text.
+
+XNEdit is a fork of the Nirvana Editor (NEdit) and provides new functionality
+like antialiased text rendering and support for unicode.
+
+%files
+%license LICENSE
+%doc CHANGELOG README.md ReleaseNotes
+%{_bindir}/%{name}
+%{_bindir}/xnc
+%{_datadir}/applications/%{name}.desktop
+%{_iconsdir}/hicolor/*/apps/%{name}.png
+%{_datadir}/pixmaps/%{name}.xpm
+
+
+#---------------------------------------------------------------------------
+
+%prep
+%autosetup -p1
+
+%build
+%before_configure
+%make_build linux
+
+%install
+%make_install
+
+# icons
+rm -f %{buildroot}%{_iconsdir}/%{name}.png
+# FIXME: imagemagick produces empty images (maybe
+#	a bug in inkskape maybe a bug in image)
+#	rsvg-convert works properly for png only
+for d in 16 32 48 64 72 96 128 256
+do
+	install -dm 0755 %{buildroot}%{_iconsdir}/hicolor/${d}x${d}/apps/
+#	rsvg-convert -f png -h ${d} -w ${d} resources/desktop/%{sname}-logo.svg \
+#			-o %{buildroot}%{_iconsdir}/hicolor/${d}x${d}/apps/%{name}.png
+	convert -background none -scale "${d}x${d}" resources/desktop/%{name}.png \
+			%{buildroot}%{_iconsdir}/hicolor/${d}x${d}/apps/%{name}.png
+done
+install -dm 0755 %{buildroot}%{_datadir}/pixmaps/
+	convert -background none -scale "${d}x${d}" resources/desktop/%{name}.png \
+	%{buildroot}%{_datadir}/pixmaps/%{name}.xpm
+
Not Available

benbullard79 [@T] cox.netNo Comment.587d 22hrs
benbullard79 [@T] cox.netNo Comment.587d 22hrs