-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
for #740, this is a spec file for redhat distros, works on fedora 39
- Loading branch information
1 parent
edcd261
commit 47367b2
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|