david_david

specfile atunes

Oct 22nd, 2012
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. %define use_ccache 1
  2. %define ccachedir ~/.ccache-OOo%{mgasuffix}%{?_with_ccache: %global use_ccache 1}%{?_without_ccache: %global use_ccache 0}
  3. %define _enable_debug_packag %{nil}
  4. %define debug_package %{nil}
  5. %define distsuffix .mga
  6. %define dont_strip 1
  7.  
  8. Vendor: MLO <http://www.mageialinux-online.org>
  9. Packager: david.david <david.david>
  10. Name: atunes
  11. Version: 2.1.0
  12. Release: %mkrel 1
  13. Summary: A full-featured audio player and manager
  14. Group: Sound
  15. License: GPLv2
  16. URL: http://www.atunes.org/
  17. Source: %{name}_%{version}.tar.gz
  18. BuildArch: noarch
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
  20.  
  21. Requires: java-1.6.0-openjdk
  22. Requires: mplayer
  23. Requires: vorbis-tools
  24. Requires: flac
  25. Requires: cdrkit-icedax
  26. Requires: xine-plugins
  27.  
  28. Obsoletes: atunes < %{version}
  29. Provides: atunes = %{version}-%{release}
  30.  
  31. %description
  32. aTunes is a full-featured audio player and manager, developed in
  33. Java programming language, so it can be executed on different
  34. platforms: Windows, Linux and Unix-like systems, ...
  35. Currently plays MP3, Ogg, WMA, WAV, FLAC, MP4 and radio streaming,
  36. allowing users to easily edit tags, organize music and rip Audio CDs.
  37.  
  38. %prep
  39. %setup -q -n %{name}-%{version}-SNAPSHOT
  40.  
  41. %build
  42.  
  43. %install
  44. rm -rf %{buildroot}
  45. rm -rf win_tools
  46. rm -f aTunes.exe
  47.  
  48.  
  49. install -d %{buildroot}%{_bindir}
  50. install -d %{buildroot}%{_datadir}/%{name}
  51. install -d %{buildroot}%{_datadir}/%{name}/ico
  52. install -d %{buildroot}%{_datadir}/pixmaps
  53.  
  54. cp -r ./* %{buildroot}%{_datadir}/%{name}/
  55. cp -f atunes.png %{buildroot}%{_datadir}/pixmaps/
  56.  
  57.  
  58. #xdg menu
  59. mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
  60. cat > $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop << EOF
  61. [Desktop Entry]
  62. Encoding=UTF-8
  63. Name=aTunes
  64. Comment=Music reproductor
  65. Exec=/usr/bin/atunes
  66. Icon=atunes.png
  67. Terminal=false
  68. Type=Application
  69. StartupNotify=true
  70. MimeType=audio/x-mp3;audio/x-ogg;application/x-ogg;audio/x-mpegurl;audio/x-wav;audio/x-scpls;audio/mpegurl;audio/mp3;audio/mpeg;audio/x-mpeg;application/x-flac;audio/x-flac;
  71. Categories=Audio;Player;X-MandrivaLinux-Multimedia-Sound;AudioVideo;Java;X-MandrivaLinux-CrossDesktop;
  72. EOF
  73.  
  74.  
  75. #make Excutable
  76. cat > $RPM_BUILD_ROOT%{_bindir}/atunes << EOF
  77. #!/bin/sh
  78. cd /usr/share/atunes/
  79. sh ./aTunes.sh "$@"
  80. EOF
  81.  
  82. chmod 0755 $RPM_BUILD_ROOT%{_bindir}/atunes
  83.  
  84. %clean
  85. rm -rf %{buildroot}
  86.  
  87. %files
  88. %defattr(-,root,root,0755)
  89. %{_bindir}/atunes
  90. %{_datadir}/pixmaps/atunes.png
  91. %{_datadir}/applications/%{name}.desktop
  92. %{_datadir}/%{name}/*
  93.  
  94. %changelog
  95. * Mon Jun 25 2012 david.david <david.david> 2.1.0-1.mga2
  96. + Rebuild package for mga2
  97. - new version: 2.1.0
  98.  
  99. - requires xine-plugins (Arch.x86_64 or Arch.i586)
  100. - requires java-1.6.0-openjdk (java-1.6.0-sun is not available in mga2)
Advertisement
Add Comment
Please, Sign In to add comment