Annotation of imach/distributions/gnulinux/imach.spec.in, revision 1.2
1.1 brouard 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
1.2 ! brouard 12: Source14: imach.1
1.1 brouard 13: #BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
14:
15: %description
16:
17: %prep
18: %setup -q -n %{srcdirname}
19:
20: %build
21: cd ..
1.2 ! brouard 22: #rm -rf build_tree
1.1 brouard 23: mkdir build_tree
24: cd build_tree
25: cmake -DCMAKE_INSTALL_PREFIX=%{rpmprefix} ../%{srcdirname}
26: make
27:
28: # Create desktop file
29: cat > %{name}.desktop <<EOF
30: [Desktop Entry]
31: Name=IMaCh
32: Comment=Interpolated Markov Chain Programm
33: Exec=/usr/bin/imach %f
34: Terminal=true
35: Type=Application
36: MimeType=application/x-imach;text/txt;
1.2 ! brouard 37: Icon=imach.png
1.1 brouard 38: Categories=Science;Math;NumericalAnalysis
39: EOF
40:
41: %install
42: cd ../build_tree
43: make install
44:
45: #rm -rf $RPM_BUILD_ROOT
46: ##mkdir -p %{buildroot}%{_bindir}/
47: #%makeinstall ROOT="$RPM_BUILD_ROOT"
48: #make ROOT="$RPM_BUILD_ROOT" install
49: #install -D -m 755 src/imach %{buildroot}%{_bindir}/imach
50: install -d %{buildroot}/%{_mandir}/man{1,5}
1.2 ! brouard 51: install -D -m 644 %SOURCE14 %{buildroot}%{_datadir}/man1/
! 52: #install -p -m 644 man/*.1 %{buildroot}%{_mandir}/man1/
1.1 brouard 53: install -D -m 644 %SOURCE12 %{buildroot}%{_datadir}/icons/imach.png
54: install -D -m 644 %SOURCE13 %{buildroot}%{_datadir}/mime/packages/imach.xml
55: install -D -m 644 imach.desktop %{buildroot}%{_datadir}/applications/imach.desktop
56: #install -d -p -m 755 %{_builddir}%{name}-%{version}/bin/* %{buildroot}%{_bindir}/
57:
58: %clean
1.2 ! brouard 59: # rm -rf %{srcdirname}
! 60: # rm -rf build_tree
! 61: # #rm -rf $RPM_BUILD_ROOT
1.1 brouard 62:
63:
64: %files
65: #%defattr(-,root,root,-)
66: %defattr(-,root,root,-)
1.2 ! brouard 67: %{_datadir}/applications/%{name}.desktop
1.1 brouard 68: %dir %{prefix}
69: %{prefix}/*
70: %doc
71: %{_bindir}/%{name}*
72: %{_mandir}/man1/*
73: %{_datadir}/applications/*%{name}*.desktop
74: %{_datadir}/mime/packages/%{name}.xml
75: #%{_datadir}/pixmaps/%{name}.png
76: #%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
77: #%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
78: %{_datadir}/icons/%{name}.png
79:
80: %changelog
81: * Thu Aug 28 2014 Brouard Nicolas <brouard@ined.fr> -
82: - Initial build.
83:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>