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