/
wildmidi.spec
65 lines (53 loc) · 1.69 KB
/
wildmidi.spec
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
%define major 2
%define libname %mklibname %{name} %{major}
%define develname %mklibname -d %{name}
Name: wildmidi
Version: 0.4.3
Release: 1
Summary: Open Source Midi Sequencer
Group: Sound
License: GPLv3+ and LGPLv3+
URL: http://wildmidi.sourceforge.net
Source0: https://github.com/Mindwerks/wildmidi/archive/wildmidi-%{version}.tar.gz
#Patch0: wildmidi-0.2.3.4-fix-default-config-location.patch
BuildRequires: pkgconfig(alsa)
BuildRequires: cmake
Requires: timidity-instruments
%description
WildMidi is a software midi play which has a core softsynth
library that can be use with other applications.
%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_mandir}/man5/%{name}.cfg.5*
#------------------------------------------------------------------------------------------------
%package -n %{libname}
Summary: Library for wildmidi
Group: System/Libraries
%description -n %{libname}
This package contains library files for wildmidi
%files -n %{libname}
%{_libdir}/*.so.%{major}*
#------------------------------------------------------------------------------------------------
%package -n %{develname}
Summary: Development files for wildmidi
Group: Development/Other
Requires: %{libname} = %{version}-%{release}
Provides: %{name}-devel = %{version}-%{release}
%description -n %{develname}
This package contains development files for wildmidi
%files -n %{develname}
%{_libdir}/*.so
%{_includedir}/*.h
%{_libdir}/pkgconfig/wildmidi.pc
%{_mandir}/man3/*.3*
#------------------------------------------------------------------------------------------------
%prep
%setup -qn %{name}-%{name}-%{version}
%apply_patches
%build
%cmake
# parallel build fails, so we don't use it
%make
%install
%makeinstall_std -C build