Loading desktop/drspine.desktop 0 → 100644 +10 −0 Original line number Diff line number Diff line #!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Type=Application Terminal=true Name=drspine Comment=Dr. Spine The Latest Spine Treatments & Surgical Techniques Exec=/usr/bin/drspine TryExec=drspine Icon=drspine desktop/drspine.png 0 → 100644 +7.86 KiB Loading image diff... drspine.spec 0 → 100644 +117 −0 Original line number Diff line number Diff line %global srcname drspine %global summary Data reduction software for the Neutron Spin Echo method. %global _libdir %{_prefix}/lib %define release 1 %define python3_pkgversion 3.9 %define __unzip /usr/bin/unzip %define __copydir cp -a Name: python%{python3_pkgversion}-%{srcname} Version: 1.4.4 Release: %{release}%{?dist} Summary: %{summary} Obsoletes: drspine <= 1.4.3 Group: Development/Libraries License: MIT URL: https://code.ornl.gov/zp1/drspine/ Source0: %{srcname}-%{version}.tar.gz Source1: appendix.zip Source2: cprotect.zip Source3: draftwatermark.zip Source4: relsize.zip BuildRequires: gcc, gcc-gfortran, libgfortran%{?_isa}, compat-libgfortran-48%{?_isa}, make, python%{python3_pkgversion}, python%{python3_pkgversion}-build, python%{python3_pkgversion}-pip, gr, python%{python3_pkgversion}-gr, texlive-collection-latex, texlive-bigfoot, texlive-mathtools, texlive-cm-super, texlive-epstopdf, texlive-kpathsea Requires: libgfortran%{?_isa}, compat-libgfortran-48%{?_isa}, python%{python3_pkgversion}, python%{python3_pkgversion}-build, python%{python3_pkgversion}-pip, gr, python%{python3_pkgversion}-gr, texlive-collection-latex, texlive-bigfoot, texlive-mathtools, texlive-cm-super, texlive-epstopdf, texlive-kpathsea,texlive-pgfplots, python%{python3_pkgversion}-ipython, python%{python3_pkgversion}-scipy, python%{python3_pkgversion}-numpy, python%{python3_pkgversion}-matplotlib %description %{summary} %prep %setup -q -n %{srcname}-%{version} -n %{srcname}-%{version} %{__unzip} -q %{SOURCE1} %{__unzip} -q %{SOURCE2} %{__unzip} -q %{SOURCE3} %{__unzip} -q %{SOURCE4} %build # run make %{__make} clean %{__mkdir} -p %{_builddir}%{_datadir}/texmf/tex/latex/contrib # copy the necessary latex packages to the global directory and the source code pushd ./appendix latex ./appendix.ins %{__install} -m 644 appendix.sty %{_builddir}%{_datadir}/texmf/tex/latex/contrib %{__install} -m 644 appendix.sty %{_builddir}/%{srcname}-%{version}/doc popd pushd ./draftwatermark latex ./draftwatermark.ins %{__install} -m 644 draftwatermark.sty %{_builddir}%{_datadir}/texmf/tex/latex/contrib %{__install} -m 644 draftwatermark.sty %{_builddir}/%{srcname}-%{version}/doc popd pushd ./relsize %{__install} -m 644 relsize.sty %{_builddir}%{_datadir}/texmf/tex/latex/contrib %{__install} -m 644 relsize.sty %{_builddir}/%{srcname}-%{version}/doc popd pushd ./cprotect latex ./cprotect.dtx %{__install} -m 644 cprotect.sty %{_builddir}%{_datadir}/texmf/tex/latex/contrib %{__install} -m 644 cprotect.sty %{_builddir}/%{srcname}-%{version}/doc popd %{__make} INSTRUMENT=1 GRDIR=%{_usr}/gr all %install #copy the latex in the build directory %{__install} -d -m 0755 %{buildroot}%{_datadir}/texmf/tex/latex/contrib %{__copydir} %{_builddir}%{_datadir}/texmf/tex/latex/contrib/* %{buildroot}%{_datadir}/texmf/tex/latex/contrib/ %make_install DESTDIR=%{buildroot}%{_prefix} PYTHONDESTDIR=%{buildroot} # put icons in the right place %{__mkdir} -p %{buildroot}/%{_datadir}/pixmaps/ %{__install} -m 644 desktop/drspine.png %{buildroot}/%{_datadir}/pixmaps/ # put desktop files in the right place %{__mkdir} -p %{buildroot}%{_datadir}/applications/ %{__install} -m 644 desktop/drspine.desktop %{buildroot}%{_datadir}/applications/ # rename and put drspine_exec_wrapper files in the right place mv sources/drspine %{buildroot}%{_bindir}/drspine.bin mv drspine_wrapper %{buildroot}%{_bindir}/drspine %check #test after install step %{__make} runtest %post mktexlsr %{_datadir}/texmf > /dev/null || : %files %doc README.md %license LICENSE.drspine LICENSE.linenoise # the files are in <pkg_name>/bin, <pkg_name>/lib, <pkg_name>/share %{_bindir}/drspine %{_bindir}/drspine.bin %{_bindir}/drspine_activate.sh %{_bindir}/drspine_create_env.sh %{_bindir}/extract_figures %{_bindir}/mxx %{_bindir}/plain_figures %{python3_sitelib}/drspine/* %{python3_sitelib}/drspine-*.egg-info %{_libdir}/libdrspine.a %{_datadir}/applications/drspine.desktop %{_datadir}/drspine/* %{_datadir}/pixmaps/drspine.png %{_datadir}/texmf/tex/latex/contrib/* %clean rm -rf $RPM_BUILD_ROOT %changelog * Fri Jun 27 2025 root - package creation drspine_wrapper 0 → 100755 +8 −0 Original line number Diff line number Diff line #!/bin/bash profile_home=`ipython profile locate drspine 2> /dev/null` profile_exists=$? if [ $profile_exists -eq 1 ]; then echo "drspine ipython profile not found: ${profile_home} ${profile_exists}" drspine_create_env.sh -rv fi drspine.bin $* No newline at end of file examples/macro_mk +1 −1 Original line number Diff line number Diff line Loading @@ -31,6 +31,6 @@ report sqtplot report end nopdf c === plot plot sqt c plot sqt Loading
desktop/drspine.desktop 0 → 100644 +10 −0 Original line number Diff line number Diff line #!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Type=Application Terminal=true Name=drspine Comment=Dr. Spine The Latest Spine Treatments & Surgical Techniques Exec=/usr/bin/drspine TryExec=drspine Icon=drspine
drspine.spec 0 → 100644 +117 −0 Original line number Diff line number Diff line %global srcname drspine %global summary Data reduction software for the Neutron Spin Echo method. %global _libdir %{_prefix}/lib %define release 1 %define python3_pkgversion 3.9 %define __unzip /usr/bin/unzip %define __copydir cp -a Name: python%{python3_pkgversion}-%{srcname} Version: 1.4.4 Release: %{release}%{?dist} Summary: %{summary} Obsoletes: drspine <= 1.4.3 Group: Development/Libraries License: MIT URL: https://code.ornl.gov/zp1/drspine/ Source0: %{srcname}-%{version}.tar.gz Source1: appendix.zip Source2: cprotect.zip Source3: draftwatermark.zip Source4: relsize.zip BuildRequires: gcc, gcc-gfortran, libgfortran%{?_isa}, compat-libgfortran-48%{?_isa}, make, python%{python3_pkgversion}, python%{python3_pkgversion}-build, python%{python3_pkgversion}-pip, gr, python%{python3_pkgversion}-gr, texlive-collection-latex, texlive-bigfoot, texlive-mathtools, texlive-cm-super, texlive-epstopdf, texlive-kpathsea Requires: libgfortran%{?_isa}, compat-libgfortran-48%{?_isa}, python%{python3_pkgversion}, python%{python3_pkgversion}-build, python%{python3_pkgversion}-pip, gr, python%{python3_pkgversion}-gr, texlive-collection-latex, texlive-bigfoot, texlive-mathtools, texlive-cm-super, texlive-epstopdf, texlive-kpathsea,texlive-pgfplots, python%{python3_pkgversion}-ipython, python%{python3_pkgversion}-scipy, python%{python3_pkgversion}-numpy, python%{python3_pkgversion}-matplotlib %description %{summary} %prep %setup -q -n %{srcname}-%{version} -n %{srcname}-%{version} %{__unzip} -q %{SOURCE1} %{__unzip} -q %{SOURCE2} %{__unzip} -q %{SOURCE3} %{__unzip} -q %{SOURCE4} %build # run make %{__make} clean %{__mkdir} -p %{_builddir}%{_datadir}/texmf/tex/latex/contrib # copy the necessary latex packages to the global directory and the source code pushd ./appendix latex ./appendix.ins %{__install} -m 644 appendix.sty %{_builddir}%{_datadir}/texmf/tex/latex/contrib %{__install} -m 644 appendix.sty %{_builddir}/%{srcname}-%{version}/doc popd pushd ./draftwatermark latex ./draftwatermark.ins %{__install} -m 644 draftwatermark.sty %{_builddir}%{_datadir}/texmf/tex/latex/contrib %{__install} -m 644 draftwatermark.sty %{_builddir}/%{srcname}-%{version}/doc popd pushd ./relsize %{__install} -m 644 relsize.sty %{_builddir}%{_datadir}/texmf/tex/latex/contrib %{__install} -m 644 relsize.sty %{_builddir}/%{srcname}-%{version}/doc popd pushd ./cprotect latex ./cprotect.dtx %{__install} -m 644 cprotect.sty %{_builddir}%{_datadir}/texmf/tex/latex/contrib %{__install} -m 644 cprotect.sty %{_builddir}/%{srcname}-%{version}/doc popd %{__make} INSTRUMENT=1 GRDIR=%{_usr}/gr all %install #copy the latex in the build directory %{__install} -d -m 0755 %{buildroot}%{_datadir}/texmf/tex/latex/contrib %{__copydir} %{_builddir}%{_datadir}/texmf/tex/latex/contrib/* %{buildroot}%{_datadir}/texmf/tex/latex/contrib/ %make_install DESTDIR=%{buildroot}%{_prefix} PYTHONDESTDIR=%{buildroot} # put icons in the right place %{__mkdir} -p %{buildroot}/%{_datadir}/pixmaps/ %{__install} -m 644 desktop/drspine.png %{buildroot}/%{_datadir}/pixmaps/ # put desktop files in the right place %{__mkdir} -p %{buildroot}%{_datadir}/applications/ %{__install} -m 644 desktop/drspine.desktop %{buildroot}%{_datadir}/applications/ # rename and put drspine_exec_wrapper files in the right place mv sources/drspine %{buildroot}%{_bindir}/drspine.bin mv drspine_wrapper %{buildroot}%{_bindir}/drspine %check #test after install step %{__make} runtest %post mktexlsr %{_datadir}/texmf > /dev/null || : %files %doc README.md %license LICENSE.drspine LICENSE.linenoise # the files are in <pkg_name>/bin, <pkg_name>/lib, <pkg_name>/share %{_bindir}/drspine %{_bindir}/drspine.bin %{_bindir}/drspine_activate.sh %{_bindir}/drspine_create_env.sh %{_bindir}/extract_figures %{_bindir}/mxx %{_bindir}/plain_figures %{python3_sitelib}/drspine/* %{python3_sitelib}/drspine-*.egg-info %{_libdir}/libdrspine.a %{_datadir}/applications/drspine.desktop %{_datadir}/drspine/* %{_datadir}/pixmaps/drspine.png %{_datadir}/texmf/tex/latex/contrib/* %clean rm -rf $RPM_BUILD_ROOT %changelog * Fri Jun 27 2025 root - package creation
drspine_wrapper 0 → 100755 +8 −0 Original line number Diff line number Diff line #!/bin/bash profile_home=`ipython profile locate drspine 2> /dev/null` profile_exists=$? if [ $profile_exists -eq 1 ]; then echo "drspine ipython profile not found: ${profile_home} ${profile_exists}" drspine_create_env.sh -rv fi drspine.bin $* No newline at end of file
examples/macro_mk +1 −1 Original line number Diff line number Diff line Loading @@ -31,6 +31,6 @@ report sqtplot report end nopdf c === plot plot sqt c plot sqt