]>
Commit | Line | Data |
---|---|---|
bd977470 JK |
1 | Summary: Old-school drum-kit sampler |
2 | Name: drumkv1 | |
3 | Version: 0.9.2 | |
4 | Release: 1 | |
5 | License: GPL v2 | |
6 | Group: Applications | |
7 | Source0: http://downloads.sourceforge.net/drumkv1/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: f1ca5b84755d481a02f79ad031d18ba5 | |
9 | URL: https://drumkv1.sourceforge.io/ | |
10 | BuildRequires: Qt5Core-devel | |
c7bb7ba4 JK |
11 | BuildRequires: Qt5Gui-devel |
12 | BuildRequires: Qt5Xml-devel | |
bd977470 JK |
13 | BuildRequires: alsa-lib-devel |
14 | BuildRequires: autoconf | |
15 | BuildRequires: jack-audio-connection-kit-devel | |
16 | BuildRequires: liblo-devel | |
17 | BuildRequires: libsndfile-devel | |
18 | BuildRequires: lv2-devel | |
19 | BuildRequires: qt5-build | |
20 | BuildRequires: qt5-linguist | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %define _noautoprovfiles %{_libdir}/lv2 | |
24 | ||
25 | %description | |
26 | drumkv1 is an old-school all-digital drum-kit sampler synthesizer with | |
27 | stereo fx. | |
28 | ||
29 | Features: | |
30 | - a pure stand-alone JACK client with JACK-session, NSM (Non Session | |
31 | management) and both JACK MIDI and ALSA MIDI input support; | |
32 | - a LV2 instrument plug-in. | |
33 | ||
34 | %package common | |
35 | Summary: Old-school drum-kit sampler - common files | |
36 | Group: Applications | |
37 | ||
38 | %description common | |
39 | drumkv1 is an old-school all-digital drum-kit sampler synthesizer with | |
40 | stereo fx. | |
41 | ||
bd977470 JK |
42 | %package jack |
43 | Summary: Old-school drum-kit sampler - standalone Jack app | |
44 | Group: Applications | |
45 | Requires: %{name}-common = %{version}-%{release} | |
46 | ||
47 | %description jack | |
48 | drumkv1 is an old-school all-digital drum-kit sampler synthesizer with | |
49 | stereo fx. | |
50 | ||
51 | This package provides a pure stand-alone JACK client with | |
52 | JACK-session, NSM (Non Session management) and both JACK MIDI and ALSA | |
53 | MIDI input support. | |
54 | ||
55 | %package lv2 | |
56 | Summary: Old-school drum-kit sampler - LV2 plug-in | |
57 | Group: Applications | |
58 | Requires: %{name}-common = %{version}-%{release} | |
59 | ||
60 | %description lv2 | |
61 | drumkv1 is an old-school all-digital drum-kit sampler synthesizer with | |
62 | stereo fx. | |
63 | ||
64 | This package provides an a LV2 instrument plug-in. | |
65 | ||
66 | %prep | |
67 | %setup -q | |
68 | ||
69 | %build | |
70 | %{__aclocal} | |
71 | %{__autoconf} | |
72 | ||
73 | %configure \ | |
74 | --with-qt5=%{_libdir}/qt5 | |
75 | ||
76 | %{__make} | |
77 | ||
78 | %install | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | install -d $RPM_BUILD_ROOT%{_mandir}/fr/man1 | |
81 | ||
82 | %{__make} install \ | |
83 | DESTDIR=$RPM_BUILD_ROOT | |
84 | ||
85 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.so | |
86 | %{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/drumkv1.fr.1.gz $RPM_BUILD_ROOT%{_mandir}/fr/man1/drumkv1.1.gz | |
87 | ||
88 | # enable 'Requires' detection | |
89 | chmod a+x $RPM_BUILD_ROOT%{_libdir}/lv2/%{name}.lv2/*.so | |
90 | ||
91 | %post common -p /sbin/ldconfig | |
92 | %postun common -p /sbin/ldconfig | |
93 | ||
94 | %clean | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %files common | |
98 | %defattr(644,root,root,755) | |
99 | %attr(755,root,root) %{_libdir}/libdrumkv1.so.0.* | |
100 | %ghost %attr(755,root,root) %{_libdir}/libdrumkv1.so.0 | |
101 | %attr(755,root,root) %{_libdir}/libdrumkv1_ui.so.0.* | |
102 | %ghost %attr(755,root,root) %{_libdir}/libdrumkv1_ui.so.0 | |
103 | ||
104 | %files jack | |
105 | %defattr(644,root,root,755) | |
106 | %doc AUTHORS ChangeLog README TODO | |
107 | %attr(755,root,root) %{_bindir}/%{name}_jack | |
108 | %{_desktopdir}/drumkv1.desktop | |
109 | %{_iconsdir}/hicolor/*/apps/drumkv1.png | |
110 | %{_iconsdir}/hicolor/scalable/apps/drumkv1.svg | |
111 | %{_iconsdir}/hicolor/*/mimetypes/application-x-drumkv1-preset.png | |
112 | %{_iconsdir}/hicolor/scalable/mimetypes/application-x-drumkv1-preset.svg | |
113 | %{_mandir}/man1/drumkv1.1* | |
114 | %lang(fr) %{_mandir}/fr/man1/drumkv1.1* | |
115 | %{_datadir}/metainfo/drumkv1.appdata.xml | |
116 | %{_datadir}/mime/packages/drumkv1.xml | |
117 | ||
118 | %files lv2 | |
119 | %defattr(644,root,root,755) | |
120 | %doc AUTHORS ChangeLog README TODO | |
121 | %dir %{_libdir}/lv2/%{name}.lv2 | |
122 | %{_libdir}/lv2/%{name}.lv2/*.ttl | |
123 | %attr(755,root,root) %{_libdir}/lv2/%{name}.lv2/*.so |