-
-#Builds two .rpm packages, for x86 (i386) and amd64 (amd64)
-#Based on the build-deb.sh but for rpm instead
-
-function BuildRPMSpec() {
-dategenerated = date +%F_%H:%M
-echo Name: micro
-echo Version: $2
-echo Release: 1
-echo "Summary: A feature-rich terminal text editor"
-echo URL: https://micro-editor.github.io
-echo "Packager: Zachary Yedidia <zyedidia@gmail.com>"
-echo License: MIT
-echo ExclusiveArch: $1
-echo "Group: Applications/Editors"
-echo "%description"
-echo "A modern and intuitive terminal-based text editor."
-echo " This package contains a modern alternative to other terminal-based"
-echo " Editors. It is easy to use, supports mouse input, and is customizable"
-echo " via themes and plugins."
-echo "%install"
-echo "mkdir -p /usr/share/doc/micro"
-echo "install -m 755 micro /usr/local/bin/micro"
-echo "install -m 744 AUTHORS /usr/share/doc/micro/AUTHORS"
-echo "install -m 744 LICENSE /usr/share/doc/micro/LICENSE"
-echo "install -m 744 LICENSE-THIRD-PARTY /usr/share/doc/micro/LICENSE-THIRD-PARTY"
-echo "install -m 744 README.md /usr/share/doc/micro/README.md"
-echo "install -m 744 micro.1.gz /usr/share/man/man1/micro.1.gz"
-echo "install -m 744 micro.desktop /usr/share/applications/micro.desktop"
-echo "install -m 744 micro.svg /usr/share/icons/micro.svg"
-echo "%files"
-echo "/usr/local/bin/micro"
-echo "/usr/share/doc/micro"
-echo "/usr/share/doc/micro/AUTHORS"
-echo "/usr/share/doc/micro/LICENSE"
-echo "/usr/share/doc/micro/LICENSE-THIRD-PARTY"
-echo "/usr/share/doc/micro/README.md"
-echo "/usr/share/man/man1/micro.1.gz"
-echo "/usr/share/applications/micro.desktop"
-echo "/usr/share/icons/micro.svg"
-echo "%changelog"
-echo "Version: $1-$2"
-echo "Auto generated on $dategenerated by $USER@$HOSTNAME"
-}
-
-function installFiles() {
-TO="$1/$2/usr/share/doc/micro/"
-mkdir -p $TO
-cp ../AUTHORS $TO
-cp ../LICENSE $TO
-cp ../LICENSE-THIRD-PARTY $TO
-cp ../README.md $TO
-gzip -c ../assets/packaging/micro.1 > $1/$2/usr/share/man/man1/micro.1.gz
-cp ../assets/packaging/micro.deskto $1/$2/usr/share/applications/
-cp ../assets/logo.svg $1/$2/usr/share/icons/micro.svg
-}
-