Skip to content

Commit

Permalink
[build] Update specfile for Fedora packaging
Browse files Browse the repository at this point in the history
Updates the specfile for Fedora packaging following the package review
for rig.

Signed-off-by: Jake Hunsaker <[email protected]>
  • Loading branch information
TurboTurtle committed Aug 6, 2020
1 parent 05bc447 commit 4f5508c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
31 changes: 15 additions & 16 deletions rig.spec
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
Summary: Monitor a system for events and trigger specific actions
Name: rig
Version: 1.0
Release: 1
Source0: http://people.redhat.com/jhunsake/rig/%{name}-%{version}.tar.gz
License: GPLv2
BuildArch: noarch
Requires: python3
Requires: python3-psutil
Requires: python3-systemd
Name: rig
Summary: Monitor a system for events and trigger specific actions
Version: 1.0
Release: 1%{?dist}
Url: https://github.com/TurboTurtle/rig
Source0: %{url}/archive/%{name}-%{version}.tar.gz
License: GPLv2
BuildArch: noarch

BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3dist(systemd-python)
BuildRequires: python3dist(psutil)

%description
Rig is a utility designed to watch or monitor specific system resources (e.g.
log files, journals, system activity, etc...) and then take specific action
when the trigger condition is met. Its primary aim is to assist in troubleshooting
and data collection for randomly occurring events.
when the trigger condition is met. Its primary aim is to assist in
troubleshooting and data collection for randomly occurring events.

%prep
%setup -q
Expand All @@ -29,16 +29,15 @@ mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
install -p -m644 man/en/rig.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/
%py3_install

%check
%{__python3} setup.py test

%files
%{_bindir}/rig
%{_mandir}/man1/*

%{python3_sitelib}/*
%{python3_sitelib}/rig-*.egg-info/
%{python3_sitelib}/rigging/

%license LICENSE
%doc README.md

%changelog
* Tue Jul 28 2020 Jake Hunsaker <[email protected]> - 1.0-1
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"(GPLv2)"),
],
packages=find_packages(),
install_requires=['psutil > 5', 'systemd-python'],
scripts=['rig'],
data_files=[
('share/licenses/rig', ['LICENSE']),
Expand Down

0 comments on commit 4f5508c

Please sign in to comment.