-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
159fe71
commit b27e848
Showing
21 changed files
with
141 additions
and
239 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
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
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 |
---|---|---|
@@ -1,48 +1,49 @@ | ||
Summary: postprocessing | ||
Name: postprocessing | ||
Version: 2.6 | ||
Release: 1 | ||
%global srcname postprocessing | ||
%global summary postprocessing | ||
%define release 1 | ||
|
||
Name: %{srcname} | ||
Version: 2.8.0 | ||
Release: %{release}%{?dist} | ||
Summary: %{summary} | ||
|
||
License: MIT | ||
URL: https://github.com/neutrons/post_processing_agent | ||
Source: %{srcname}-%{version}.tar.gz | ||
Group: Applications/Engineering | ||
prefix: /opt/postprocessing | ||
BuildRoot: %{_tmppath}/%{name} | ||
|
||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot | ||
BuildArch: noarch | ||
License: MIT | ||
Source: postprocessing.tgz | ||
Requires: libNeXus.so.0()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) | ||
Requires: nexus-python | ||
Requires: python-twisted-core | ||
Requires: python-twisted-web | ||
Requires: python-twisted-words | ||
Requires: python-stompest | ||
Requires: python2-stompest-async | ||
Requires: python-requests | ||
%define debug_package %{nil} | ||
%define site_packages %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") | ||
BuildRequires: python%{python3_pkgversion}-pip | ||
Requires: python%{python3_pkgversion} | ||
Requires: python%{python3_pkgversion}-requests | ||
Requires: python%{python3_pkgversion}-stomppy | ||
|
||
prefix: /opt/postprocessing | ||
|
||
%define site_packages %(python3 -c "import site; print(site.getsitepackages()[-1])") | ||
|
||
%description | ||
Post-processing agent to automatically catalog and reduce neutron data | ||
|
||
%prep | ||
%setup -q -n %{name} | ||
%autosetup -p1 -n %{srcname}-%{version} | ||
|
||
%build | ||
|
||
%install | ||
rm -rf %{buildroot} | ||
mkdir -p %{buildroot}%{_sysconfdir} | ||
mkdir -p %{buildroot}%{_bindir} | ||
mkdir -p %{buildroot}%{prefix} | ||
%{python3} -m pip install --target %{buildroot}%{prefix} --no-deps . | ||
mv %{buildroot}%{prefix}/postprocessing/queueProcessor.py %{buildroot}%{prefix} | ||
mkdir -p %{buildroot}%{prefix}/log | ||
mkdir -p %{buildroot}%{site_packages} | ||
echo %{prefix} > %{buildroot}%{site_packages}/postprocessing.pth | ||
mkdir -p %{buildroot}/var/log/SNS_applications | ||
make prefix="%{buildroot}%{prefix}" installed_prefix="%{prefix}" site_packages="%{buildroot}%{site_packages}" sysconfig="%{buildroot}%{_sysconfdir}/autoreduce" bindir="%{buildroot}/%{_bindir}" install | ||
|
||
%post | ||
chgrp snswheel %{_sysconfdir}/autoreduce/post_processing.conf | ||
chown -R snsdata %{_sysconfdir}/autoreduce | ||
chown -R snsdata %{prefix} | ||
chown -R snsdata /var/log/SNS_applications | ||
|
||
%files | ||
%attr(755, -, -) %{prefix}/ | ||
%attr(755, -, -) /var/log/SNS_applications | ||
%attr(755, -, -) %{site_packages}/postprocessing.pth | ||
%doc README.md | ||
%license LICENSE.rst | ||
%{prefix}/* | ||
%attr(755, -, -) %{prefix}/scripts | ||
%attr(755, -, -) %{prefix}/queueProcessor.py | ||
%{site_packages}/postprocessing.pth | ||
/var/log/SNS_applications |
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
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
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "2.1.0" | ||
__version__ = "2.8.0" |
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
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
Oops, something went wrong.