-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathmetpx-sr3.spec
61 lines (42 loc) · 1.75 KB
/
metpx-sr3.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
%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
BuildRequires: systemd-rpm-macros
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
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_userunitdir}
install -m 644 debian/metpx-sr3.service %{buildroot}%{_unitdir}/
install -m 644 tools/metpx-sr3_user.service %{buildroot}%{_userunitdir}/metpx-sr3.service
%files -n metpx-sr3 -f %{pyproject_files}
%{_bindir}/sr3
%{_bindir}/sr3_post
%{_bindir}/sr3_rotateLogsManually
%{_bindir}/sr3_tailf
%{_unitdir}/metpx-sr3.service
%{_userunitdir}/metpx-sr3.service
%changelog
%autochangelog