Annotation of imach/distributions/gnulinux/imach.spec.in, revision 1.4

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: 
1.3       brouard    58: 
1.1       brouard    59: %clean
1.2       brouard    60: # rm -rf %{srcdirname}
                     61: # rm -rf build_tree
                     62: # #rm -rf $RPM_BUILD_ROOT
1.1       brouard    63: 
                     64: 
                     65: %files
                     66: #%defattr(-,root,root,-)
                     67: %defattr(-,root,root,-)
1.2       brouard    68: %{_datadir}/applications/%{name}.desktop
1.1       brouard    69: %dir %{prefix}
                     70: %{prefix}/*
                     71: %doc
                     72: %{_bindir}/%{name}*
                     73: %{_mandir}/man1/*
                     74: %{_datadir}/applications/*%{name}*.desktop
                     75: %{_datadir}/mime/packages/%{name}.xml
                     76: #%{_datadir}/pixmaps/%{name}.png
                     77: #%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
                     78: #%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
                     79: %{_datadir}/icons/%{name}.png
                     80: 
1.4     ! brouard    81: #macro %{__ln_s}
        !            82: #%{__ln_s} -f %{_bindir}/%{name} %{_bindir}/imach
        !            83: %post
        !            84: ln -s -f %{_bindir}/%{name} %{_bindir}/imach
        !            85: 
1.1       brouard    86: %changelog
                     87: * Thu Aug 28 2014 Brouard Nicolas <brouard@ined.fr> - 
                     88: - Initial build.
                     89: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>