From a4e4619a8b662b4e4aadb91316f5dff89adde3f1 Mon Sep 17 00:00:00 2001 From: denes Date: Sun, 19 Aug 2018 11:01:25 +0200 Subject: [PATCH] Redhat package creator script --- README.md | 9 ++++++ redhat/package-rpm | 71 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100755 redhat/package-rpm diff --git a/README.md b/README.md index ff543ac..67d3345 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,15 @@ cd battery_status_led/debian sudo dpkg -i ./batterystatusled_0.1-1.deb ``` +## Creating RPM package and installing it: +``` +cd DIR +git clone https://github.com/dmatetelki/battery_status_led +cd battery_status_led/redhat +./package.rpm +sudo rpm -i ./battery_status_led-0.1-1.noarch.rpm +``` + ## Note: Did you know that the CapsLock key can be turned into another Ctrl? Add the following lines to `~/.Xmodmap` : diff --git a/redhat/package-rpm b/redhat/package-rpm new file mode 100755 index 0000000..7a2450a --- /dev/null +++ b/redhat/package-rpm @@ -0,0 +1,71 @@ +#!/bin/bash + +# Copyright 2018 Denes Matetelki + +# This file is part of battery_status_led. + +# battery_status_led is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License v3 as published by the Free +# Software Foundation. + +# battery_status_led is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License v3 for +# more details. + +# You should have received a copy of the GNU General Public License v3 along +# with battery_status_led. If not, see +# https://www.gnu.org/licenses/gpl-3.0.html. + +VERSION="0.1-1" +rm -rf build* +mkdir build + +cat > build/battery_status_led.spec <