From 2974f47dc9843e101521df0387d14588a33a3fd9 Mon Sep 17 00:00:00 2001 From: "Patrou, Maria" Date: Thu, 26 Jun 2025 10:30:07 -0400 Subject: [PATCH 1/6] drspine spec file added --- drspine.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drspine.spec b/drspine.spec index 0504f53..e09656c 100644 --- a/drspine.spec +++ b/drspine.spec @@ -14,7 +14,7 @@ Summary: %{summary} Group: Development/Libraries License: MIT -URL: https://code.ornl.gov/zp1/drspine/ +URL: https://code.ornl.gov/zp1/drspine/ Source0: %{name}-%{version}.tar.gz Source1: appendix.zip Source2: cprotect.zip @@ -22,7 +22,7 @@ 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 +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 @@ -71,6 +71,12 @@ popd %{__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} +# 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/ %check #test after install step @@ -93,7 +99,9 @@ mktexlsr %{_datadir}/texmf > /dev/null || : %{_libdir}/python/drspine/* %{_libdir}/python/drspine-*.egg-info %{_libdir}/libdrspine.a +%{_datadir}/applications/drspine.desktop %{_datadir}/drspine/* +%{_datadir}/pixmaps/drspine.png %{_datadir}/texmf/tex/latex/contrib/* %clean -- GitLab From a54b2a041c7713fb09d94d539b2ae832712a65c4 Mon Sep 17 00:00:00 2001 From: "Patrou, Maria" Date: Thu, 26 Jun 2025 11:13:17 -0400 Subject: [PATCH 2/6] it includes all the required packages and configurations to build the rpm with its depedencies in an empty container/environment --- setup.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 setup.sh diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..92eb410 --- /dev/null +++ b/setup.sh @@ -0,0 +1,36 @@ +dnf update +dnf install -y nano +dnf install -y tree +dnf config-manager --set-enabled crb && dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm + + +dnf install -y zlib-devel +dnf install -y libjpeg-turbo +dnf install -y libjpeg-turbo-devel +dnf install -y gcc +dnf install -y python3-devel +dnf install -y texlive-kpathsea +dnf install -y epel-release +dnf check-update +yum install -y libXt libXrender libXext mesa-libGL qt6-qtbase-gui +dnf install -y rpmdevtools rpmlint +dnf install git + +#drspine requirements +dnf install -y python3 +dnf install -y make rpm-build python3-build python3-pip python-unversioned-command +dnf install -y python3-numpy.x86_64 +dnf install -y python3-scipy.x86_64 +dnf install -y python3-ipython.noarch +dnf install -y python3-matplotlib.x86_64 +dnf install -y gr-0.73.17-106.2.x86_64.rpm +dnf install -y python3-gr-1.27.0-105.17.x86_64.rpm +dnf install -y libgfortran.x86_64 +dnf install -y compat-libgfortran-48.x86_64 +dnf install -y gcc-gfortran.x86_64 +dnf install -y texlive-epstopdf.noarch +dnf install -y texlive-collection-latex +dnf install -y wget +dnf install -y texlive-bigfoot +dnf install -y texlive-mathtools +dnf install -y texlive-cm-super \ No newline at end of file -- GitLab From 784599df6fe0211b2c25b65766c5f9c2e5a346a9 Mon Sep 17 00:00:00 2001 From: "Patrou, Maria" Date: Thu, 26 Jun 2025 13:31:01 -0400 Subject: [PATCH 3/6] license, docs, and depdency updates --- setup.sh | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/setup.sh b/setup.sh index 92eb410..978e0d4 100755 --- a/setup.sh +++ b/setup.sh @@ -1,8 +1,9 @@ dnf update dnf install -y nano dnf install -y tree -dnf config-manager --set-enabled crb && dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm - +dnf install -y epel-release +dnf check-update +dnf config-manager --set-enabled crb && dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm dnf install -y zlib-devel dnf install -y libjpeg-turbo @@ -10,24 +11,22 @@ dnf install -y libjpeg-turbo-devel dnf install -y gcc dnf install -y python3-devel dnf install -y texlive-kpathsea -dnf install -y epel-release -dnf check-update yum install -y libXt libXrender libXext mesa-libGL qt6-qtbase-gui dnf install -y rpmdevtools rpmlint -dnf install git +dnf install -y git #drspine requirements dnf install -y python3 dnf install -y make rpm-build python3-build python3-pip python-unversioned-command -dnf install -y python3-numpy.x86_64 -dnf install -y python3-scipy.x86_64 +dnf install -y python3-numpy +dnf install -y python3-scipy dnf install -y python3-ipython.noarch -dnf install -y python3-matplotlib.x86_64 +dnf install -y python3-matplotlib dnf install -y gr-0.73.17-106.2.x86_64.rpm dnf install -y python3-gr-1.27.0-105.17.x86_64.rpm -dnf install -y libgfortran.x86_64 -dnf install -y compat-libgfortran-48.x86_64 -dnf install -y gcc-gfortran.x86_64 +dnf install -y libgfortran +dnf install -y compat-libgfortran-48 +dnf install -y gcc-gfortran dnf install -y texlive-epstopdf.noarch dnf install -y texlive-collection-latex dnf install -y wget -- GitLab From 66e892e7c514f71c6aff4454dfaa6911df83454a Mon Sep 17 00:00:00 2001 From: "Patrou, Maria" Date: Thu, 26 Jun 2025 13:32:25 -0400 Subject: [PATCH 4/6] newline added --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 978e0d4..2dae68a 100755 --- a/setup.sh +++ b/setup.sh @@ -32,4 +32,4 @@ dnf install -y texlive-collection-latex dnf install -y wget dnf install -y texlive-bigfoot dnf install -y texlive-mathtools -dnf install -y texlive-cm-super \ No newline at end of file +dnf install -y texlive-cm-super -- GitLab From bd87c3d99df57ed74032d4e4eb60b8ac8fe87daf Mon Sep 17 00:00:00 2001 From: "Patrou, Maria" Date: Fri, 27 Jun 2025 11:25:19 -0400 Subject: [PATCH 5/6] changes due to comments --- setup.sh | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100755 setup.sh diff --git a/setup.sh b/setup.sh deleted file mode 100755 index 2dae68a..0000000 --- a/setup.sh +++ /dev/null @@ -1,35 +0,0 @@ -dnf update -dnf install -y nano -dnf install -y tree -dnf install -y epel-release -dnf check-update -dnf config-manager --set-enabled crb && dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm - -dnf install -y zlib-devel -dnf install -y libjpeg-turbo -dnf install -y libjpeg-turbo-devel -dnf install -y gcc -dnf install -y python3-devel -dnf install -y texlive-kpathsea -yum install -y libXt libXrender libXext mesa-libGL qt6-qtbase-gui -dnf install -y rpmdevtools rpmlint -dnf install -y git - -#drspine requirements -dnf install -y python3 -dnf install -y make rpm-build python3-build python3-pip python-unversioned-command -dnf install -y python3-numpy -dnf install -y python3-scipy -dnf install -y python3-ipython.noarch -dnf install -y python3-matplotlib -dnf install -y gr-0.73.17-106.2.x86_64.rpm -dnf install -y python3-gr-1.27.0-105.17.x86_64.rpm -dnf install -y libgfortran -dnf install -y compat-libgfortran-48 -dnf install -y gcc-gfortran -dnf install -y texlive-epstopdf.noarch -dnf install -y texlive-collection-latex -dnf install -y wget -dnf install -y texlive-bigfoot -dnf install -y texlive-mathtools -dnf install -y texlive-cm-super -- GitLab From fc42ab769ecacb65891432f2fdd272ffdceeffa3 Mon Sep 17 00:00:00 2001 From: Pete Peterson Date: Thu, 10 Jul 2025 11:23:46 -0400 Subject: [PATCH 6/6] Changes for drspine to appear in the desktop menu --- desktop/drspine.desktop | 10 ++++++++++ desktop/drspine.png | Bin 0 -> 695 bytes 2 files changed, 10 insertions(+) create mode 100644 desktop/drspine.desktop create mode 100644 desktop/drspine.png diff --git a/desktop/drspine.desktop b/desktop/drspine.desktop new file mode 100644 index 0000000..dd12987 --- /dev/null +++ b/desktop/drspine.desktop @@ -0,0 +1,10 @@ +#!/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 diff --git a/desktop/drspine.png b/desktop/drspine.png new file mode 100644 index 0000000000000000000000000000000000000000..8cc3b6dbd99d0d679b289cde9758cb1e3de4d857 GIT binary patch literal 695 zcmeAS@N?(olHy`uVBq!ia0y~yU{C;I4rT@h2A3sW#~2tGRtNZmxT>g`s;Zi)C>!hO z*~rN0&YZcVu&72^(ZtmyVAt*g)27W8lhBrw)|HksC@X6?dhBFJ#{?dJ6$VxXAyLh~ zzG*eJ&E7s?3=GoBs-~+}uTM+QXJL@f$}8Ejb^Fa*cjnAreE!0v|NsBLdGn5eLGszt z=U=}5oH}(L1B0lbfTp#rtD35DVp4{swU?NPrkbj0a&m!-i(h0^(*OT|`Gr;FWOa>< zZ6YJmSFT=NUDf_(pF}hR1LJW|7srqa#v_-mCap0LV0)mr#`VU7D5mB$`P=U8`#*W^ z%IfOMf6_|wg+JsAXITGa_DSF0^|Oil=Q_Rli}qY^Tl($lVGk{i!v;+^z9%a_QaL-X z?(|)!>B3SgtXB74C_}em(vcQlzgf`@4U5mosoAjSS1_4qByFB(m)~c7g6&DD-=Tes zC!%B`Rd(pF%n=YjcsTA};|j+;H`YWsD!VZ0A72vw^S5A1(+l>c*G^5k){&9cSjB!t zD3C>cop?`HsEv^1sqe~1I{t-5ZSiKEq8(n+G5x(mgz~aeYo%|srC!_Qt8lN`=Jkf% zWld4p+2!UcI;T&SJIs6N{8FQ$I^n8;`qs_a%%AyOSt|AJ^7SssoxZF))lBc%xpP)5 zcLZJKTduA=Jk4-c=IPR!GkUYXe*Cpd|Km@y()MO~L-vHC?5?G++)e%+-RHpEE0Co6 z=#$z6%YZ9i&P};qtiCe(^0nV`N?komzTcRAJ9b&2=E^TW<}qc}$upffX!!TzS)m>C zUS4RPpS=FP|EZt68xFs{^N&p@`CGUHPx# literal 0 HcmV?d00001 -- GitLab