Skip to content

Commit

Permalink
for #740, this is a spec file for redhat distros, works on fedora 39
Browse files Browse the repository at this point in the history
  • Loading branch information
petersilva committed Nov 14, 2023
1 parent edcd261 commit 47367b2
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions metpx-sr3.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@

%define version %(awk '{print $3;}' sarracenia/_version.py | sed 's/\"//g')

Name: metpx-sr3
Version: %{version}
Release: 0%{?dist}
Summary: Subscribe, Acquire, and Re-Advertise (managed multiple hop file transfers)
License: GPL-2.0-only
URL: https://metpx.github.io/sarracenia
Source: %{url}/archive/v%{version}/metpx-sr3-%{version}.tar.gz / %{pypi_source python-metpx-sr3}

BuildArch: noarch / BuildRequires: gcc
BuildRequires: python3-devel

Requires: python3-appdirs, python3-humanfriendly, python3-humanize, python3-jsonpickle, python3-paramiko, python3-psutil

%global _description %{expand:
MetPX-sr3 (Sarracenia v3) is a data duplication or distribution pump that leverage
existing standard technologies (web servers and message queueing protocol brokers)
to achieve real-time message delivery and end-to-end transparency in file transfers.
Data sources establish a directory structure which is carried through any number of
intervening pumps until they arrive at a client. }

%description %_description

Summary: %{summary}

%prep
%autosetup -p1 -n metpx-sr3-%{version}


%generate_buildrequires
%pyproject_buildrequires requirements.txt


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files sarracenia



%files -n metpx-sr3 -f %{pyproject_files}
%{_bindir}/sr3
%{_bindir}/sr3_post
%{_bindir}/sr3_rotateLogsManually
%{_bindir}/sr3_tailf


%changelog
%autochangelog

0 comments on commit 47367b2

Please sign in to comment.