-
Notifications
You must be signed in to change notification settings - Fork 5
/
mingwXX-grandorgue.spec
212 lines (189 loc) · 6.63 KB
/
mingwXX-grandorgue.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
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
# GrandOrgue - free pipe organ simulator
#
# Copyright 2006 Milan Digital Audio LLC
# Copyright 2009-2019 GrandOrgue contributors (see AUTHORS)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
%if "X%{?_mingw_bitsize}" == "X"
# Set bitsize either to 32 or 64
%define _mingw_bitsize XX
%endif
%if "X%{?with_asio}" == "X"
# Enable building with ASIO
%define with_asio 0
%endif
%if %{_mingw_bitsize} == 32
%define __strip %{_mingw32_strip}
%define __objdump %{_mingw32_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw32_findrequires}
%define __find_provides %{_mingw32_findprovides}
%define __os_install_post %{_mingw32_install_post}
%define _mingw_cmake %{_mingw32_cmake}
%define _mingw_bindir %{_mingw32_bindir}
%define _mingw_datadir %{_mingw32_datadir}
%else
%define __strip %{_mingw64_strip}
%define __objdump %{_mingw64_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw64_findrequires}
%define __find_provides %{_mingw64_findprovides}
%define __os_install_post %{_mingw64_install_post}
%define _mingw_cmake %{_mingw64_cmake}
%define _mingw_bindir %{_mingw64_bindir}
%define _mingw_datadir %{_mingw64_datadir}
%endif
Summary: Virtual Pipe Organ Software
Name: mingw%{_mingw_bitsize}-grandorgue
BuildRequires: gcc-c++
BuildRequires: cmake >= 3.2.0
BuildRequires: gettext-tools
BuildRequires: docbook-xsl-stylesheets
BuildRequires: po4a
BuildRequires: libxslt-tools
BuildRequires: zip
BuildRequires: mingw%{_mingw_bitsize}-filesystem >= 23
BuildRequires: mingw%{_mingw_bitsize}-cross-gcc
BuildRequires: mingw%{_mingw_bitsize}-cross-gcc-c++
BuildRequires: mingw%{_mingw_bitsize}-cross-binutils
BuildRequires: mingw%{_mingw_bitsize}-cross-pkg-config
BuildRequires: mingw32-cross-nsis
BuildRequires: mingw%{_mingw_bitsize}-wxWidgets-3_0-lang
BuildRequires: mingw%{_mingw_bitsize}-wxWidgets-3_0-devel
BuildRequires: mingw%{_mingw_bitsize}-jack
BuildRequires: mingw%{_mingw_bitsize}-jack-devel
BuildRequires: mingw%{_mingw_bitsize}-libgnurx0
BuildRequires: mingw%{_mingw_bitsize}-libgnurx-devel
BuildRequires: mingw%{_mingw_bitsize}-fftw3
BuildRequires: mingw%{_mingw_bitsize}-fftw3-devel
BuildRequires: mingw%{_mingw_bitsize}-zlib1
BuildRequires: mingw%{_mingw_bitsize}-zlib-devel
BuildRequires: mingw%{_mingw_bitsize}-wavpack
BuildRequires: mingw%{_mingw_bitsize}-wavpack-devel
Requires: mingw%{_mingw_bitsize}-grandorgue-resources
Recommends: mingw%{_mingw_bitsize}-grandorgue-demo
URL: http://sourceforge.net/projects/ourorgan/
License: GPL-2.0+
Group: Productivity/Multimedia/Sound/Midi
Autoreqprov: on
Version: 0.3.1.0
Release: 1
Epoch: 0
%if %{with_asio}
Source10: asio.cpp
Source11: asio.h
Source12: asiodrivers.cpp
Source13: asiodrivers.h
Source14: asiodrvr.h
Source15: asiolist.cpp
Source16: asiolist.h
Source17: asiosys.h
Source18: combase.h
Source19: ginclude.h
Source20: iasiodrv.h
%endif
Source: grandorgue-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Recommends: mingw%{_mingw_bitsize}-grandorgue-demo
%description
GrandOrgue is a virtual pipe organ sample player application supporting
a HW1 compatible file format.
This package contains the mingw%{_mingw_bitsize} build.
%package demo
Summary: GrandOrgue demo sampleset
Group: Productivity/Multimedia/Sound/Midi
%description demo
This package contains the demo sampleset for GrandOrgue
%package resources
Summary: GrandOrgue resource files
Group: Productivity/Multimedia/Sound/Midi
%description resources
This package contains the various resource files for GrandOrgue.
%package installer
Summary: GrandOrgue installer
Group: Productivity/Multimedia/Sound/Midi
%description installer
GrandOrgue is a virtual pipe organ sample player application supporting
a HW1 compatible file format.
This package contains the mingw%{_mingw_bitsize} installer.
%prep
%setup -q -n grandorgue-%{version}
%if %{with_asio}
cp %{S:10} ext/rt/asio/include
cp %{S:11} ext/rt/asio/include
cp %{S:12} ext/rt/asio/include
cp %{S:13} ext/rt/asio/include
cp %{S:14} ext/rt/asio/include
cp %{S:15} ext/rt/asio/include
cp %{S:16} ext/rt/asio/include
cp %{S:17} ext/rt/asio/include
cp %{S:18} ext/rt/asio/include
cp %{S:19} ext/rt/asio/include
cp %{S:20} ext/rt/asio/include
%define ASIO ON
%else
%define ASIO OFF
%endif
%build
%{__mkdir} build-tools
cd build-tools
cmake ../src/build
make
cd ..
%define gooptions -DRTAUDIO_USE_ASIO=%ASIO -DIMPORT_EXECUTABLES=../build-tools/ImportExecutables.cmake -DVERSION_REVISION="`echo %{version}|cut -d. -f4`" -DMSYS=1 -DSTATIC=1
%define gobuildname GrandOrgue-%{version}-win%{_mingw_bitsize}
%define goinstallname GrandOrgue-%{version}-%{release}-win%{_mingw_bitsize}
%define goinstall %{goinstallname}.exe
%{__mkdir} build-mingw
cd build-mingw
%{_mingw_cmake} .. -DINSTALL_DEPEND=ON %{gooptions}
make %{?_smp_mflags} VERBOSE=1 package
%{_mingw_cmake} .. -DINSTALL_DEPEND=OFF %{gooptions}
make %{?_smp_mflags} VERBOSE=1
cd ..
%install
rm -rf %{buildroot}
cd build-mingw
make install DESTDIR=%{buildroot}
cd ..
mkdir -p %{buildroot}
%{__cp} build-mingw/%{gobuildname}.exe %{buildroot}/%{_mingw_bindir}/%{goinstall}
if [ -d %{_topdir}/OTHER ]; then
%{__cp} %{buildroot}/%{_mingw_bindir}/%{goinstall} %{_topdir}/OTHER
%{__cp} build-mingw/%{gobuildname}.tar.gz %{_topdir}/OTHER/%{goinstallname}.tar.gz
fi
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_mingw_bindir}/*[A-Za-z].exe
%{_mingw_bindir}/libGrandOrgue*.dll
%files resources
%defattr(-,root,root)
%{_mingw_datadir}/locale
%dir %{_mingw_datadir}/GrandOrgue
%{_mingw_datadir}/GrandOrgue/help
%{_mingw_datadir}/GrandOrgue/sounds
%dir %{_mingw_datadir}/GrandOrgue/packages
%files demo
%defattr(-,root,root)
%{_mingw_datadir}/GrandOrgue/packages/*.orgue
%files installer
%defattr(-,root,root)
%{_mingw_bindir}/%{goinstall}
%changelog
* Tue Nov 15 2011 - martin.koegler@chello.at
- creation