david_david

j7z.spec

Feb 19th, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.87 KB | None | 0 0
  1. %define oname J7Z
  2.  
  3. Name: j7z
  4. Version: 1.2.0
  5. Release: %mkrel 4
  6. Summary: A P7Zip GUI for Linux to simplify data compression and backup
  7. Summary(fr_FR): Une interface graphique pour P7Zip_7-Zip
  8. License: LGPLv3
  9. Group: Archiving/Compression
  10. URL: https://code.google.com/p/k7z/
  11. Source: https://k7z.googlecode.com/files/%{oname}-%{version}-src.tar.bz2
  12. BuildArch: noarch
  13.  
  14. BuildRequires: ant
  15. BuildRequires: ant-apache-regexp
  16. BuildRequires: desktop-file-utils
  17. BuildRequires: java-devel-openjdk >= 1.7.0
  18. BuildRequires: p7zip
  19.  
  20. Requires: p7zip
  21. Requires: java-1.7.0-openjdk >= 1.7.0
  22.  
  23. %description
  24. J7Z is an alternative 7-Zip GUI. It was designed by Xavion.
  25.  
  26. 7-Zip is a high-compression file archiver. It was designed by Igor Pavlov.
  27.  
  28. Use J7Z if you want to:
  29.  
  30. * Update existing archives quickly
  31. * Backup multiple folders to a storage location
  32. * Create or extract protected archives
  33. * Lessen effort by using archiving profiles and lists
  34.  
  35. %description -l fr_FR
  36. J7Z est une alternative de 7-Zip GUI. Il a été conçu par Xavion.
  37.  
  38. 7-Zip est un archiveur de fichiers en haute-compression.
  39. Il a été conçu par Igor Pavlov.
  40.  
  41. Utilisez J7Z si vous voulez:
  42.  
  43. * Mettre à jour rapidement les archives existantes
  44. * Sauvegarder plusieurs dossiers vers un emplacement de stockage
  45. * Créer ou extraire des archives protégées
  46. * Réduire l'effort à l'aide de profils et de listes d'archivage
  47.  
  48. #-------------------------------------------------------------------------
  49.  
  50. %package -n j7z-kde4
  51. Summary: KDE4 ServiceMenus for J7Z
  52. Summary(fr_FR): ServiceMenus de KDE4 pour J7Z
  53. Group: Archiving/Compression
  54. Requires: %{name} = %{version}-%{release}
  55.  
  56. %description -n j7z-kde4
  57. J7Z is an alternative 7-Zip GUI. It was designed by Xavion.
  58.  
  59. 7-Zip is a high-compression file archiver. It was designed by Igor Pavlov.
  60.  
  61. Use J7Z if you want to:
  62.  
  63. * Update existing archives quickly
  64. * Backup multiple folders to a storage location
  65. * Create or extract protected archives
  66. * Lessen effort by using archiving profiles and lists
  67.  
  68. %description -l fr_FR -n j7z-kde4
  69. J7Z est une alternative de 7-Zip GUI. Il a été conçu par Xavion.
  70.  
  71. 7-Zip est un archiveur de fichiers en haute-compression.
  72. Il a été conçu par Igor Pavlov.
  73.  
  74. Utilisez J7Z si vous voulez:
  75.  
  76. * Mettre à jour rapidement les archives existantes
  77. * Sauvegarder plusieurs dossiers vers un emplacement de stockage
  78. * Créer ou extraire des archives protégées
  79. * Réduire l'effort à l'aide de profils et de listes d'archivage
  80.  
  81. #-------------------------------------------------------------------------
  82. %prep
  83. %setup -q -n %{oname}
  84.  
  85. sed -i -e 's|X-Qt;KDE;Utility;Archiving;Compression|X-Qt;KDE;Utility;Archiving;|g' \
  86. Desktop/Menu/J7Z.desktop
  87.  
  88. rm -rf Profiles/Windows
  89. rm -rf Externals/Windows
  90.  
  91. %build
  92. pushd Build
  93. %make
  94. popd
  95.  
  96. %install
  97. pushd Build
  98. %makeinstall_std
  99. popd
  100.  
  101. echo "X-Mageia-translate=true" >> %{buildroot}%{_datadir}/kde4/services/ServiceMenus/J7Z-Create.desktop
  102. echo "X-Mageia-translate=true" >> %{buildroot}%{_datadir}/kde4/services/ServiceMenus/J7Z-Extract.desktop
  103. echo "X-Mageia-translate=true" >> %{buildroot}%{_datadir}/J7Z/Desktop/KDE/J7Z-Create.desktop
  104. echo "X-Mageia-translate=true" >> %{buildroot}%{_datadir}/J7Z/Desktop/KDE/J7Z-Extract.desktop
  105. echo "X-Mageia-translate=true" >> %{buildroot}%{_datadir}/J7Z/Desktop/Menu/J7Z.desktop
  106.  
  107. desktop-file-install \
  108. --vendor='' \
  109. --dir=%{buildroot}%{_datadir}/applications \
  110. --remove-key=Encoding \
  111. %{buildroot}%{_datadir}/applications/*.desktop
  112.  
  113. %files
  114. %doc Dist/README.TXT
  115. %{_bindir}/%{oname}.sh
  116. %{_datadir}/%{oname}/
  117. %{_datadir}/applications/%{oname}.desktop
  118. %{_iconsdir}/hicolor/16x16/actions/*.png
  119. %{_iconsdir}/hicolor/32x32/apps/%{oname}.png
  120.  
  121. %files -n j7z-kde4
  122. %doc Dist/README.TXT
  123. %dir %{_datadir}/kde4/services/ServiceMenus
  124. %{_datadir}/kde4/services/ServiceMenus/*.desktop
Advertisement
Add Comment
Please, Sign In to add comment