]>
Commit | Line | Data |
---|---|---|
d97fa3b7 ŁK |
1 | # |
2 | # Conditional build: | |
2f2b715e JB |
3 | %bcond_without context # Boost Context and dependent modules [gas+PE not supported officially by upstream] |
4 | %bcond_without serialization # Boost Serialization | |
5 | %bcond_without test # Boost Test | |
d97fa3b7 | 6 | # |
28441938 | 7 | %define realname boost |
3ea966e4 JB |
8 | Summary: The Boost C++ Libraries - MinGW32 cross version |
9 | Summary(pl.UTF-8): Biblioteki C++ "Boost" - wersja skrośna dla MinGW32 | |
28441938 | 10 | Name: crossmingw32-%{realname} |
9f1e7576 | 11 | Version: 1.73.0 |
670a15d7 | 12 | %define fver %(echo %{version} | tr . _) |
ff36f437 | 13 | Release: 1 |
28441938 | 14 | License: Boost Software License and others |
33145f37 | 15 | Group: Development/Libraries |
fb9b3a9b | 16 | Source0: http://dl.bintray.com/boostorg/release/%{version}/source/%{realname}_%{fver}.tar.bz2 |
9f1e7576 JB |
17 | # Source0-md5: 9273c8c4576423562bbe84574b07b2bd |
18 | Patch0: boost-mingw-lld.patch | |
28441938 | 19 | URL: http://www.boost.org/ |
a72e6f01 | 20 | BuildRequires: crossmingw32-bzip2 |
28441938 | 21 | BuildRequires: crossmingw32-gcc-c++ |
22 | BuildRequires: crossmingw32-runtime | |
23 | BuildRequires: crossmingw32-w32api | |
a72e6f01 | 24 | BuildRequires: crossmingw32-zlib |
a72e6f01 ŁK |
25 | Requires: crossmingw32-bzip2 |
26 | Requires: crossmingw32-runtime | |
27 | Requires: crossmingw32-zlib | |
28441938 | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %define no_install_post_strip 1 | |
31 | ||
32 | %define target i386-mingw32 | |
33 | %define target_platform i386-pc-mingw32 | |
c66a9041 JB |
34 | |
35 | %define _sysprefix /usr | |
36 | %define _prefix %{_sysprefix}/%{target} | |
37 | %define _libdir %{_prefix}/lib | |
38 | %define _dlldir /usr/share/wine/windows/system | |
28441938 | 39 | |
40 | %define __cc %{target}-gcc | |
41 | %define __cxx %{target}-g++ | |
42 | ||
c66a9041 JB |
43 | %ifnarch %{ix86} |
44 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
28441938 | 45 | %define optflags -O2 |
46 | %endif | |
320e1ccc JB |
47 | # -z options are invalid for mingw linker, most of -f options are Linux-specific |
48 | %define filterout_ld -Wl,-z,.* | |
49 | %define filterout_c -f[-a-z0-9=]* | |
50 | %define filterout_cxx -f[-a-z0-9=]* | |
51 | ||
9f1e7576 | 52 | %define abi_tag mgw*-mt-x32-1_73 |
28441938 | 53 | |
54 | %description | |
55 | The Boost web site provides free peer-reviewed portable C++ source | |
56 | libraries. The emphasis is on libraries which work well with the C++ | |
57 | Standard Library. One goal is to establish "existing practice" and | |
58 | provide reference implementations so that the Boost libraries are | |
59 | suitable for eventual standardization. Some of the libraries have | |
60 | already been proposed for inclusion in the C++ Standards Committee's | |
61 | upcoming C++ Standard Library Technical Report. | |
62 | ||
241a7e06 | 63 | %description -l pl.UTF-8 |
28441938 | 64 | Strona http://www.boost.org/ dostarcza darmowe biblioteki C++ wraz z |
241a7e06 JR |
65 | kodem źródłowym. Nacisk położono na biblioteki, które dobrze |
66 | współpracują ze standardową biblioteką C++. Celem jest ustanowienie | |
67 | "istniejącej praktyki" i dostarczenie implementacji, tak że biblioteki | |
68 | "Boost" nadają się do ewentualnej standaryzacji. Niektóre z bibliotek | |
69 | już zostały zgłoszone do komitetu standaryzacyjnego C++ w nadchodzącym | |
05fa162e | 70 | Raporcie Technicznym Biblioteki Standardowej C++. |
28441938 | 71 | |
321d21fc | 72 | %package static |
3ea966e4 JB |
73 | Summary: Static Boost libraries (cross MinGW32 version) |
74 | Summary(pl.UTF-8): Statyczne biblioteki Boost (wersja skrośna MinGW32) | |
321d21fc JB |
75 | Group: Development/Libraries |
76 | Requires: %{name} = %{version}-%{release} | |
77 | ||
78 | %description static | |
3ea966e4 | 79 | Static Boost libraries (cross MinGW32 version). |
321d21fc JB |
80 | |
81 | %description static -l pl.UTF-8 | |
3ea966e4 | 82 | Statyczne biblioteki Boost (wersja skrośna MinGW32). |
321d21fc | 83 | |
28441938 | 84 | %package dll |
c66a9041 JB |
85 | Summary: Boost - DLL libraries for Windows |
86 | Summary(pl.UTF-8): Boost - biblioteki DLL dla Windows | |
28441938 | 87 | Group: Applications/Emulators |
670a15d7 JB |
88 | Requires: crossmingw32-bzip2-dll |
89 | Requires: crossmingw32-zlib-dll | |
90 | Requires: wine | |
28441938 | 91 | |
92 | %description dll | |
c66a9041 | 93 | Boost - DLL libraries for Windows. |
28441938 | 94 | |
241a7e06 | 95 | %description dll -l pl.UTF-8 |
c66a9041 | 96 | Boost - biblioteki DLL dla Windows. |
28441938 | 97 | |
98 | %prep | |
670a15d7 | 99 | %setup -q -n %{realname}_%{fver} |
9f1e7576 JB |
100 | cd libs/context |
101 | %patch0 -R -p1 | |
102 | cd ../.. | |
28441938 | 103 | |
b184e0d6 JB |
104 | echo 'using gcc : : %{target}-g++ : ' \ |
105 | '<cxxflags>"%{rpmcxxflags}"' \ | |
106 | '<archiver>%{target}-ar' \ | |
60b3a203 | 107 | '<rc>%{target}-windres ;' >tools/build/src/user-config.jam |
28441938 | 108 | |
8571d934 | 109 | # use Windows Message Compiler, not Midnight Commander |
60b3a203 | 110 | %{__sed} -i -e 's,mc $(MCFLAGS),%{target}-windmc $(MCFLAGS),' tools/build/src/tools/mc.jam |
d97fa3b7 | 111 | |
8571d934 | 112 | %build |
ac7c1080 ŁK |
113 | ./bootstrap.sh --prefix=%{_prefix} |
114 | ./b2 \ | |
3ea966e4 | 115 | -d2 \ |
320e1ccc | 116 | %{_smp_mflags} \ |
0826927f | 117 | -sBZIP2_BINARY=bzip2 \ |
320e1ccc | 118 | --layout=versioned \ |
60b3a203 | 119 | %{!?with_context:--without-context --without-coroutine --without-coroutine2} \ |
0826927f | 120 | --without-python \ |
e02b91c6 | 121 | %{!?with_serialization:--without-serialization} \ |
2f2b715e | 122 | %{!?with_test:--without-test} \ |
60b3a203 | 123 | abi=ms \ |
2f2b715e | 124 | address-model=32 \ |
60b3a203 | 125 | binary-format=pe \ |
0826927f JB |
126 | debug-symbols=on \ |
127 | inlining=on \ | |
128 | link=static,shared \ | |
ff36f437 | 129 | target-os=windows \ |
320e1ccc | 130 | threadapi=win32 \ |
0826927f | 131 | threading=multi \ |
320e1ccc JB |
132 | toolset=gcc \ |
133 | variant=release | |
28441938 | 134 | |
28441938 | 135 | %if 0%{!?debug:1} |
3ea966e4 JB |
136 | %{target}-strip stage/lib/*.dll |
137 | %{target}-strip -g -R.comment -R.note stage/lib/*.a | |
28441938 | 138 | %endif |
139 | ||
140 | %install | |
141 | rm -rf $RPM_BUILD_ROOT | |
c66a9041 | 142 | install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_dlldir}} |
28441938 | 143 | |
c66a9041 | 144 | cp -r boost $RPM_BUILD_ROOT%{_includedir} |
3ea966e4 JB |
145 | cp -a stage/lib/*.a $RPM_BUILD_ROOT%{_libdir} |
146 | install stage/lib/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
28441938 | 147 | |
148 | %clean | |
149 | rm -rf $RPM_BUILD_ROOT | |
150 | ||
151 | %files | |
152 | %defattr(644,root,root,755) | |
2f2b715e JB |
153 | %{_libdir}/libboost_atomic-%{abi_tag}.dll.a |
154 | %{_libdir}/libboost_chrono-%{abi_tag}.dll.a | |
155 | %{_libdir}/libboost_container-%{abi_tag}.dll.a | |
156 | %{?with_context:%{_libdir}/libboost_context-%{abi_tag}.dll.a} | |
157 | %{_libdir}/libboost_contract-%{abi_tag}.dll.a | |
158 | %{?with_context:%{_libdir}/libboost_coroutine-%{abi_tag}.dll.a} | |
159 | %{_libdir}/libboost_date_time-%{abi_tag}.dll.a | |
160 | %{_libdir}/libboost_filesystem-%{abi_tag}.dll.a | |
161 | %{_libdir}/libboost_graph-%{abi_tag}.dll.a | |
162 | %{_libdir}/libboost_iostreams-%{abi_tag}.dll.a | |
163 | %{_libdir}/libboost_locale-%{abi_tag}.dll.a | |
164 | %{_libdir}/libboost_log-%{abi_tag}.dll.a | |
165 | %{_libdir}/libboost_log_setup-%{abi_tag}.dll.a | |
166 | %{_libdir}/libboost_math_c99-%{abi_tag}.dll.a | |
167 | %{_libdir}/libboost_math_c99f-%{abi_tag}.dll.a | |
168 | %{_libdir}/libboost_math_c99l-%{abi_tag}.dll.a | |
169 | %{_libdir}/libboost_math_tr1-%{abi_tag}.dll.a | |
170 | %{_libdir}/libboost_math_tr1f-%{abi_tag}.dll.a | |
171 | %{_libdir}/libboost_math_tr1l-%{abi_tag}.dll.a | |
9f1e7576 | 172 | %{_libdir}/libboost_nowide-%{abi_tag}.dll.a |
2f2b715e JB |
173 | %{?with_test:%{_libdir}/libboost_prg_exec_monitor-%{abi_tag}.dll.a} |
174 | %{_libdir}/libboost_program_options-%{abi_tag}.dll.a | |
175 | %{_libdir}/libboost_random-%{abi_tag}.dll.a | |
176 | %{_libdir}/libboost_regex-%{abi_tag}.dll.a | |
177 | %{?with_serialization:%{_libdir}/libboost_serialization-%{abi_tag}.dll.a} | |
2f2b715e JB |
178 | %{_libdir}/libboost_stacktrace_basic-%{abi_tag}.dll.a |
179 | %{_libdir}/libboost_stacktrace_noop-%{abi_tag}.dll.a | |
180 | %{_libdir}/libboost_system-%{abi_tag}.dll.a | |
181 | %{?with_test:%{_libdir}/libboost_test_exec_monitor-%{abi_tag}.a} | |
182 | %{_libdir}/libboost_thread-%{abi_tag}.dll.a | |
183 | %{_libdir}/libboost_timer-%{abi_tag}.dll.a | |
184 | %{_libdir}/libboost_type_erasure-%{abi_tag}.dll.a | |
185 | %{?with_test:%{_libdir}/libboost_unit_test_framework-%{abi_tag}.dll.a} | |
186 | %{_libdir}/libboost_wave-%{abi_tag}.dll.a | |
187 | %{?with_serialization:%{_libdir}/libboost_wserialization-%{abi_tag}.dll.a} | |
320e1ccc | 188 | # static-only |
2f2b715e | 189 | %{_libdir}/libboost_exception-%{abi_tag}.a |
c66a9041 | 190 | %{_includedir}/boost |
321d21fc JB |
191 | |
192 | %files static | |
193 | %defattr(644,root,root,755) | |
2f2b715e JB |
194 | %{_libdir}/libboost_atomic-%{abi_tag}.a |
195 | %{_libdir}/libboost_chrono-%{abi_tag}.a | |
196 | %{_libdir}/libboost_container-%{abi_tag}.a | |
197 | %{?with_context:%{_libdir}/libboost_context-%{abi_tag}.a} | |
198 | %{_libdir}/libboost_contract-%{abi_tag}.a | |
199 | %{?with_context:%{_libdir}/libboost_coroutine-%{abi_tag}.a} | |
200 | %{_libdir}/libboost_date_time-%{abi_tag}.a | |
201 | %{_libdir}/libboost_filesystem-%{abi_tag}.a | |
202 | %{_libdir}/libboost_graph-%{abi_tag}.a | |
203 | %{_libdir}/libboost_iostreams-%{abi_tag}.a | |
204 | %{_libdir}/libboost_locale-%{abi_tag}.a | |
205 | %{_libdir}/libboost_log-%{abi_tag}.a | |
206 | %{_libdir}/libboost_log_setup-%{abi_tag}.a | |
207 | %{_libdir}/libboost_math_c99-%{abi_tag}.a | |
208 | %{_libdir}/libboost_math_c99f-%{abi_tag}.a | |
209 | %{_libdir}/libboost_math_c99l-%{abi_tag}.a | |
210 | %{_libdir}/libboost_math_tr1-%{abi_tag}.a | |
211 | %{_libdir}/libboost_math_tr1f-%{abi_tag}.a | |
212 | %{_libdir}/libboost_math_tr1l-%{abi_tag}.a | |
9f1e7576 | 213 | %{_libdir}/libboost_nowide-%{abi_tag}.a |
2f2b715e JB |
214 | %{?with_test:%{_libdir}/libboost_prg_exec_monitor-%{abi_tag}.a} |
215 | %{_libdir}/libboost_program_options-%{abi_tag}.a | |
216 | %{_libdir}/libboost_random-%{abi_tag}.a | |
217 | %{_libdir}/libboost_regex-%{abi_tag}.a | |
218 | %{?with_serialization:%{_libdir}/libboost_serialization-%{abi_tag}.a} | |
2f2b715e JB |
219 | %{_libdir}/libboost_stacktrace_basic-%{abi_tag}.a |
220 | %{_libdir}/libboost_stacktrace_noop-%{abi_tag}.a | |
221 | %{_libdir}/libboost_system-%{abi_tag}.a | |
222 | %{_libdir}/libboost_thread-%{abi_tag}.a | |
223 | %{_libdir}/libboost_timer-%{abi_tag}.a | |
224 | %{_libdir}/libboost_type_erasure-%{abi_tag}.a | |
225 | %{?with_test:%{_libdir}/libboost_unit_test_framework-%{abi_tag}.a} | |
226 | %{_libdir}/libboost_wave-%{abi_tag}.a | |
227 | %{?with_serialization:%{_libdir}/libboost_wserialization-%{abi_tag}.a} | |
28441938 | 228 | |
229 | %files dll | |
230 | %defattr(644,root,root,755) | |
2f2b715e JB |
231 | %{_dlldir}/libboost_atomic-%{abi_tag}.dll |
232 | %{_dlldir}/libboost_chrono-%{abi_tag}.dll | |
233 | %{_dlldir}/libboost_container-%{abi_tag}.dll | |
234 | %{?with_context:%{_dlldir}/libboost_context-%{abi_tag}.dll} | |
235 | %{_dlldir}/libboost_contract-%{abi_tag}.dll | |
236 | %{?with_context:%{_dlldir}/libboost_coroutine-%{abi_tag}.dll} | |
237 | %{_dlldir}/libboost_date_time-%{abi_tag}.dll | |
238 | %{_dlldir}/libboost_filesystem-%{abi_tag}.dll | |
239 | %{_dlldir}/libboost_graph-%{abi_tag}.dll | |
240 | %{_dlldir}/libboost_iostreams-%{abi_tag}.dll | |
241 | %{_dlldir}/libboost_locale-%{abi_tag}.dll | |
242 | %{_dlldir}/libboost_log-%{abi_tag}.dll | |
243 | %{_dlldir}/libboost_log_setup-%{abi_tag}.dll | |
244 | %{_dlldir}/libboost_math_c99-%{abi_tag}.dll | |
245 | %{_dlldir}/libboost_math_c99f-%{abi_tag}.dll | |
246 | %{_dlldir}/libboost_math_c99l-%{abi_tag}.dll | |
247 | %{_dlldir}/libboost_math_tr1-%{abi_tag}.dll | |
248 | %{_dlldir}/libboost_math_tr1f-%{abi_tag}.dll | |
249 | %{_dlldir}/libboost_math_tr1l-%{abi_tag}.dll | |
9f1e7576 | 250 | %{_dlldir}/libboost_nowide-%{abi_tag}.dll |
2f2b715e JB |
251 | %{?with_test:%{_dlldir}/libboost_prg_exec_monitor-%{abi_tag}.dll} |
252 | %{_dlldir}/libboost_program_options-%{abi_tag}.dll | |
253 | %{_dlldir}/libboost_random-%{abi_tag}.dll | |
254 | %{_dlldir}/libboost_regex-%{abi_tag}.dll | |
255 | %{?with_serialization:%{_dlldir}/libboost_serialization-%{abi_tag}.dll} | |
2f2b715e JB |
256 | %{_dlldir}/libboost_stacktrace_basic-%{abi_tag}.dll |
257 | %{_dlldir}/libboost_stacktrace_noop-%{abi_tag}.dll | |
258 | %{_dlldir}/libboost_system-%{abi_tag}.dll | |
259 | %{_dlldir}/libboost_thread-%{abi_tag}.dll | |
260 | %{_dlldir}/libboost_timer-%{abi_tag}.dll | |
261 | %{_dlldir}/libboost_type_erasure-%{abi_tag}.dll | |
262 | %{?with_test:%{_dlldir}/libboost_unit_test_framework-%{abi_tag}.dll} | |
263 | %{_dlldir}/libboost_wave-%{abi_tag}.dll | |
264 | %{?with_serialization:%{_dlldir}/libboost_wserialization-%{abi_tag}.dll} |