Name: comsol-icons Version: 0.1.0 Release: 11%{?dist} Summary: Icons and launcher for Comsol License: MIT URL: https://github.com/hmaarrfk/useful-icons/tree/master/comsol-icons Source0: comsol-icons-%{version}.tar.gz BuildArch: noarch # It does not really require this because what if the user just wants the files # So I just leave it here for convenience BuildRequires: desktop-file-utils %description I created launchers and icons for Comsol. %package -n comsol-matlab-icons Summary: Icons and launcher for Comsol with Matlab Livelink (R) #Requires: xterm #Requires: csh %description -n comsol-matlab-icons Launche for Comsol with Matlab Livelink(R). %prep %setup -q %build #Nothing to do really since the files are all as is %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_datadir}/ mkdir -p %{buildroot}%{_bindir}/ #ls -lah cp -R ./icons %{buildroot}%{_datadir} install comsol_matlab.sh %{buildroot}%{_bindir} # see to learn how to properly install a .desktop see # https://fedoraproject.org/wiki/Packaging:Guidelines?rd=Packaging/Guidelines#Desktop_files desktop-file-install --delete-original --dir=${RPM_BUILD_ROOT}%{_datadir}/applications ./comsol.desktop desktop-file-install --delete-original --dir=${RPM_BUILD_ROOT}%{_datadir}/applications ./comsol_matlab.desktop %clean rm -rf %{buildroot} %post /usr/bin/update-desktop-database &> /dev/null || : /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %post -n comsol-matlab-icons /usr/bin/update-desktop-database &> /dev/null || : /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun /usr/bin/update-desktop-database &> /dev/null || : if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %postun -n comsol-matlab-icons /usr/bin/update-desktop-database &> /dev/null || : if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %files #%doc README LICENSE %{_datadir}/icons/hicolor/256x256/apps/comsol.png %{_datadir}/applications/comsol.desktop %files -n comsol-matlab-icons #%doc README LICENSE %{_datadir}/icons/hicolor/256x256/apps/comsol_matlab.png %{_datadir}/applications/comsol_matlab.desktop %{_bindir}/comsol_matlab.sh %changelog * Tue Jan 05 2016 Mark Harfouche - 0.1.0-11 - Added noarch, trying to fix the search path for comsol 5.1 * Tue Jan 05 2016 Mark Harfouche - 0.1.0-10 - Removed noarch, trying to fix the search path for comsol 5.1 * Tue Jan 05 2016 Mark Harfouche - 0.1.0-9 - rebuilt with terminal for hte launcher * Mon Aug 31 2015 Mark Harfouche - 0.1.0-8 - Forgot to add the -desktop flag to the matlab command. Matlab would close automatically without it * Mon Aug 31 2015 Mark Harfouche - 0.1.0-7 - Custom comsol with matlab launcher that doesn't launch a useless terminal * Fri Aug 28 2015 Mark Harfouche - 0.1.0-6 - rebuilt * Tue Mar 31 2015 Mark Harfouche - 0.1.0-5 - rebuilt * Tue Nov 11 2014 Mark Harfouche - 0.1.0-4 - rebuilt * Tue Nov 11 2014 Mark Harfouche - 0.1.0-3 - rebuilt * Tue Nov 11 2014 Mark Harfouche - 0.1.0-2 - Added the comsol matlab server * Thu Sep 27 2012 Mark Harfouche+mark.harfouche@gmail.com - 0.1.0 - Initial commit.