I. Compiling an audio-recorder rpm package on Fedora or RedHat based distributions.
Ref: https://bugs.launchpad.net/audio-recorder/+bug/1259407

0) Modify audio-recorder.spec.
   Set correct version number.
   Check if there are new dependencies.

1) Move audio-recorder-X.tar.gz (the latest tarball) to ~/rpmbuild/SOURCES/
    It is assumed the rpmbuild environment already exists. It is suggested a user
    reserved for development be used as gcc ccache files in the home
    directory can become numerous and large.
    `dnf install rpm-build rpmdevtools` Then as your development user:
    `rpmdev-setuptree` 
    
2) `cd ~/rpmbuild/BUILD; tar -xvf ../SOURCES/audio-recorder-X.tar.gz`

3) `cp -iv audio-recorder/linux-distros/fedora/audio-recorder.spec ../SPECS`

4) `rpmbuild -bb ../SPECS/audio-recorder.spec`
     If no errors, the last few lines of output will show rpm packages
     created in ~rpmbuild/RPMS subdirectories, which may then be installed.

     As user root, change to the directory containing the rpm. Then
     `rpm -ivh audio-recorder-X.fc27.x86_64.rpm`
     OR `rpm -Uvh` if updating a previous audio-recorder rpm package.


II. Compiling audio-recorder from the development branch

A) Move to a writable directory of your choice and download the code:

     cd /tmp/; bzr branch lp:audio-recorder

   This will create a subdirectory "audio-recorder"
   Note: To update an existing /tmp/audio-recorder:
   `cd /tmp/audio-recorder; bzr pull`

B) Examine the spec file audio-recorder/linux-distros/fedora/audio-recorder.spec
    to determine the name of the tar file you will create in Step "C".

%define releasenum 3

Name: audio-recorder
Version: 2.2
Release: %{releasenum}%{?dist} 
Summary: Recording applet for your GNOME panel.

License: GPL2
URL: https://launchpad.net/audio-recorder
Source0: %{name}-%{version}-%{releasenum}.tar.gz

    In the above snippet from audio-recorder.spec, Source0 indicates (after
     subbing for rpm variables), that the name is "audio-recorder", the
     version is "2.2", and the releasenum is "3". The "dist" variable in the
     "Release:" line would translate to ".fc27" for Fedora 27.

    So the name of the tar file we wish to create for the example above is
     audio-recorder-2.2-3.tar.gz

C) Create the tar file. Assuming /tmp/audio-recorder is our code location:

     cd /tmp; tar -czf audio-recorder-2.2-3.tar.gz audio-recorder

    This will create /tmp/audio-recorder-2.2-3.tar.gz

D) You should now be able to continue with steps 1 through 4 above to compile a
     rpm package.

Note: If have created a rpm package file with an identical name to the rpm
     already installed, you will need to use "rpm -Uvh --force" to install.
     Preferred would be to locally increase the "releasenum" in your spec
     file (Example: %define releasenum 5) prior to rpm creation.
     
-----------------

Notice:
Important notice about system tray (app indicator) icon on the GNOME-Shell.
 
You should install the "(K)StatusNotifierItem/AppIndicator" extension on GNOME Shell.
It is needed to display the icon on the systray (normally in the upper-right corner of your desktop). 

Start Chrome or Chromium browser and head to 
https://extensions.gnome.org/extension/615/appindicator-support/
or 
search for the name on https://extensions.gnome.org/
 
Install/activate the "(K)StatusNotifierItem/AppIndicator" extension. 
Start audio-recorder and enable the "Show icon on the system tray" in the settings of the audio-recorder.
-------------    


