-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathondemand-bc_hcc_cryosparc.spec
52 lines (38 loc) · 1.38 KB
/
ondemand-bc_hcc_cryosparc.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
# Disable debuginfo as it causes issues with bundled gems that build libraries
%global debug_package %{nil}
%global repo_name bc-hcc-cryosparc
%global app_name bc_hcc_cryosparc
%{!?package_version: %define package_version %{major}.%{minor}.%{patch}}
%{!?package_release: %define package_release 1}
%{!?git_tag: %define git_tag v%{package_version}}
%define git_tag_minus_v %(echo %{git_tag} | sed -r 's/^v//')
Name: ondemand-%{app_name}
Version: %{package_version}
Release: %{package_release}%{?dist}
Summary: Batch Connect - HCC CryoSPARC
Group: System Environment/Daemons
License: MIT
URL: https://git.unl.edu/hcc/bc-hcc-cryosparc
Source0: bc-hcc-cryosparc.tar.gz
Requires: ondemand
# Disable automatic dependencies as it causes issues with bundled gems and
# node.js packages used in the apps
AutoReqProv: no
%description
A Batch Connect app designed to launch the CryoSPARC GUI with a batch job.
%prep
%setup -q -n %{repo_name}-%{git_tag_minus_v}
%build
%install
export PASSENGER_APP_ENV=production
export PASSENGER_BASE_URI=/pun/sys/%{app_name}
mkdir -p %{buildroot}%{_localstatedir}/www/ood/apps/sys/%{app_name}
if [ -x bin/setup ]; then
bin/setup
fi
cp -a ./. %{buildroot}%{_localstatedir}/www/ood/apps/sys/%{app_name}/
%files
%defattr(-,root,root)
%{_localstatedir}/www/ood/apps/sys/%{app_name}
%{_localstatedir}/www/ood/apps/sys/%{app_name}/manifest.yml
%changelog