version 1.1, 2015/09/17 06:20:22
|
version 1.2, 2019/05/09 15:05:24
|
Line 9 URL: http://euroreves.ined.fr/imach
|
Line 9 URL: http://euroreves.ined.fr/imach
|
Source0: %{name}-%{version}.tar.xz |
Source0: %{name}-%{version}.tar.xz |
Source12: imach.png |
Source12: imach.png |
Source13: imach-mime.xml |
Source13: imach-mime.xml |
|
Source14: imach.1 |
#BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
#BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
|
|
%description |
%description |
Line 18 Source13: imach-mime.xml
|
Line 19 Source13: imach-mime.xml
|
|
|
%build |
%build |
cd .. |
cd .. |
rm -rf build_tree |
#rm -rf build_tree |
mkdir build_tree |
mkdir build_tree |
cd build_tree |
cd build_tree |
cmake -DCMAKE_INSTALL_PREFIX=%{rpmprefix} ../%{srcdirname} |
cmake -DCMAKE_INSTALL_PREFIX=%{rpmprefix} ../%{srcdirname} |
Line 33 Exec=/usr/bin/imach %f
|
Line 34 Exec=/usr/bin/imach %f
|
Terminal=true |
Terminal=true |
Type=Application |
Type=Application |
MimeType=application/x-imach;text/txt; |
MimeType=application/x-imach;text/txt; |
Icon=imach |
Icon=imach.png |
Categories=Science;Math;NumericalAnalysis |
Categories=Science;Math;NumericalAnalysis |
EOF |
EOF |
|
|
Line 47 make install
|
Line 48 make install
|
#make ROOT="$RPM_BUILD_ROOT" install |
#make ROOT="$RPM_BUILD_ROOT" install |
#install -D -m 755 src/imach %{buildroot}%{_bindir}/imach |
#install -D -m 755 src/imach %{buildroot}%{_bindir}/imach |
install -d %{buildroot}/%{_mandir}/man{1,5} |
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 %SOURCE12 %{buildroot}%{_datadir}/icons/imach.png |
install -D -m 644 %SOURCE13 %{buildroot}%{_datadir}/mime/packages/imach.xml |
install -D -m 644 %SOURCE13 %{buildroot}%{_datadir}/mime/packages/imach.xml |
install -D -m 644 imach.desktop %{buildroot}%{_datadir}/applications/imach.desktop |
install -D -m 644 imach.desktop %{buildroot}%{_datadir}/applications/imach.desktop |
#install -d -p -m 755 %{_builddir}%{name}-%{version}/bin/* %{buildroot}%{_bindir}/ |
#install -d -p -m 755 %{_builddir}%{name}-%{version}/bin/* %{buildroot}%{_bindir}/ |
|
|
%clean |
%clean |
rm -rf %{srcdirname} |
# rm -rf %{srcdirname} |
rm -rf build_tree |
# rm -rf build_tree |
#rm -rf $RPM_BUILD_ROOT |
# #rm -rf $RPM_BUILD_ROOT |
|
|
|
|
%files |
%files |
#%defattr(-,root,root,-) |
#%defattr(-,root,root,-) |
%defattr(-,root,root,-) |
%defattr(-,root,root,-) |
|
%{_datadir}/applications/%{name}.desktop |
%dir %{prefix} |
%dir %{prefix} |
%{prefix}/* |
%{prefix}/* |
%doc |
%doc |