wloc  0.4.0
Simple Wi-Fi geolocation library and tool
Build using mock

Prepare build environment

Step 1

Clone this repository with SPECs and patches to any directory:

git clone -b master https://github.com/xvitaly/wloc.git wloc

Step 2

Install mock, spectool and rpmbuild:

sudo dnf install rpm-build rpmdevtools

Add yourself to mock group (you must run this only for the first time after installing mock):

sudo usermod -a -G mock $(whoami)

You need to relogin to your system after doing this or run:

newgrp mock

Step 3

Create RPM build base directories:

rpmdev-setuptree

Download sources and patches

Download sources:

cd wloc
spectool -g -R packaging/fedora/wloc.spec

Build package

Step 1

Generate SRPM package for mock:

cd wloc
rpmbuild -bs packaging/fedora/wloc.spec

Step 2

Start mock build sequence:

mock -r fedora-$(rpm -E %fedora)-$(uname -m) --rebuild ~/rpmbuild/SRPMS/wloc*.src.rpm

Step 3

Wait for a while and then install result without debug subpackages:

sudo dnf install /var/lib/mock/*/result/*.rpm --exclude="*debug*"

Cleanup

Remove temporary files:

mock -r fedora-$(rpm -E %fedora)-$(uname -m) --clean