-
Notifications
You must be signed in to change notification settings - Fork 3
/
drumstick.spec.in
218 lines (165 loc) · 5.67 KB
/
drumstick.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
# spec file for package drumstick (Version @PROJECT_VERSION@)
#
# MIDI Sequencer C++ Library Bindings for Qt
# Copyright (C) 2005-2024 Pedro Lopez-Cabanillas <[email protected]>
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# norootforbuild
Name: drumstick
Version: @PROJECT_VERSION@
Release: 1
License: GPL v3 or later
Summary: MIDI Sequencer C++ Library Bindings
Group: Productivity/Multimedia/Sound/Midi
URL: http://drumstick.sourceforge.net
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake
BuildRequires: alsa-lib-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: fluidsynth-devel
BuildRequires: pulseaudio-libs-devel
BuildRequires: doxygen
BuildRequires: graphviz
BuildRequires: libxslt
BuildRequires: docbook-utils
BuildRequires: docbook-style-xsl
Requires: shared-mime-info
%description
This package includes test and example programs for drumstick libraries.
Authors:
--------
Pedro Lopez-Cabanillas <[email protected]>
%package -n libdrumstick-file2
Summary: MIDI Sequencer C++ Library
Group: System/Libraries
%description -n libdrumstick-file2
MIDI Sequencer C++ Library Bindings for Qt
This library includes classes providing file input and output in formats
commonly used by MIDI programs. Currently, SMF (standard MIDI file)
read/write and WRK (Cakewalk) file read are supported.
Authors:
--------
Pedro Lopez-Cabanillas <[email protected]>
%package -n libdrumstick-alsa2
Summary: MIDI Sequencer C++ Library
Group: System/Libraries
%description -n libdrumstick-alsa2
MIDI Sequencer C++ Library Bindings for Qt and ALSA.
This library includes the ALSA Sequencer library classes, providing MIDI
recording and playback functionality to C++/Qt programs.
Authors:
--------
Pedro Lopez-Cabanillas <[email protected]>
%package -n libdrumstick-rt2
Summary: MIDI Realtime IO C++ Library
Group: System/Libraries
%description -n libdrumstick-rt2
MIDI Realtime IO C++ Library for Qt
This library includes the RT library classes, providing MIDI
realtime IO functionality to C++/Qt programs.
Authors:
--------
Pedro Lopez-Cabanillas <[email protected]>
%package -n libdrumstick-widgets2
Summary: MIDI Widgets C++ Library
Group: System/Libraries
%description -n libdrumstick-widgets2
MIDI Widgets C++ Library for Qt
This library includes the Widgets library, providing
GUI, MIDI related, components for C++/Qt programs.
Authors:
--------
Pedro Lopez-Cabanillas <[email protected]>
%package -n libdrumstick-devel
Summary: Development package for the drumstick libraries
Group: Development/Libraries/C and C++
Requires: libdrumstick-file2 = %{version}
Requires: libdrumstick-alsa2 = %{version}
Requires: libdrumstick-rt2 = %{version}
Requires: libdrumstick-widgets2 = %{version}
Requires: glibc-devel libstdc++-devel alsa-lib-devel qt5-qtbase-devel
%description -n libdrumstick-devel
This package contains the files needed to compile programs that use the
libdrumstick libraries.
Authors:
--------
Pedro Lopez-Cabanillas <[email protected]>
%package -n libdrumstick-doc
Summary: Development documentation package for the drumstick libraries
Group: Documentation/Other
%description -n libdrumstick-doc
This package contains the developer's documentation of the drumstick libraries.
Authors:
--------
Pedro Lopez-Cabanillas <[email protected]>
%prep
%setup -q
%build
CXXFLAGS="$RPM_OPT_FLAGS -g -fexceptions" \
cmake . -DSTATIC_DRUMSTICK=0 \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DLIB_SUFFIX=$(echo %_lib | cut -b4-)
make %{?jobs:-j %jobs} VERBOSE=1
make doxygen
%install
make install DESTDIR=$RPM_BUILD_ROOT
%post
%{_bindir}/update-mime-database %{_datadir}/mime
%postun
%{_bindir}/update-mime-database %{_datadir}/mime
%post -n libdrumstick-file2 -p /sbin/ldconfig
%postun -n libdrumstick-file2 -p /sbin/ldconfig
%post -n libdrumstick-alsa2 -p /sbin/ldconfig
%postun -n libdrumstick-alsa2 -p /sbin/ldconfig
%post -n libdrumstick-rt2 -p /sbin/ldconfig
%postun -n libdrumstick-rt2 -p /sbin/ldconfig
%post -n libdrumstick-widgets2 -p /sbin/ldconfig
%postun -n libdrumstick-widgets2 -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc AUTHORS COPYING INSTALL NEWS README TODO ChangeLog
%doc %{_mandir}/*
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/applications/*
%{_bindir}/*
%files -n libdrumstick-file2
%defattr(-,root,root)
%{_libdir}/libdrumstick-file.so.*
%{_datadir}/mime/packages/*
%files -n libdrumstick-alsa2
%defattr(-,root,root)
%{_libdir}/libdrumstick-alsa.so.*
%files -n libdrumstick-rt2
%defattr(-,root,root)
%{_libdir}/libdrumstick-rt.so.*
%{_libdir}/drumstick/*.so
%files -n libdrumstick-widgets2
%defattr(-,root,root)
%dir %{_datadir}/drumstick
%{_libdir}/libdrumstick-widgets.so.*
%{_datadir}/drumstick/*
%files -n libdrumstick-devel
%defattr(-, root, root)
%dir %{_includedir}/drumstick
%{_libdir}/libdrumstick-file.so
%{_libdir}/libdrumstick-alsa.so
%{_libdir}/libdrumstick-rt.so
%{_libdir}/libdrumstick-widgets.so
%{_includedir}/drumstick.h
%{_includedir}/drumstick/*.h
%{_libdir}/pkgconfig/*.pc
%files -n libdrumstick-doc
%defattr(-, root, root)
%doc doc/html/*
%changelog
* Pedro Lopez-Cabanillas <[email protected]> 2.0.0
- New version
* Sat Aug 30 2014 Pedro Lopez-Cabanillas <[email protected]> 1.0.0
- New version
* Thu Sep 9 2010 Pedro Lopez-Cabanillas <[email protected]> 0.5.0
- New version