Advertisement
MichaelSOG

doublecmd

Aug 12th, 2011
3,119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. %define name  doublecmd
  2. %define version 0.4.5.2.1
  3. %define release %mkrel 01
  4.  
  5. Summary: Cross platform open source file manager
  6. Name:    %{name}
  7. Version: %{version}
  8. Release: %{release}
  9. Group:   System;FileManager;
  10. License: GPL
  11. URL:     http://%{name}.sourceforge.net/site/eng/index.html
  12. Source:  doublecmd-0.4.5.2-1.qt.i386.tar.bz2
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
  14. Obsoletes:  %name < %version
  15.  
  16. %description -l es
  17. Double Commander es un manejador de ficheros multiplataforma con dos paneles lado a lado.
  18. Esta inspirado por Total Commander e implementa algunas ideas nuevas.
  19. Aquí tienes algunas mejoras clave de Double Commander:
  20.  
  21. * Soporte Unicode
  22. * Todas las operaciones trabajan por detrás
  23. * Herramienta multi-nombres
  24. * Interfaz con pestañas
  25. * Columnas versátiles
  26. * Editor de Texto propio (F4) con sintaxis coloreada
  27. * y más ...
  28.  
  29. %description
  30. Double Commander is a cross platform open source file manager with two panels side by side.
  31. It is inspired by Total Commander and features some new ideas.
  32. Here are some key features of Double Commander:
  33.  
  34. * Unicode support
  35. * All operations working in background
  36. * Multi-rename tool
  37. * Tabbed interface
  38. * Custom columns
  39. * Internal text editor (F4)  with syntax hightlighting
  40. * Built in file viewer (F3) to view files of in hex, binary or text format
  41. * Archives are handled like subdirectories. You can easily copy files to and from archives.
  42. Supported archive types: ZIP, TAR GZ, TGZ, LZMA and also BZ2, RPM, CPIO, DEB, RAR.
  43. * Extended  search function with full text search in any files
  44. * Configurable button bar to start external programs or internal menu commands
  45. * Total Commander WCX, WDX and WLX plug-ins support
  46. * File operations logging
  47. * And more...
  48.  
  49. %prep
  50. %setup -q -n %{name}
  51.  
  52.  
  53. %build
  54.  
  55. %install
  56. rm -rf %{buildroot}
  57.  
  58. mkdir -p %buildroot%_datadir/%{name}
  59. mkdir -p %buildroot%_libdir
  60. cp libqt4intf.so %buildroot%_libdir
  61. cp -af * %buildroot%_datadir/%{name}
  62.  
  63.  
  64. #launcher
  65. mkdir -p %buildroot%_bindir
  66. cat > %buildroot%_bindir/%{name} << EOF
  67. #!/bin/sh
  68. cd %{_datadir}/%{name}
  69. exec ./%{name}.sh
  70. EOF
  71. chmod +x %{buildroot}%{_bindir}/%{name}
  72.  
  73. #menu
  74. mkdir -p %buildroot%_datadir/applications
  75. cat > %buildroot%{_datadir}/applications/%{name}.desktop <<EOF
  76. [Desktop Entry]
  77. Encoding=UTF-8
  78. Name=Double Commander
  79. Comment=Cross platform open source file manager
  80. Exec=%{name}
  81. Icon=%{name}.png
  82. Type=Application
  83. Terminal=false
  84. Categories=Application;Utility;
  85. EOF
  86.  
  87. #icon
  88. mkdir -p %{buildroot}%_datadir/pixmaps
  89. install -m 0644 %{name}.png %{buildroot}%_datadir/pixmaps/%{name}.png
  90.  
  91.  
  92. %clean
  93. rm -rf %{buildroot}
  94.  
  95. %post
  96. chmod 777 /usr/share/doublecmd/
  97. chmod 777 /usr/share/doublecmd/doublecmd.ini
  98. %{update_menus}
  99. %{update_desktop_database}
  100.  
  101. %postun
  102. %{clean_menus}
  103. %{clean_desktop_database}
  104.  
  105. %files
  106. %defattr(-,root,root,-)
  107. %{_bindir}/%{name}
  108. %{_datadir}/applications/%{name}.desktop
  109. %{_datadir}/%{name}
  110. %{_datadir}/pixmaps/%{name}.png
  111. /usr/lib/libqt4intf.so
  112.  
  113.  
  114.  
  115. %changelog
  116. * Fri Aug 12 2011 MichaelSOG <michaelsog@ymail.com>
  117. - Build for Mandriva 2010.2 ««blogdrake.net»»
  118.  
  119. * Fri Jul 8 2011 Joaquín <joaquinmandriva@gmail.com>
  120. - Packaged to Mandriva (Blogdrake Repository)
  121.  
  122. * Sun Oct 10 2010 Sproggy <desproggster@gmail.com> 0.4.5.2.1-1pclos2010
  123. - update 0.4.5.2.1
  124.  
  125. * Wed May 26 2010 slick50 <lxgator@gmail.com> 0.4.5.1.1-1pclos2010
  126. - initial pkg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement