Source0: %{name}-%{version}.tar.xz
Source12: imach.png
Source13: imach-mime.xml
+Source14: imach.1
#BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
%build
cd ..
-rm -rf build_tree
+#rm -rf build_tree
mkdir build_tree
cd build_tree
cmake -DCMAKE_INSTALL_PREFIX=%{rpmprefix} ../%{srcdirname}
Terminal=true
Type=Application
MimeType=application/x-imach;text/txt;
-Icon=imach
+Icon=imach.png
Categories=Science;Math;NumericalAnalysis
EOF
#make ROOT="$RPM_BUILD_ROOT" install
#install -D -m 755 src/imach %{buildroot}%{_bindir}/imach
install -d %{buildroot}/%{_mandir}/man{1,5}
-install -p -m 644 man/*.1 %{buildroot}%{_mandir}/man1/
+install -D -m 644 %SOURCE14 %{buildroot}%{_datadir}/man1/
+#install -p -m 644 man/*.1 %{buildroot}%{_mandir}/man1/
install -D -m 644 %SOURCE12 %{buildroot}%{_datadir}/icons/imach.png
install -D -m 644 %SOURCE13 %{buildroot}%{_datadir}/mime/packages/imach.xml
install -D -m 644 imach.desktop %{buildroot}%{_datadir}/applications/imach.desktop
#install -d -p -m 755 %{_builddir}%{name}-%{version}/bin/* %{buildroot}%{_bindir}/
%clean
-rm -rf %{srcdirname}
-rm -rf build_tree
-#rm -rf $RPM_BUILD_ROOT
+# rm -rf %{srcdirname}
+# rm -rf build_tree
+# #rm -rf $RPM_BUILD_ROOT
%files
#%defattr(-,root,root,-)
%defattr(-,root,root,-)
+%{_datadir}/applications/%{name}.desktop
%dir %{prefix}
%{prefix}/*
%doc