pragha-vl.spec 4.5 KB

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