drumstick-vl.spec 4.3 KB

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