pragha-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. Name: pragha
  2. Version: 0.8.9
  3. Release: 1%{?_dist_release}
  4. Summary: Lightweight GTK+ music manager
  5. Summary(ja): 軽量 GTK+ 楽曲管理アプリケーション
  6. Group: Applications/Multimedia
  7. License: GPLv3+
  8. URL: http://pragha.wikispaces.com/
  9. Source0: http://dissonance.googlecode.com/files/%{name}-%{version}.tar.bz2
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildRequires: alsa-lib-devel >= 1.0.15
  12. BuildRequires: dbus-glib-devel >= 0.74
  13. BuildRequires: gtk2-devel >= 2.16.0
  14. BuildRequires: flac-devel >= 1.2.1
  15. %if %{?_dist_release} != "vl5"
  16. BuildRequires: keybinder-devel >= 0.2.0
  17. %endif
  18. BuildRequires: libao-devel >= 0.8.8
  19. BuildRequires: libcddb-devel >= 1.2.1
  20. BuildRequires: libcdio-devel >= 0.78
  21. BuildRequires: curl-devel >= 7.18
  22. #BuildRequires: libmad-devel >= 0.15
  23. BuildRequires: libmodplug-devel
  24. BuildRequires: libnotify-devel >= 0.4.4
  25. BuildRequires: libsndfile-devel >= 1.0.17
  26. BuildRequires: libvorbis-devel >= 1.2.0
  27. BuildRequires: sqlite3-devel >= 3.4
  28. BuildRequires: taglib-devel >= 1.4
  29. BuildRequires: desktop-file-utils
  30. BuildRequires: gettext
  31. %description
  32. Pragha is a lightweight GTK+ music manager that aims to be fast, bloat-free,
  33. and light on memory consumption. It is written completely in C and GTK+.
  34. Pragha is a fork of Consonance Music Manager, discontinued by the original
  35. author.
  36. %prep
  37. %setup -q
  38. # Fix spurious executable permissions
  39. %__chmod 0644 ChangeLog src/*.{c,h}
  40. %build
  41. %configure --disable-static
  42. %__make %{?_smp_mflags} V=1
  43. %install
  44. %__rm -rf $RPM_BUILD_ROOT
  45. %__make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
  46. desktop-file-install \
  47. --delete-original \
  48. --add-category=Audio \
  49. --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
  50. ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
  51. %find_lang %{name}
  52. # remove duplicate docs
  53. %__rm -rf ${RPM_BUILD_ROOT}%{_datadir}/%{name}/doc
  54. %clean
  55. %__rm -rf $RPM_BUILD_ROOT
  56. %post
  57. touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  58. update-desktop-database &> /dev/null || :
  59. %postun
  60. if [ $1 -eq 0 ] ; then
  61. touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  62. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  63. fi
  64. update-desktop-database &> /dev/null || :
  65. %posttrans
  66. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  67. %files -f %{name}.lang
  68. %defattr(-,root,root,-)
  69. # FIXME add AUTHORS and README if not empty
  70. %doc ChangeLog COPYING FAQ NEWS
  71. %{_bindir}/pragha
  72. %{_datadir}/applications/%{name}.desktop
  73. %{_datadir}/icons/hicolor/*x*/apps/%{name}.png
  74. %{_datadir}/pixmaps/%{name}/
  75. %{_datadir}/%{name}/
  76. %{_mandir}/man1/pragha.1.*
  77. %changelog
  78. * Tue Aug 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.8.9-1
  79. - new upstream release
  80. - added BuildRequires: keybinder-devel >= 0.2.0
  81. * Sun Feb 27 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.8.5-2
  82. - changed release to sync with self-build-pragha-vl.spec
  83. * Sat Feb 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.8.5-1
  84. - new upstream release
  85. * Fri Oct 15 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.8.2-1
  86. - new upstream release
  87. * Fri Sep 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.8.1-1
  88. - new upstream release
  89. * Fri Sep 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.8.0.2-1
  90. - initial build
  91. * Sat Aug 21 2010 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.8.0.2-3
  92. - rebuilt
  93. * Mon Aug 02 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0.2-2
  94. - Fix desktop file
  95. * Fri Jul 30 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0.2-1
  96. - Update to 0.8.0.2
  97. - Drop de.po patch, included upstream
  98. * Fri Jul 30 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0.1-1
  99. - Update to 0.8.0.1
  100. - Add COPYING and NEWS to docs
  101. * Thu Jul 29 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.8.0-1
  102. - Update to 0.8.0
  103. * Fri Jun 25 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.7.7.1-1
  104. - Update to 0.7.7.1
  105. * Fri Jun 25 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.7.7-1
  106. - Update to 0.7.7
  107. * Sat Jun 19 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.7.6-1
  108. - Update to 0.7.6
  109. - Remove upstreamed use-software-mixer.patch
  110. * Fri Apr 22 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.7.4-1
  111. - Update to 0.7.4
  112. * Mon Mar 22 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.7.3-2
  113. - Use software mixer by default to cope with pulseaudio
  114. - Remove executable bits from docs
  115. * Tue Mar 16 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.7.3-1
  116. - Update to 0.7.3
  117. * Sat Feb 20 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.7.2-1
  118. - Update to 0.7.2
  119. * Wed Oct 28 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.7.1-1
  120. - Upadte to 0.7.1
  121. * Sat Oct 03 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.7.0-1
  122. - Upadte to 0.7.0
  123. * Sun Aug 09 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.3-1
  124. - Upadte to 0.6.3
  125. * Mon Jul 20 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.2.2-1
  126. - Initial Fedora package