From 47367b282c0adc1301598215bd64ac33f1be1937 Mon Sep 17 00:00:00 2001 From: Peter Silva Date: Tue, 14 Nov 2023 00:10:57 -0500 Subject: [PATCH] for #740, this is a spec file for redhat distros, works on fedora 39 --- metpx-sr3.spec | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 metpx-sr3.spec diff --git a/metpx-sr3.spec b/metpx-sr3.spec new file mode 100644 index 000000000..c089a70ed --- /dev/null +++ b/metpx-sr3.spec @@ -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 +