Don't use packaging files, but rather files we send upstream.

This commit is contained in:
2025-01-12 10:40:09 +01:00
parent e5c089a7bd
commit 0bd521cdad
5 changed files with 7 additions and 28 deletions

View File

@@ -1,10 +0,0 @@
[Desktop Entry]
Type=Application
Name=Acme
GenericName=Editor
Comment=Editor from Plan9
Exec=acme
Icon=acme
Terminal=false
StartupNotify=false
Categories=Development;TextEditor

BIN
acme.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -1,3 +0,0 @@
#!/bin/sh
. /etc/profile.d/plan9.sh
9 acme "$@"

View File

@@ -1,4 +0,0 @@
export PLAN9=/usr/lib/plan9
export PATH=$PATH:$PLAN9/bin
export ROOTPATH=$ROOTPATH:$PLAN9/bin
export MANPATH=$MANPATH:$PLAN9/man

View File

@@ -23,10 +23,6 @@ Summary: A port of many Plan 9 libraries and programs to Unix
License: MIT AND LPL-1.02 AND BSD-3-Clause
URL: https://swtch.com/plan9port
#!RemoteAssetUrl: git+https://git.sr.ht/~mcepl/plan9port#devel
Source1: plan9.sh
Source2: acme.sh
Source3: acme.png
Source4: acme.desktop
Source99: %{name}.rpmlintrc
BuildRequires: fdupes
BuildRequires: fuse
@@ -72,15 +68,15 @@ grep --null -l -r "%{buildroot}/usr/lib/plan9" | xargs --null sed -i "s@%{buildr
grep --null -l -r "/build/plan9port/pkg/%{name}/usr/lib/plan9" | xargs --null \
sed -i "s!/build/plan9port/pkg/%{name}/usr/lib/plan9!%{_libdir}/plan9!g" || true
# fix shebangs
install -Dm644 dist/plan9.sh %{buildroot}%{_sysconfdir}/profile.d/plan9.sh
install -Dm755 dist/acme.sh %{buildroot}%{_bindir}/acme
install -Dm644 dist/spaceglenda100.png %{buildroot}%{_datadir}/pixmaps/acme.png
install -Dm644 dist/acme.desktop %{buildroot}%{_datadir}/applications/acme.desktop
# fix shebangs and variables
sed -i -e '/^# *\/usr\/bin\/env/s!/usr/bin/env perl!%{_bindir}/perl!' \
%{buildroot}%{_libdir}/plan9/dist/{addsrclinks,fixurls}
install -Dm644 %{SOURCE1} %{buildroot}%{_sysconfdir}/profile.d/plan9.sh
install -Dm755 %{SOURCE2} %{buildroot}%{_bindir}/acme
install -Dm644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/acme.png
install -Dm644 %{SOURCE4} %{buildroot}%{_datadir}/applications/acme.desktop
sed -i -e '/^export PLAN9/s!/usr/lib!%{_libdir}!' %{buildroot}%{_sysconfdir}/profile.d/plan9.sh
# Clean up
cd "%{buildroot}%{_libdir}/plan9"