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