diff --git a/desktop/drspine.desktop b/desktop/drspine.desktop new file mode 100644 index 0000000000000000000000000000000000000000..dd12987079b454ff89fec5da54b8209425799d7f --- /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 Binary files /dev/null and b/desktop/drspine.png differ diff --git a/drspine.spec b/drspine.spec index 0504f539bc59c4f9d1a56a294e97a5361fccb260..e09656c9e50a5822c1828e28d21e0e44403e1e63 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