From 7c6cbaec35ef0455a53f72988cd8e34a6b9fd65c Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sat, 11 Jun 2022 21:42:23 -0400 Subject: [PATCH] Fixes for Red Hat packaging --- package.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/package.sh b/package.sh index fa0bfe2..d0544c6 100755 --- a/package.sh +++ b/package.sh @@ -144,6 +144,7 @@ if [ "$distro" == "3" ] || [ "$distro" == "7" ]; then Version: "$version" Release: "$revision" Summary: A light-weight, self-hosted, synchronized password manager +BuildArch: noarch License: GPL3 URL: https://github.com/rwinkhart/sshyp @@ -154,11 +155,9 @@ Requires: python gnupg openssh nano wl-clipboard %description sshyp is a password-store compatible CLI password manager available for UNIX(-like) systems - its primary goal is to make syncing passwords and notes across devices as easy as possible via CLI. -%prep -%setup -q - %install -tar xf sshyp-"$version".tar.xz -C "\"\$RPM_BUILD_ROOT\"" +tar xf %{_sourcedir}/sshyp-"$version".tar.xz -C %{_sourcedir} +cp -r %{_sourcedir}/usr %{buildroot} %files /usr/bin/sshyp @@ -169,7 +168,7 @@ tar xf sshyp-"$version".tar.xz -C "\"\$RPM_BUILD_ROOT\"" %doc /usr/share/man/man1/sshyp.1.gz " > ~/rpmbuild/SPECS/sshyp.spec rpmbuild -bb ~/rpmbuild/SPECS/sshyp.spec -mv ~/rpmbuild/RPMS/* packages/ +mv ~/rpmbuild/RPMS/noarch/* packages/ rm -rf ~/rpmbuild echo -e "\nRed Hat packaging complete.\n" fi