Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:maxiotis
hdtv
hdtv.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File hdtv.spec of Package hdtv
%define debug_package %{nil} Name: hdtv %if %python_version_nodots < 38 Version: 22.11 %else Version: %(cat rpmbuild/SOURCES/hdtv.obsinfo | grep version | sed "s|version.*:||") %endif Release: 0 Summary: Nuclear Spectrum Analysis Tool License: GPL-2.0 Group: Productivity/Scientific/Physics Url: https://github.com/janmayer/hdtv %if %python_version_nodots < 38 Source0: %{name}-prepython.tar.gz %else Source0: %{name}.tar.gz %endif BuildRequires: root BuildRequires: libX11-devel BuildRequires: python3 BuildRequires: python3-numpy BuildRequires: python3-scipy BuildRequires: python3-matplotlib BuildRequires: python3-uncertainties BuildRequires: python3-prompt_toolkit Requires: python3 Requires: python3-numpy Requires: python3-scipy Requires: python3-matplotlib Requires: python3-prompt_toolkit Requires: python3-uncertainties %description HDTV is a nuclear spectrum and coincidence matrix analysis tool. It can load uncompressed (text), compressed, and ROOT spectra and 2D-matrices. It calibrates spectra, fits peaks with background with different models, and cuts matrices. HDTV is written in a mixture of C++ and Python, glued together using PyROOT. %prep %if %python_version_nodots < 38 %setup -q -n %{name}-prepython sed -i "s|args\.rebuildusr\ or\ args\.rebuildsys:|args\.rebuildusr\ is\ not\ None\ or\ args.rebuildsys\ is\ not\ None:|g" hdtv/app.py for file in `grep -r \#\!\/usr\/bin\/env\ python ./ | cut -f1 -d':'` ; do sed -i "s|#!/usr/bin/env python.*$|#!/usr/bin/python3|" ${file} done sed -i "1s|^|#!/usr/bin/python3\n|" tests/fitxml/test_cal.py sed -i "1s|^|#!/usr/bin/python3\n|" tests/fitxml/test_oldxml.py sed -i "1s|^|#!/usr/bin/python3\n|" tests/fitxml/test_switch.py sed -i "1s|^|#!/usr/bin/python3\n|" tests/fitxml/test_xml.py %else %setup -q -n %{name} %endif %build %install install -d %{buildroot}%{_libdir}/%{name} cp -r * %{buildroot}%{_libdir}/%{name} %{buildroot}%{_libdir}/%{name}/bin/%{name} --rebuild-sys install -d %{buildroot}%{_bindir} cd %{buildroot}%{_bindir} echo "#!/bin/sh" > %{name} echo "exec %{_libdir}/%{name}/bin/%{name} \"\$@\"" >> %{name} chmod 775 ./%{name} %files %dir %{_libdir}/%{name} %{_libdir}/%{name}/* %{_bindir}/%{name} %changelog * Wed Sep 29 2021 Axiotis Michail -Initial release of the hdtv
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor