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

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

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