commit 7fb2f7034d1c98ad173c21a56eced8373a0c34e8 Author: Toshaan Bharvani Date: Sun Sep 25 11:30:10 2022 +0200 initial package creation Signed-off-by: Toshaan Bharvani diff --git a/SOURCES/gpgkey-84874CAB6D1A397A.gpg b/SOURCES/gpgkey-84874CAB6D1A397A.gpg new file mode 100644 index 0000000..d11a964 Binary files /dev/null and b/SOURCES/gpgkey-84874CAB6D1A397A.gpg differ diff --git a/SOURCES/rxvt-unicode-0001-Prefer-XDG_RUNTIME_DIR-over-the-HOME.patch b/SOURCES/rxvt-unicode-0001-Prefer-XDG_RUNTIME_DIR-over-the-HOME.patch new file mode 100644 index 0000000..eae393a --- /dev/null +++ b/SOURCES/rxvt-unicode-0001-Prefer-XDG_RUNTIME_DIR-over-the-HOME.patch @@ -0,0 +1,27 @@ +From 30fb93760c0bb0bea2bca1ac17c4d9709fb95e1c Mon Sep 17 00:00:00 2001 +From: Peter Lemenkov +Date: Wed, 10 Dec 2014 15:20:14 +0300 +Subject: [PATCH] Prefer XDG_RUNTIME_DIR over the HOME + +Signed-off-by: Peter Lemenkov + +diff --git a/src/rxvtdaemon.C b/src/rxvtdaemon.C +index 7986c5f..7337f51 100644 +--- a/src/rxvtdaemon.C ++++ b/src/rxvtdaemon.C +@@ -43,9 +43,13 @@ char *rxvt_connection::unix_sockname () + struct utsname u; + uname (&u); + +- path = getenv ("HOME"); ++ path = getenv ("XDG_RUNTIME_DIR"); + if (!path) +- path = "/tmp"; ++ { ++ path = getenv ("HOME"); ++ if (!path) ++ path = "/tmp"; ++ } + + snprintf (name, PATH_MAX, "%s/.urxvt", path); + mkdir (name, 0777); diff --git a/SOURCES/rxvt-unicode-9.21-Fix-hard-coded-wrong-path-to-xsubpp.patch b/SOURCES/rxvt-unicode-9.21-Fix-hard-coded-wrong-path-to-xsubpp.patch new file mode 100644 index 0000000..22615d9 --- /dev/null +++ b/SOURCES/rxvt-unicode-9.21-Fix-hard-coded-wrong-path-to-xsubpp.patch @@ -0,0 +1,12 @@ +diff -up rxvt-unicode-9.21/src/Makefile.in.orig rxvt-unicode-9.21/src/Makefile.in +--- rxvt-unicode-9.21/src/Makefile.in.orig 2015-01-02 16:26:42.168949720 +0100 ++++ rxvt-unicode-9.21/src/Makefile.in 2015-01-02 16:27:14.931856902 +0100 +@@ -136,7 +136,7 @@ perlxsi.c: Makefile + $(PERL) -MExtUtils::Embed -e xsinit -- -std urxvt + + rxvtperl.C: rxvtperl.xs iom_perl.h iom_perl.xs typemap typemap.iom +- PERL="$(PERL)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap 'typemap.iom' -typemap 'typemap' -prototypes $(srcdir)/rxvtperl.xs >$@ ++ PERL="$(PERL)" $(PERL) /usr/bin/xsubpp -C++ -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap 'typemap.iom' -typemap 'typemap' -prototypes $(srcdir)/rxvtperl.xs >$@ + + rxvtperl.o: rxvtperl.C perlxsi.c + $(COMPILE) $(PERLFLAGS) -DLIBDIR="\"$(libdir)/urxvt\"" -c $< diff --git a/SOURCES/rxvt-unicode.desktop b/SOURCES/rxvt-unicode.desktop new file mode 100644 index 0000000..0bc7989 --- /dev/null +++ b/SOURCES/rxvt-unicode.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=rxvt-unicode +Comment=A VT102 emulator for the X window system +Exec=urxvt +Terminal=false +Type=Application +Icon=utilities-terminal +Categories=System;TerminalEmulator; +StartupWMClass=URxvt diff --git a/SPECS/rxvt-unicode.spec b/SPECS/rxvt-unicode.spec new file mode 100644 index 0000000..268aae8 --- /dev/null +++ b/SPECS/rxvt-unicode.spec @@ -0,0 +1,190 @@ +Name: rxvt-unicode +Version: 9.30 +Release: 2%{?dist} +Summary: Unicode version of rxvt + +License: GPLv3 +URL: http://software.schmorp.de/ +Source0: http://dist.schmorp.de/%{name}/%{name}-%{version}.tar.bz2 +Source1: http://dist.schmorp.de/%{name}/%{name}-%{version}.tar.bz2.sig +Source2: http://dist.schmorp.de/signing-key.pub +Source3: http://dist.schmorp.de/signing-key.pub.gpg.sig +Source4: gpgkey-84874CAB6D1A397A.gpg +Source5: rxvt-unicode.desktop +# To recreate Source4: +# gpg --recv-key 84874CAB6D1A397A +# gpg --export --export-options export-minimal 84874CAB6D1A397A \ +# > gpgkey-84874CAB6D1A397A.gpg + +Patch0: rxvt-unicode-9.21-Fix-hard-coded-wrong-path-to-xsubpp.patch +Patch1: rxvt-unicode-0001-Prefer-XDG_RUNTIME_DIR-over-the-HOME.patch + +BuildRequires: desktop-file-utils +BuildRequires: fontconfig-devel +BuildRequires: freetype-devel +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: gdk-pixbuf2-devel +BuildRequires: git +BuildRequires: glib2-devel +BuildRequires: gnupg2 +BuildRequires: libptytty-devel +BuildRequires: libX11-devel +BuildRequires: libXft-devel +BuildRequires: libXrender-devel +BuildRequires: libXt-devel +BuildRequires: libev-source +BuildRequires: make +BuildRequires: ncurses ncurses-base ncurses-devel +BuildRequires: perl-devel, perl-generators, perl(ExtUtils::Embed) +BuildRequires: signify +BuildRequires: startup-notification-devel +BuildRequires: xorg-x11-proto-devel +Requires: startup-notification +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +# We just provide a single binary now. +Obsoletes: rxvt-unicode-ml <= 9.22-17 +Obsoletes: rxvt-unicode-256color <= 9.22-17 +Obsoletes: rxvt-unicode-256color-ml <= 9.22-17 + +# There's only one rxvt in the distro; this is the last one +Obsoletes: rxvt <= 2.7.10-36 + +%description +rxvt-unicode is a clone of the well known terminal emulator rxvt, modified to +store text in Unicode (either UCS-2 or UCS-4) and to use locale-correct input +and output. It also supports mixing multiple fonts at the same time, including +Xft fonts. + +%prep +%{gpgverify} --keyring='%{SOURCE4}' --signature='%{SOURCE3}' --data='%{SOURCE2}' +signify -V -p '%{SOURCE2}' -m '%{SOURCE0}' +%autosetup -S git + +%if 0%{?fedora} >= 15 +rm -rf libev +ln -s %{_datadir}/libev-source libev +%endif + +%build +%configure \ + --enable-keepscrolling \ + --enable-selectionscrolling \ + --enable-pointer-blank \ + --enable-utmp \ + --enable-wtmp \ + --enable-lastlog \ + --enable-unicode3 \ + --enable-combining \ + --enable-xft \ + --enable-font-styles \ +%if 0%{?fedora} > 13 + --enable-pixbuf \ +%endif + --enable-transparency \ + --enable-fading \ + --enable-rxvt-scroll \ + --enable-next-scroll \ + --enable-xterm-scroll \ + --enable-perl \ + --enable-mousewheel \ + --enable-xim \ + --with-codesets=all \ + --enable-slipwheeling \ + --enable-smart-resize \ + --enable-frills \ + --disable-iso14755 \ + --enable-startup-notification \ + --enable-256-color \ + --with-term=rxvt-unicode-256color + +make %{?_smp_mflags} + +%install +make install DESTDIR=%{buildroot} + +# This isn't something we need +rm %{buildroot}%{_bindir}/urclock +rm %{buildroot}%{_mandir}/man1/urclock.1* + +# install desktop files +desktop-file-install \ +%if (0%{?fedora} && 0%{?fedora} < 19) || (0%{?rhel} && 0%{?rhel} < 7) + --vendor=fedora \ +%endif + --dir=%{buildroot}%{_datadir}/applications \ + %{SOURCE5} + +# create compat symlinks +pushd $RPM_BUILD_ROOT/%{_bindir} +ln -s urxvt rxvt +ln -s urxvt urxvt-ml +ln -s urxvtc urxvt-mlc +ln -s urxvtd urxvt-mld +ln -s urxvt urxvt256c +ln -s urxvtc urxvt256cc +ln -s urxvtd urxvt256cd +ln -s urxvt urxvt256c-ml +ln -s urxvtc urxvt256c-mlc +ln -s urxvtd urxvt256c-mld +popd + +%files +%doc README.FAQ +%doc INSTALL +%doc doc/README.xvt +%doc doc/etc +%doc doc/changes.txt +%license COPYING +%{_bindir}/rxvt +%{_bindir}/urxvt +%{_bindir}/urxvtc +%{_bindir}/urxvtd +%{_bindir}/urxvt-ml +%{_bindir}/urxvt-mlc +%{_bindir}/urxvt-mld +%{_bindir}/urxvt256c +%{_bindir}/urxvt256cc +%{_bindir}/urxvt256cd +%{_bindir}/urxvt256c-ml +%{_bindir}/urxvt256c-mlc +%{_bindir}/urxvt256c-mld +%{_mandir}/man1/urxvt.1* +%{_mandir}/man1/urxvtc.1* +%{_mandir}/man1/urxvtd.1* +%{_mandir}/man1/urxvt-background.1* +%{_mandir}/man1/urxvt-bell-command.1* +%{_mandir}/man1/urxvt-block-graphics-to-ascii.1* +%{_mandir}/man1/urxvt-clipboard-osc.1* +%{_mandir}/man1/urxvt-confirm-paste.1* +%{_mandir}/man1/urxvt-digital-clock.1* +%{_mandir}/man1/urxvt-eval.1* +%{_mandir}/man1/urxvt-example-refresh-hooks.1* +%{_mandir}/man1/urxvt-extensions.1* +%{_mandir}/man1/urxvt-keysym-list.1* +%{_mandir}/man1/urxvt-kuake.1* +%{_mandir}/man1/urxvt-matcher.1* +%{_mandir}/man1/urxvt-option-popup.1* +%{_mandir}/man1/urxvt-overlay-osc.1* +%{_mandir}/man1/urxvt-readline.1* +%{_mandir}/man1/urxvt-remote-clipboard.1* +%{_mandir}/man1/urxvt-searchable-scrollback.1* +%{_mandir}/man1/urxvt-selection-autotransform.1* +%{_mandir}/man1/urxvt-selection-pastebin.1* +%{_mandir}/man1/urxvt-selection-popup.1* +%{_mandir}/man1/urxvt-selection-to-clipboard.1* +%{_mandir}/man1/urxvt-selection.1* +%{_mandir}/man1/urxvt-tabbed.1* +%{_mandir}/man1/urxvt-xim-onthespot.1* +%{_mandir}/man3/urxvtperl.3* +%{_mandir}/man7/urxvt.7* +%{_datadir}/applications/*rxvt-unicode.desktop +%{_libdir}/urxvt + +%changelog +* Thu Jan 09 2022 Robbie Harwood - 9.30-2 +- Enable verification now that signify is packaged; no code changes + +* Tue Jan 04 2022 Robbie Harwood - 9.30-1 +- Initial import (9.30)