1: #%global debug_package %{nil}
2: Summary: Interpolated Markov Chain
3: Name: imach
4: Version: ${IMACH_VERSION_MAJOR}.${IMACH_VERSION_MINOR}
5: Release: 1
6: License: GPLv2+ with exceptions
7: Group: Applications/Sciences
8: URL: http://euroreves.ined.fr/imach
9: Source0: %{name}-%{version}.tar.xz
10: Source12: imach.png
11: Source13: imach-mime.xml
12: #BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
13:
14: %description
15:
16: %prep
17: %setup -q -n %{srcdirname}
18:
19: %build
20: cd ..
21: rm -rf build_tree
22: mkdir build_tree
23: cd build_tree
24: cmake -DCMAKE_INSTALL_PREFIX=%{rpmprefix} ../%{srcdirname}
25: make
26:
27: # Create desktop file
28: cat > %{name}.desktop <<EOF
29: [Desktop Entry]
30: Name=IMaCh
31: Comment=Interpolated Markov Chain Programm
32: Exec=/usr/bin/imach %f
33: Terminal=true
34: Type=Application
35: MimeType=application/x-imach;text/txt;
36: Icon=imach
37: Categories=Science;Math;NumericalAnalysis
38: EOF
39:
40: %install
41: cd ../build_tree
42: make install
43:
44: #rm -rf $RPM_BUILD_ROOT
45: ##mkdir -p %{buildroot}%{_bindir}/
46: #%makeinstall ROOT="$RPM_BUILD_ROOT"
47: #make ROOT="$RPM_BUILD_ROOT" install
48: #install -D -m 755 src/imach %{buildroot}%{_bindir}/imach
49: install -d %{buildroot}/%{_mandir}/man{1,5}
50: install -p -m 644 man/*.1 %{buildroot}%{_mandir}/man1/
51: install -D -m 644 %SOURCE12 %{buildroot}%{_datadir}/icons/imach.png
52: install -D -m 644 %SOURCE13 %{buildroot}%{_datadir}/mime/packages/imach.xml
53: install -D -m 644 imach.desktop %{buildroot}%{_datadir}/applications/imach.desktop
54: #install -d -p -m 755 %{_builddir}%{name}-%{version}/bin/* %{buildroot}%{_bindir}/
55:
56: %clean
57: rm -rf %{srcdirname}
58: rm -rf build_tree
59: #rm -rf $RPM_BUILD_ROOT
60:
61:
62: %files
63: #%defattr(-,root,root,-)
64: %defattr(-,root,root,-)
65: %dir %{prefix}
66: %{prefix}/*
67: %doc
68: %{_bindir}/%{name}*
69: %{_mandir}/man1/*
70: %{_datadir}/applications/*%{name}*.desktop
71: %{_datadir}/mime/packages/%{name}.xml
72: #%{_datadir}/pixmaps/%{name}.png
73: #%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
74: #%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
75: %{_datadir}/icons/%{name}.png
76:
77: %changelog
78: * Thu Aug 28 2014 Brouard Nicolas <brouard@ined.fr> -
79: - Initial build.
80:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>