Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 758 Bytes

File metadata and controls

37 lines (27 loc) · 758 Bytes

pgmoneta rpm

pgmoneta can be built into a RPM for Fedora systems.

Requirements

dnf install gcc rpm-build rpm-devel rpmlint make python bash coreutils diffutils patch rpmdevtools chrpath

Setup RPM development

rpmdev-setuptree

Create source package

git clone https://github.com/pgmoneta/pgmoneta.git
cd pgmoneta
VERSION=$(grep -Po "Version:\s*\K(\d+\.\d+\.\d+)" pgmoneta.spec)
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make package_source

Create RPM package

cp pgmoneta-$VERSION.tar.gz ~/rpmbuild/SOURCES
cd ..
QA_RPATHS=0x0001 rpmbuild -bb pgmoneta.spec

The resulting RPM will be located in ~/rpmbuild/RPMS/x86_64/, if your architecture is x86_64.