Fix rpm spec template

main
Micke Nordin 4 years ago
parent 7a2f0ef5f6
commit 3d5be4afb6

@ -4,7 +4,10 @@ BASEDIR=~/sources
# Version of wireguide # Version of wireguide
VERSION=$(awk -F '"' '/self.version =/ {print $2}' ${BASEDIR}/wireguide/src/wireguide) VERSION=$(awk -F '"' '/self.version =/ {print $2}' ${BASEDIR}/wireguide/src/wireguide)
cd ~/sources cd ${BASEDIR}
# Import signing key
sudo rpm --import ${BASEDIR}/repo/debian/PUBLIC.KEY
# Convert deb to rpm # Convert deb to rpm
sudo alien -g -r ${BASEDIR}/wireguide_${VERSION}_all.deb sudo alien -g -r ${BASEDIR}/wireguide_${VERSION}_all.deb
@ -19,5 +22,7 @@ sed "s/##VERSION##/${VERSION}/" ${BASEDIR}/wireguide/rpm/wireguide-TEMPLATE.spec
cd wireguide-${VERSION} cd wireguide-${VERSION}
# Build rpm # Build rpm
cp ${BASEDIR}/wireguide/rpm/macros ~/.rpmmacros
sudo rpmbuild --buildroot=$(pwd) -bb wireguide-${VERSION}.spec sudo rpmbuild --buildroot=$(pwd) -bb wireguide-${VERSION}.spec
sudo chown ${USER}:${USER} ${BASEDIR}/wireguide-${VERSION}.noarch.rpm sudo chown ${USER}:${USER} ${BASEDIR}/wireguide-${VERSION}.noarch.rpm
rpm --addsign ${BASEDIR}/wireguide-${VERSION}.noarch.rpm

@ -4,10 +4,10 @@ Version: ##VERSION##
Release: 1 Release: 1
Requires: python3-wxpython4 Requires: python3-wxpython4
Summary: WireGUIde is a graphical user interface for WireGuard Summary: WireGUIde is a graphical user interface for WireGuard
License: GPL3+ License: GPLv3+
Distribution: Fedora Distribution: Fedora
Group: Converted/net
%define _binary_filedigest_algorithm 2
%define _rpmdir ../ %define _rpmdir ../
%define _rpmfilename %%{NAME}-%%{VERSION}.noarch.rpm %define _rpmfilename %%{NAME}-%%{VERSION}.noarch.rpm
%define _unpackaged_files_terminate_build 0 %define _unpackaged_files_terminate_build 0

Loading…
Cancel
Save