drumstick-vl.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. Name: drumstick
  2. Summary: Qt4/C++ wrapper for ALSA sequencer
  3. Version: 0.5.0
  4. Release: 1%{?_dist_release}
  5. Group: System Environment/Libraries
  6. License: GPLv2+
  7. URL: http://drumstick.sourceforge.net/
  8. Source0: http://downloads.sourceforge.net/project/drumstick/%{version}/drumstick-%{version}.tar.bz2
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: cmake
  11. BuildRequires: qt4-devel
  12. BuildRequires: alsa-lib-devel
  13. BuildRequires: desktop-file-utils
  14. Obsoletes: aseqmm < %{version}-%{release}
  15. Provides: aseqmm = %{version}-%{release}
  16. Requires(post): shared-mime-info
  17. Requires(post): /sbin/ldconfig
  18. Requires(postun): shared-mime-info
  19. Requires(postun): /sbin/ldconfig
  20. %description
  21. The drumstick library is a C++ wrapper around the ALSA library sequencer
  22. interface, using Qt4 objects, idioms and style. The ALSA sequencer interface
  23. provides software support for MIDI technology on GNU/Linux.
  24. %package devel
  25. Summary: Developer files for %{name}
  26. Summary(ja): %{name} の開発用ファイル
  27. Group: Development/Libraries
  28. Requires: %{name} = %{version}-%{release}
  29. Obsoletes: aseqmm-devel < %{version}-%{release}
  30. Provides: aseqmm-devel = %{version}-%{release}
  31. %description devel
  32. %{summary}.
  33. %package examples
  34. Summary: Example programs for %{name}
  35. Group: System Environment/Libraries
  36. Requires: %{name} = %{version}-%{release}
  37. Obsoletes: aseqmm-examples < %{version}-%{release}
  38. Provides: aseqmm-examples = %{version}-%{release}
  39. %description examples
  40. This package contains the test/example programs for %{name}.
  41. %prep
  42. %setup -q -n %{name}-%{version}%{?svn}
  43. #patch0 -p1 -b .implicit-linking
  44. #patch1 -p0 -b .sysinfo-#597354
  45. %build
  46. mkdir -p %{_target_platform}
  47. pushd %{_target_platform}
  48. %cmake ..
  49. popd
  50. make %{?_smp_mflags} -C %{_target_platform}
  51. %install
  52. rm -rf $RPM_BUILD_ROOT
  53. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  54. for i in $RPM_BUILD_ROOT%{_datadir}/applications/* ; do
  55. desktop-file-validate $i
  56. done
  57. %clean
  58. rm -rf $RPM_BUILD_ROOT
  59. %post
  60. /sbin/ldconfig
  61. update-mime-database %{_datadir}/mime &> /dev/null || :
  62. %postun
  63. /sbin/ldconfig
  64. update-mime-database %{_datadir}/mime &> /dev/null || :
  65. %post examples
  66. touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  67. update-desktop-database &> /dev/null || :
  68. %postun examples
  69. update-desktop-database &> /dev/null || :
  70. if [ $1 -eq 0 ] ; then
  71. touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  72. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  73. fi
  74. %posttrans examples
  75. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  76. %files
  77. %defattr(-,root,root,-)
  78. %doc ChangeLog COPYING
  79. %{_libdir}/libdrumstick-file.so.*
  80. %{_libdir}/libdrumstick-alsa.so.*
  81. %{_datadir}/mime/packages/drumstick.xml
  82. %files devel
  83. %defattr(-,root,root,-)
  84. %{_libdir}/libdrumstick-file.so
  85. %{_libdir}/libdrumstick-alsa.so
  86. %{_libdir}/pkgconfig/drumstick-file.pc
  87. %{_libdir}/pkgconfig/drumstick-alsa.pc
  88. %{_includedir}/drumstick/
  89. %{_includedir}/drumstick.h
  90. %files examples
  91. %defattr(-,root,root,-)
  92. %{_bindir}/drumstick-*
  93. %{_datadir}/applications/drumstick-*.desktop
  94. %{_datadir}/icons/hicolor/*/apps/*
  95. %{_mandir}/man1/*
  96. %changelog
  97. * Sat Jan 15 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.5.0-1
  98. - Initial build for Vine Linux
  99. * Fri May 28 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.3.1-2
  100. - sysinfo: don't crash when no timer module available (#597354, upstream patch)
  101. * Fri May 28 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.3.1-1
  102. - update to 0.3.1
  103. - fix FTBFS due to the strict ld in Fedora >= 13
  104. * Mon Mar 15 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.3.0-1
  105. - update to 0.3.0 release
  106. * Tue Feb 08 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.2.99-0.3.svn20100208
  107. - update from SVN for KMid2 0.2.1
  108. * Sun Jan 31 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.2.99-0.2.svn20100107
  109. - put the alphatag before the disttag
  110. * Fri Jan 29 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.2.99-0.1.svn20100107
  111. - update to 0.2.99svn tarball
  112. - renamed from aseqmm to drumstick by upstream
  113. * Fri Jan 22 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.2.0-2
  114. - require the main package with exact version-release in -examples
  115. * Fri Jan 22 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.2.0-1
  116. - First Fedora package