]>
Commit | Line | Data |
---|---|---|
d97fa3b7 ŁK |
1 | # |
2 | # Conditional build: | |
8571d934 | 3 | %bcond_with context # enable Boost Context [gas+PE combination not supported] |
d97fa3b7 | 4 | # |
28441938 | 5 | %define realname boost |
3ea966e4 JB |
6 | Summary: The Boost C++ Libraries - MinGW32 cross version |
7 | Summary(pl.UTF-8): Biblioteki C++ "Boost" - wersja skrośna dla MinGW32 | |
28441938 | 8 | Name: crossmingw32-%{realname} |
60b3a203 | 9 | Version: 1.59.0 |
670a15d7 | 10 | %define fver %(echo %{version} | tr . _) |
ff36f437 | 11 | Release: 1 |
28441938 | 12 | License: Boost Software License and others |
33145f37 | 13 | Group: Development/Libraries |
3ea966e4 | 14 | Source0: http://downloads.sourceforge.net/boost/%{realname}_%{fver}.tar.bz2 |
60b3a203 JB |
15 | # Source0-md5: 6aa9a5c6a4ca1016edd0ed1178e3cb87 |
16 | # https://github.com/boostorg/serialization/pull/19.patch | |
17 | Patch0: boost-windows-decl.patch | |
18 | Patch1: boost-context-mingw.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 | ||
60b3a203 | 52 | %define abi_tag 1_59 |
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} |
60b3a203 JB |
100 | %patch0 -p1 |
101 | %patch1 -p0 | |
28441938 | 102 | |
b184e0d6 JB |
103 | echo 'using gcc : : %{target}-g++ : ' \ |
104 | '<cxxflags>"%{rpmcxxflags}"' \ | |
105 | '<archiver>%{target}-ar' \ | |
60b3a203 | 106 | '<rc>%{target}-windres ;' >tools/build/src/user-config.jam |
28441938 | 107 | |
8571d934 | 108 | # use Windows Message Compiler, not Midnight Commander |
60b3a203 | 109 | %{__sed} -i -e 's,mc $(MCFLAGS),%{target}-windmc $(MCFLAGS),' tools/build/src/tools/mc.jam |
d97fa3b7 | 110 | |
8571d934 | 111 | %build |
ac7c1080 ŁK |
112 | ./bootstrap.sh --prefix=%{_prefix} |
113 | ./b2 \ | |
3ea966e4 | 114 | -d2 \ |
320e1ccc | 115 | %{_smp_mflags} \ |
0826927f | 116 | -sBZIP2_BINARY=bzip2 \ |
320e1ccc | 117 | --layout=versioned \ |
60b3a203 | 118 | %{!?with_context:--without-context --without-coroutine --without-coroutine2} \ |
0826927f | 119 | --without-python \ |
0826927f | 120 | --without-test \ |
60b3a203 JB |
121 | abi=ms \ |
122 | binary-format=pe \ | |
0826927f JB |
123 | debug-symbols=on \ |
124 | inlining=on \ | |
125 | link=static,shared \ | |
ff36f437 | 126 | target-os=windows \ |
320e1ccc | 127 | threadapi=win32 \ |
0826927f | 128 | threading=multi \ |
320e1ccc JB |
129 | toolset=gcc \ |
130 | variant=release | |
28441938 | 131 | |
28441938 | 132 | %if 0%{!?debug:1} |
3ea966e4 JB |
133 | %{target}-strip stage/lib/*.dll |
134 | %{target}-strip -g -R.comment -R.note stage/lib/*.a | |
28441938 | 135 | %endif |
136 | ||
137 | %install | |
138 | rm -rf $RPM_BUILD_ROOT | |
c66a9041 | 139 | install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_dlldir}} |
28441938 | 140 | |
c66a9041 | 141 | cp -r boost $RPM_BUILD_ROOT%{_includedir} |
3ea966e4 JB |
142 | cp -a stage/lib/*.a $RPM_BUILD_ROOT%{_libdir} |
143 | install stage/lib/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
28441938 | 144 | |
145 | %clean | |
146 | rm -rf $RPM_BUILD_ROOT | |
147 | ||
148 | %files | |
149 | %defattr(644,root,root,755) | |
320e1ccc JB |
150 | %{_libdir}/libboost_atomic-mgw*-mt-%{abi_tag}.dll.a |
151 | %{_libdir}/libboost_chrono-mgw*-mt-%{abi_tag}.dll.a | |
60b3a203 | 152 | %{_libdir}/libboost_container-mgw*-mt-%{abi_tag}.dll.a |
320e1ccc | 153 | %{?with_context:%{_libdir}/libboost_context-mgw*-mt-%{abi_tag}.dll.a} |
8571d934 | 154 | %{?with_context:%{_libdir}/libboost_coroutine-mgw*-mt-%{abi_tag}.dll.a} |
320e1ccc JB |
155 | %{_libdir}/libboost_date_time-mgw*-mt-%{abi_tag}.dll.a |
156 | %{_libdir}/libboost_filesystem-mgw*-mt-%{abi_tag}.dll.a | |
157 | %{_libdir}/libboost_graph-mgw*-mt-%{abi_tag}.dll.a | |
158 | %{_libdir}/libboost_iostreams-mgw*-mt-%{abi_tag}.dll.a | |
159 | %{_libdir}/libboost_locale-mgw*-mt-%{abi_tag}.dll.a | |
8571d934 JB |
160 | %{_libdir}/libboost_log-mgw*-mt-%{abi_tag}.dll.a |
161 | %{_libdir}/libboost_log_setup-mgw*-mt-%{abi_tag}.dll.a | |
320e1ccc JB |
162 | %{_libdir}/libboost_math_c99-mgw*-mt-%{abi_tag}.dll.a |
163 | %{_libdir}/libboost_math_c99f-mgw*-mt-%{abi_tag}.dll.a | |
164 | %{_libdir}/libboost_math_c99l-mgw*-mt-%{abi_tag}.dll.a | |
165 | %{_libdir}/libboost_math_tr1-mgw*-mt-%{abi_tag}.dll.a | |
166 | %{_libdir}/libboost_math_tr1f-mgw*-mt-%{abi_tag}.dll.a | |
167 | %{_libdir}/libboost_math_tr1l-mgw*-mt-%{abi_tag}.dll.a | |
168 | %{_libdir}/libboost_program_options-mgw*-mt-%{abi_tag}.dll.a | |
169 | %{_libdir}/libboost_random-mgw*-mt-%{abi_tag}.dll.a | |
170 | %{_libdir}/libboost_regex-mgw*-mt-%{abi_tag}.dll.a | |
8571d934 | 171 | %{_libdir}/libboost_serialization-mgw*-mt-%{abi_tag}.dll.a |
320e1ccc JB |
172 | %{_libdir}/libboost_signals-mgw*-mt-%{abi_tag}.dll.a |
173 | %{_libdir}/libboost_system-mgw*-mt-%{abi_tag}.dll.a | |
174 | %{_libdir}/libboost_thread_win32-mgw*-mt-%{abi_tag}.dll.a | |
175 | %{_libdir}/libboost_timer-mgw*-mt-%{abi_tag}.dll.a | |
176 | %{_libdir}/libboost_wave-mgw*-mt-%{abi_tag}.dll.a | |
8571d934 | 177 | %{_libdir}/libboost_wserialization-mgw*-mt-%{abi_tag}.dll.a |
320e1ccc JB |
178 | # static-only |
179 | %{_libdir}/libboost_exception-mgw*-mt-%{abi_tag}.a | |
c66a9041 | 180 | %{_includedir}/boost |
321d21fc JB |
181 | |
182 | %files static | |
183 | %defattr(644,root,root,755) | |
320e1ccc JB |
184 | %{_libdir}/libboost_atomic-mgw*-mt-%{abi_tag}.a |
185 | %{_libdir}/libboost_chrono-mgw*-mt-%{abi_tag}.a | |
60b3a203 | 186 | %{_libdir}/libboost_container-mgw*-mt-%{abi_tag}.a |
320e1ccc | 187 | %{?with_context:%{_libdir}/libboost_context-mgw*-mt-%{abi_tag}.a} |
8571d934 | 188 | %{?with_context:%{_libdir}/libboost_coroutine-mgw*-mt-%{abi_tag}.a} |
320e1ccc JB |
189 | %{_libdir}/libboost_date_time-mgw*-mt-%{abi_tag}.a |
190 | %{_libdir}/libboost_filesystem-mgw*-mt-%{abi_tag}.a | |
191 | %{_libdir}/libboost_graph-mgw*-mt-%{abi_tag}.a | |
192 | %{_libdir}/libboost_iostreams-mgw*-mt-%{abi_tag}.a | |
193 | %{_libdir}/libboost_locale-mgw*-mt-%{abi_tag}.a | |
8571d934 JB |
194 | %{_libdir}/libboost_log-mgw*-mt-%{abi_tag}.a |
195 | %{_libdir}/libboost_log_setup-mgw*-mt-%{abi_tag}.a | |
320e1ccc JB |
196 | %{_libdir}/libboost_math_c99-mgw*-mt-%{abi_tag}.a |
197 | %{_libdir}/libboost_math_c99f-mgw*-mt-%{abi_tag}.a | |
198 | %{_libdir}/libboost_math_c99l-mgw*-mt-%{abi_tag}.a | |
199 | %{_libdir}/libboost_math_tr1-mgw*-mt-%{abi_tag}.a | |
200 | %{_libdir}/libboost_math_tr1f-mgw*-mt-%{abi_tag}.a | |
201 | %{_libdir}/libboost_math_tr1l-mgw*-mt-%{abi_tag}.a | |
202 | %{_libdir}/libboost_program_options-mgw*-mt-%{abi_tag}.a | |
203 | %{_libdir}/libboost_random-mgw*-mt-%{abi_tag}.a | |
204 | %{_libdir}/libboost_regex-mgw*-mt-%{abi_tag}.a | |
8571d934 | 205 | %{_libdir}/libboost_serialization-mgw*-mt-%{abi_tag}.a |
320e1ccc JB |
206 | %{_libdir}/libboost_signals-mgw*-mt-%{abi_tag}.a |
207 | %{_libdir}/libboost_system-mgw*-mt-%{abi_tag}.a | |
208 | %{_libdir}/libboost_thread_win32-mgw*-mt-%{abi_tag}.a | |
209 | %{_libdir}/libboost_timer-mgw*-mt-%{abi_tag}.a | |
210 | %{_libdir}/libboost_wave-mgw*-mt-%{abi_tag}.a | |
8571d934 | 211 | %{_libdir}/libboost_wserialization-mgw*-mt-%{abi_tag}.a |
28441938 | 212 | |
213 | %files dll | |
214 | %defattr(644,root,root,755) | |
320e1ccc JB |
215 | %{_dlldir}/libboost_atomic-mgw*-mt-%{abi_tag}.dll |
216 | %{_dlldir}/libboost_chrono-mgw*-mt-%{abi_tag}.dll | |
60b3a203 JB |
217 | %{_dlldir}/libboost_container-mgw*-mt-%{abi_tag}.dll |
218 | %{?with_context:%{_dlldir}/libboost_context-mgw*-mt-%{abi_tag}.dll} | |
219 | %{?with_context:%{_dlldir}/libboost_coroutine-mgw*-mt-%{abi_tag}.dll} | |
320e1ccc JB |
220 | %{_dlldir}/libboost_date_time-mgw*-mt-%{abi_tag}.dll |
221 | %{_dlldir}/libboost_filesystem-mgw*-mt-%{abi_tag}.dll | |
222 | %{_dlldir}/libboost_graph-mgw*-mt-%{abi_tag}.dll | |
223 | %{_dlldir}/libboost_iostreams-mgw*-mt-%{abi_tag}.dll | |
224 | %{_dlldir}/libboost_locale-mgw*-mt-%{abi_tag}.dll | |
8571d934 JB |
225 | %{_dlldir}/libboost_log-mgw*-mt-%{abi_tag}.dll |
226 | %{_dlldir}/libboost_log_setup-mgw*-mt-%{abi_tag}.dll | |
320e1ccc JB |
227 | %{_dlldir}/libboost_math_c99-mgw*-mt-%{abi_tag}.dll |
228 | %{_dlldir}/libboost_math_c99f-mgw*-mt-%{abi_tag}.dll | |
229 | %{_dlldir}/libboost_math_c99l-mgw*-mt-%{abi_tag}.dll | |
230 | %{_dlldir}/libboost_math_tr1-mgw*-mt-%{abi_tag}.dll | |
231 | %{_dlldir}/libboost_math_tr1f-mgw*-mt-%{abi_tag}.dll | |
232 | %{_dlldir}/libboost_math_tr1l-mgw*-mt-%{abi_tag}.dll | |
233 | %{_dlldir}/libboost_program_options-mgw*-mt-%{abi_tag}.dll | |
234 | %{_dlldir}/libboost_random-mgw*-mt-%{abi_tag}.dll | |
235 | %{_dlldir}/libboost_regex-mgw*-mt-%{abi_tag}.dll | |
8571d934 | 236 | %{_dlldir}/libboost_serialization-mgw*-mt-%{abi_tag}.dll |
320e1ccc JB |
237 | %{_dlldir}/libboost_signals-mgw*-mt-%{abi_tag}.dll |
238 | %{_dlldir}/libboost_system-mgw*-mt-%{abi_tag}.dll | |
239 | %{_dlldir}/libboost_thread_win32-mgw*-mt-%{abi_tag}.dll | |
240 | %{_dlldir}/libboost_timer-mgw*-mt-%{abi_tag}.dll | |
241 | %{_dlldir}/libboost_wave-mgw*-mt-%{abi_tag}.dll | |
8571d934 | 242 | %{_dlldir}/libboost_wserialization-mgw*-mt-%{abi_tag}.dll |