]>
Commit | Line | Data |
---|---|---|
c6874538 | 1 | # |
bde731a5 | 2 | # TODO: |
09e2803f PS |
3 | # - think about building MPI. |
4 | # - split shared libs from core package into -iostreams/-serialization. | |
bde731a5 | 5 | # |
c6874538 | 6 | # Conditional build: |
65d4777a | 7 | %bcond_without python # without boost-python support |
6d61ae01 | 8 | |
8b623265 | 9 | %define fver %(echo %{version} | tr . _) |
c6874538 | 10 | Summary: The Boost C++ Libraries |
aa63c3d9 | 11 | Summary(pl.UTF-8): Biblioteki C++ "Boost" |
49f48a3b | 12 | Name: boost |
f1235ec7 | 13 | Version: 1.55.0 |
6d61ae01 | 14 | Release: 2 |
db639b8e | 15 | License: Boost Software License and others |
c6874538 | 16 | Group: Libraries |
8b623265 | 17 | Source0: http://downloads.sourceforge.net/boost/%{name}_%{fver}.tar.bz2 |
f1235ec7 | 18 | # Source0-md5: d6eef4b4cacb2183f2bf265a5a03a354 |
8b623265 | 19 | Patch0: %{name}-link.patch |
647f39b2 | 20 | # FC Patches: |
647f39b2 | 21 | # https://svn.boost.org/trac/boost/ticket/8844 |
6d61ae01 | 22 | Patch201: %{name}-1.54.0-bind-static_assert.patch |
647f39b2 | 23 | # https://svn.boost.org/trac/boost/ticket/8847 |
6d61ae01 | 24 | Patch202: %{name}-1.54.0-concept-unused_typedef.patch |
647f39b2 | 25 | # https://svn.boost.org/trac/boost/ticket/5637 |
6d61ae01 | 26 | Patch203: %{name}-1.54.0-mpl-print.patch |
647f39b2 | 27 | # https://svn.boost.org/trac/boost/ticket/8859 |
6d61ae01 | 28 | Patch204: %{name}-1.54.0-static_warning-unused_typedef.patch |
647f39b2 | 29 | # https://svn.boost.org/trac/boost/ticket/8853 |
6d61ae01 | 30 | Patch207: %{name}-1.54.0-tuple-unused_typedef.patch |
647f39b2 | 31 | # https://svn.boost.org/trac/boost/ticket/8854 |
6d61ae01 | 32 | Patch208: %{name}-1.54.0-random-unused_typedef.patch |
647f39b2 | 33 | # https://svn.boost.org/trac/boost/ticket/8856 |
6d61ae01 ER |
34 | Patch209: %{name}-1.54.0-date_time-unused_typedef.patch |
35 | Patch210: %{name}-1.54.0-date_time-unused_typedef-2.patch | |
647f39b2 | 36 | # https://svn.boost.org/trac/boost/ticket/8870 |
6d61ae01 ER |
37 | Patch211: %{name}-1.54.0-spirit-unused_typedef.patch |
38 | Patch212: %{name}-1.54.0-spirit-unused_typedef-2.patch | |
647f39b2 | 39 | # https://svn.boost.org/trac/boost/ticket/8871 |
6d61ae01 | 40 | Patch213: %{name}-1.54.0-numeric-unused_typedef.patch |
647f39b2 | 41 | # https://svn.boost.org/trac/boost/ticket/8878 |
6d61ae01 | 42 | Patch218: %{name}-1.54.0-locale-unused_typedef.patch |
647f39b2 | 43 | # https://svn.boost.org/trac/boost/ticket/8879 |
6d61ae01 | 44 | Patch219: %{name}-1.54.0-property_tree-unused_typedef.patch |
647f39b2 | 45 | # https://svn.boost.org/trac/boost/ticket/8881 |
6d61ae01 | 46 | Patch221: %{name}-1.54.0-mpi-unused_typedef.patch |
647f39b2 | 47 | # https://svn.boost.org/trac/boost/ticket/8888 |
6d61ae01 | 48 | Patch222: %{name}-1.54.0-python-unused_typedef.patch |
647f39b2 | 49 | # https://svn.boost.org/trac/boost/ticket/9038 |
6d61ae01 | 50 | Patch224: %{name}-1.54.0-pool-test_linking.patch |
49f48a3b | 51 | URL: http://www.boost.org/ |
afbf1450 | 52 | BuildRequires: bzip2-devel |
09e2803f | 53 | BuildRequires: expat-devel |
7c12a8f9 | 54 | BuildRequires: libicu-devel |
49f48a3b | 55 | BuildRequires: libstdc++-devel |
30964b71 | 56 | BuildRequires: perl-base |
6725319f | 57 | %{?with_python:BuildRequires: python-devel >= 2.2} |
dbf04d57 | 58 | BuildRequires: rpm-pythonprov |
afbf1450 | 59 | BuildRequires: zlib-devel |
c6874538 | 60 | BuildConflicts: gcc = 5:3.3.1 |
49f48a3b | 61 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c6874538 | 62 | |
647f39b2 AM |
63 | %define specflags -DBOOST_IOSTREAMS_USE_DEPRECATED=1 |
64 | ||
c6874538 | 65 | %description |
66 | The Boost web site provides free peer-reviewed portable C++ source | |
67 | libraries. The emphasis is on libraries which work well with the C++ | |
68 | Standard Library. One goal is to establish "existing practice" and | |
69 | provide reference implementations so that the Boost libraries are | |
70 | suitable for eventual standardization. Some of the libraries have | |
71 | already been proposed for inclusion in the C++ Standards Committee's | |
72 | upcoming C++ Standard Library Technical Report. | |
73 | ||
4c35df9e | 74 | %description -l pl.UTF-8 |
49f48a3b | 75 | Strona http://www.boost.org/ dostarcza darmowe biblioteki C++ wraz z |
4c35df9e JR |
76 | kodem źródłowym. Nacisk położono na biblioteki, które dobrze |
77 | współpracują ze standardową biblioteką C++. Celem jest ustanowienie | |
78 | "istniejącej praktyki" i dostarczenie implementacji, tak że biblioteki | |
79 | "Boost" nadają się do ewentualnej standaryzacji. Niektóre z bibliotek | |
80 | już zostały zgłoszone do komitetu standaryzacyjnego C++ w nadchodzącym | |
2b583775 | 81 | Raporcie Technicznym Biblioteki Standardowej C++. |
c6874538 | 82 | |
49f48a3b | 83 | %package devel |
000cd675 | 84 | Summary: Boost C++ development headers |
aa63c3d9 | 85 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek C++ Boost |
49f48a3b | 86 | Group: Development/Libraries |
000cd675 | 87 | Requires: %{name} = %{version}-%{release} |
e5cd13f8 JB |
88 | Requires: %{name}-chrono = %{version}-%{release} |
89 | Requires: %{name}-context = %{version}-%{release} | |
09e2803f PS |
90 | Requires: %{name}-date_time = %{version}-%{release} |
91 | Requires: %{name}-filesystem = %{version}-%{release} | |
92 | Requires: %{name}-graph = %{version}-%{release} | |
e5cd13f8 | 93 | Requires: %{name}-locale = %{version}-%{release} |
09e2803f PS |
94 | Requires: %{name}-program_options = %{version}-%{release} |
95 | Requires: %{name}-regex = %{version}-%{release} | |
96 | Requires: %{name}-signals = %{version}-%{release} | |
69912bfb | 97 | Requires: %{name}-system = %{version}-%{release} |
09e2803f PS |
98 | Requires: %{name}-test = %{version}-%{release} |
99 | Requires: %{name}-thread = %{version}-%{release} | |
e5cd13f8 | 100 | Requires: %{name}-timer = %{version}-%{release} |
09e2803f | 101 | Requires: %{name}-wave = %{version}-%{release} |
49f48a3b | 102 | Requires: libstdc++-devel |
09e2803f PS |
103 | Obsoletes: boost-any-devel |
104 | Obsoletes: boost-array-devel | |
875f51e3 | 105 | Obsoletes: boost-asio |
09e2803f | 106 | Obsoletes: boost-bind-devel |
05b0e240 | 107 | Obsoletes: boost-call_traits-devel |
09e2803f | 108 | Obsoletes: boost-compatibility-devel |
470f1aae | 109 | Obsoletes: boost-compose-devel |
09e2803f | 110 | Obsoletes: boost-compressed_pair-devel |
89fd45a2 JB |
111 | Obsoletes: boost-concept_check-devel |
112 | Obsoletes: boost-conversion-devel | |
09e2803f PS |
113 | Obsoletes: boost-crc-devel |
114 | Obsoletes: boost-date_time-devel | |
115 | Obsoletes: boost-filesystem-devel | |
116 | Obsoletes: boost-graph-devel | |
117 | Obsoletes: boost-mem_fn-devel | |
89fd45a2 JB |
118 | Obsoletes: boost-mpl-devel |
119 | Obsoletes: boost-preprocessor-devel | |
09e2803f | 120 | Obsoletes: boost-program_options-devel |
7c797e1a | 121 | Obsoletes: boost-ref-devel |
09e2803f PS |
122 | Obsoletes: boost-regex-devel |
123 | Obsoletes: boost-signals-devel | |
124 | Obsoletes: boost-spirit-devel | |
125 | Obsoletes: boost-statechart-devel | |
89fd45a2 | 126 | Obsoletes: boost-static_assert-devel |
09e2803f PS |
127 | Obsoletes: boost-test-devel |
128 | Obsoletes: boost-thread-devel | |
129 | Obsoletes: boost-tr1-devel | |
89fd45a2 | 130 | Obsoletes: boost-type_traits-devel |
09e2803f PS |
131 | Obsoletes: boost-typeof-devel |
132 | Obsoletes: boost-uBLAS-devel | |
89fd45a2 | 133 | Obsoletes: boost-utility-devel |
09e2803f PS |
134 | Obsoletes: boost-wave-devel |
135 | Obsoletes: boost-xpressive-devel | |
49f48a3b JB |
136 | |
137 | %description devel | |
000cd675 | 138 | Header files for the Boost C++ libraries. |
49f48a3b | 139 | |
4c35df9e JR |
140 | %description devel -l pl.UTF-8 |
141 | Pliki nagłówkowe bibliotek C++ Boost. | |
000cd675 JB |
142 | |
143 | %package static | |
144 | Summary: Static version of base Boost C++ libraries | |
aa63c3d9 | 145 | Summary(pl.UTF-8): Statyczne wersje podstawowych bibliotek C++ Boost |
000cd675 JB |
146 | Group: Development/Libraries |
147 | Requires: %{name}-devel = %{version}-%{release} | |
09e2803f | 148 | Obsoletes: boost-static < 1.33 |
000cd675 JB |
149 | |
150 | %description static | |
151 | Static version of base Boost C++ libraries. | |
152 | ||
4c35df9e | 153 | %description static -l pl.UTF-8 |
000cd675 | 154 | Statyczne wersje podstawowych bibliotek C++ Boost. |
49f48a3b | 155 | |
c6874538 | 156 | %package python |
157 | Summary: Boost.Python library | |
aa63c3d9 | 158 | Summary(pl.UTF-8): biblioteka Boost.Python |
c6874538 | 159 | Group: Libraries |
6d61ae01 | 160 | Requires: python |
c6874538 | 161 | |
162 | %description python | |
163 | Use the Boost Python Library to quickly and easily export a C++ | |
164 | library to Python such that the Python interface is very similar to | |
165 | the C++ interface. It is designed to be minimally intrusive on your | |
166 | C++ design. In most cases, you should not have to alter your C++ | |
167 | classes in any way in order to use them with Boost.Python. The system | |
168 | should simply ``reflect'' your C++ classes and functions into Python. | |
169 | ||
4c35df9e JR |
170 | %description python -l pl.UTF-8 |
171 | Biblioteka Boost Python służy do szybkiego i prostego eksportu | |
172 | biblioteki C++ do Pythona, tak że interfejs Pythona jest bardzo | |
173 | podobny do interfejsu C++. Biblioteka jest zaprojektowana tak, żeby | |
174 | narzucać jak najmniej wymagań dotyczących konstrukcjii C++. W | |
175 | większości przypadków nie trzeba w ogóle zmieniać własnych klas C++, | |
176 | żeby używać ich z Boost.Python. System powinien po prostu ,,odbić'' | |
66ac0d93 | 177 | klasy C++ i funkcje do Pythona. |
c6874538 | 178 | |
179 | %package python-devel | |
180 | Summary: Boost.Python development headers | |
aa63c3d9 | 181 | Summary(pl.UTF-8): Pliki nagłówkowe dla Boost.Python |
49f48a3b JB |
182 | Group: Development/Libraries |
183 | Requires: %{name}-devel = %{version}-%{release} | |
6725319f | 184 | Requires: %{name}-python = %{version}-%{release} |
c6874538 | 185 | |
186 | %description python-devel | |
66ac0d93 | 187 | Headers for the Boost.Python library. |
c6874538 | 188 | |
4c35df9e JR |
189 | %description python-devel -l pl.UTF-8 |
190 | Pliki nagłówkowe dla biblioteki Boost.Python. | |
c6874538 | 191 | |
6725319f JB |
192 | %package python-static |
193 | Summary: Static version of Boost.Python library | |
aa63c3d9 | 194 | Summary(pl.UTF-8): Statyczna wersja biblioteki Boost.Python |
6725319f JB |
195 | Group: Development/Libraries |
196 | Requires: %{name}-python-devel = %{version}-%{release} | |
197 | ||
198 | %description python-static | |
199 | Static version of Boost.Python library. | |
200 | ||
4c35df9e | 201 | %description python-static -l pl.UTF-8 |
6725319f JB |
202 | Statyczna wersja biblioteki Boost.Python. |
203 | ||
17e8d8c2 ŁK |
204 | %package chrono |
205 | Summary: Useful time utilities | |
d7f6b47a | 206 | Summary(pl.UTF-8): Przydatne funkcje związane z czasem |
17e8d8c2 ŁK |
207 | Group: Libraries |
208 | Obsoletes: boost < 1.33 | |
209 | ||
210 | %description chrono | |
211 | Useful time utilities. | |
212 | ||
d7f6b47a JB |
213 | %description chrono -l pl.UTF-8 |
214 | Przydatne funkcje związane z czasem. | |
215 | ||
e5cd13f8 JB |
216 | %package context |
217 | Summary: Boost.Context - context switching library | |
218 | Summary(pl.UTF-8): Boost.Context - biblioteka do zmiany kontekstu | |
219 | Group: Libraries | |
220 | ||
221 | %description context | |
222 | Boost.Context - context switching library, providing a sort of | |
223 | cooperative multitasking on a single thread. | |
224 | ||
225 | %description context -l pl.UTF-8 | |
226 | Boost.Context - biblioteka do zmiany kontekstu, zapewniająca pewną | |
227 | wielozadaniowość kooperatywnąw ramach pojedynczego wątku. | |
228 | ||
02c23151 | 229 | %package date_time |
d143171f | 230 | Summary: Date-Time library |
aa63c3d9 | 231 | Summary(pl.UTF-8): Biblioteka daty-czasu |
02c23151 | 232 | Group: Libraries |
000cd675 | 233 | Obsoletes: boost < 1.33 |
02c23151 | 234 | |
235 | %description date_time | |
236 | A set of date-time libraries. | |
237 | ||
4c35df9e JR |
238 | %description date_time -l pl.UTF-8 |
239 | Zbiór bibliotek daty-czasu. | |
02c23151 | 240 | |
31026e88 | 241 | %package filesystem |
242 | Summary: Portable paths, iteration over directories, and other useful filesystem operations | |
aa63c3d9 | 243 | Summary(pl.UTF-8): Przenośne ścieżki, iteracje katalogów i inne użyteczne operacje na systemie plików |
31026e88 | 244 | Group: Libraries |
69912bfb | 245 | Requires: %{name}-system = %{version}-%{release} |
000cd675 | 246 | Obsoletes: boost < 1.33 |
31026e88 | 247 | |
248 | %description filesystem | |
04846599 JB |
249 | The boost::filesystem library provides portable facilities to query |
250 | and manipulate paths, files, and directories. | |
31026e88 | 251 | |
4c35df9e JR |
252 | %description filesystem -l pl.UTF-8 |
253 | Przenośna biblioteka boost::filesystem dostarcza ułatwienia w | |
254 | operacjach na ścieżkach, plikach i katalogach. | |
31026e88 | 255 | |
06ed6468 AM |
256 | %package graph |
257 | Summary: General purpose, generic C++ library for graph data structures and graph algorithms | |
258 | Summary(pl.UTF-8): Biblioteka ogólnego przeznaczenia w C++ dla struktur danych typu grafy oraz algorytmów związanych z grafami | |
259 | Group: Libraries | |
260 | ||
261 | %description graph | |
262 | The boost::graph library provides portable facilities to operate on | |
263 | graph data structures using graph algorithms. | |
264 | ||
265 | %description graph -l pl.UTF-8 | |
266 | Przenośna biblioteka boost::graph dostarcza ułatwienia w operacjach na | |
267 | strukturach danych typu graf za pomocą algorytmów związanych z | |
268 | grafami. | |
269 | ||
17e8d8c2 ŁK |
270 | %package locale |
271 | Summary: Provide localization and Unicode handling tools for C++ | |
d7f6b47a | 272 | Summary(pl.UTF-8): Narzędzia do obsługi lokalizacji i Unikodu w C++ |
17e8d8c2 ŁK |
273 | Group: Libraries |
274 | ||
275 | %description locale | |
276 | Provide localization and Unicode handling tools for C++. | |
277 | ||
d7f6b47a JB |
278 | %description locale -l pl.UTF-8 |
279 | Narzędzia do obsługi lokalizacji i Unikodu w C++. | |
280 | ||
2ced8724 JR |
281 | %package log |
282 | Summary: Provide logging tools for C++ | |
283 | Summary(pl.UTF-8): Narzędzia do logowania w C++ | |
284 | Group: Libraries | |
285 | ||
286 | %description log | |
287 | Provide logging tools for C++. | |
288 | ||
289 | %description log -l pl.UTF-8 | |
290 | Narzędzia do logowania w C++. | |
291 | ||
99f4684a | 292 | %package program_options |
293 | Summary: Access to program options, via conventional methods such as command line and config file | |
aa63c3d9 | 294 | Summary(pl.UTF-8): Dostęp do opcji programu za pomocą typowych metod, jak linia poleceń i plik konfiguracyjny |
99f4684a | 295 | Group: Libraries |
296 | ||
297 | %description program_options | |
298 | The program_options library allows program developers to obtain | |
299 | program options, that is (name, value) pairs from the user, via | |
300 | conventional methods such as command line and config file. | |
301 | ||
4c35df9e JR |
302 | %description program_options -l pl.UTF-8 |
303 | Biblioteka program_options umożliwia uzyskanie od użytkownika opcji | |
304 | programu, czyli par (nazwa, wartość), za pomocą typowych metod, takich | |
305 | jak linia poleceń, czy plik konfiguracyjny. | |
99f4684a | 306 | |
09e2803f PS |
307 | %package regex |
308 | Summary: Boost C++ regular expressions library | |
309 | Summary(pl.UTF-8): Biblioteka wyrażeń regularnych Boost C++ | |
310 | Group: Libraries | |
99f4684a | 311 | |
09e2803f PS |
312 | %description regex |
313 | Shared library for Boost C++ regular expressions. | |
99f4684a | 314 | |
09e2803f | 315 | %description regex -l pl.UTF-8 |
d7f6b47a | 316 | Biblioteka współdzielona do obsługi wyrażeń regularnych w C++. |
99f4684a | 317 | |
db639b8e | 318 | %package signals |
75f9f612 | 319 | Summary: Signals & slots callback implementation |
aa63c3d9 | 320 | Summary(pl.UTF-8): Implementacja sygnałów i slotów |
db639b8e | 321 | Group: Libraries |
000cd675 | 322 | Obsoletes: boost < 1.33 |
db639b8e | 323 | |
324 | %description signals | |
325 | The boost::signals library is an implementation of a signals and slots | |
326 | system. | |
327 | ||
4c35df9e JR |
328 | %description signals -l pl.UTF-8 |
329 | Biblioteka boost::signals jest implementacją systemu sygnałów i | |
330 | slotów. | |
db639b8e | 331 | |
09e2803f PS |
332 | %package system |
333 | Summary: Support for getting system specific error codes | |
334 | Summary(pl.UTF-8): Wsparcie dla pobierania specyficznych dla systemu kodów błędów | |
335 | Group: Libraries | |
06ed6468 | 336 | |
09e2803f PS |
337 | %description system |
338 | The Boost System library provides simple, light-weight error_code | |
339 | objects that encapsulate system-specific error code values, yet also | |
340 | provide access to more abstract and portable error conditions objects. | |
0651a785 | 341 | |
2b583775 JB |
342 | %description system -l pl.UTF-8 |
343 | Biblioteka Boost System udostępnia proste, lekkie obiekty error_code | |
344 | obudowujące wartości kodów błędów specyficznych dla systemu, dając | |
345 | jednocześnie dostęp do bardziej abstrakcyjnych i przenośnych obiektów | |
346 | błędów. | |
347 | ||
c0536c7f | 348 | %package test |
09e2803f | 349 | Summary: Support for program testing and execution monitoring |
aa63c3d9 | 350 | Summary(pl.UTF-8): Wsparcie dla testowania i monitorowania programu |
c0536c7f | 351 | Group: Libraries |
000cd675 | 352 | Obsoletes: boost < 1.33 |
c0536c7f | 353 | |
354 | %description test | |
355 | Support for simple program testing, full unit testing, and for program | |
356 | execution monitoring. | |
357 | ||
4c35df9e JR |
358 | %description test -l pl.UTF-8 |
359 | Wsparcie dla prostego testowania programu, pełnego testowania i | |
c0536c7f | 360 | monitorowania wykonania programu. |
361 | ||
02c23151 | 362 | %package thread |
d143171f | 363 | Summary: Portable C++ threads library |
aa63c3d9 | 364 | Summary(pl.UTF-8): Przenośna biblioteka wątków C++ |
02c23151 | 365 | Group: Libraries |
000cd675 | 366 | Obsoletes: boost < 1.33 |
02c23151 | 367 | |
368 | %description thread | |
e4ddb7d1 | 369 | Portable C++ threads library - shared library. |
02c23151 | 370 | |
4c35df9e JR |
371 | %description thread -l pl.UTF-8 |
372 | Przenośna biblioteka wątków dla C++ - biblioteka dzielona. | |
02c23151 | 373 | |
e5cd13f8 JB |
374 | %package timer |
375 | Summary: Event timer, progress timer, and progress display classes | |
376 | Summary(pl.UTF-8): Klasy do obsługi pomiarów czasu, postępu i wyświetlania postępu | |
377 | Group: Libraries | |
378 | Obsoletes: boost < 1.33 | |
379 | ||
380 | %description timer | |
381 | Event timer, progress timer, and progress display classes. | |
382 | ||
383 | %description timer -l pl.UTF-8 | |
384 | Klasy do obsługi pomiarów czasu, postępu i wyświetlania postępu. | |
385 | ||
06ed6468 AM |
386 | %package wave |
387 | Summary: Boost.Wave - a standard compliant C++ preprocessor library | |
388 | Summary(pl.UTF-8): Boost.Wave - zgodna ze standardem biblioteka preprocesora C++ | |
389 | Group: Development/Libraries | |
06ed6468 AM |
390 | |
391 | %description wave | |
392 | Boost.Wave - a standard compliant C++ preprocessor library. | |
393 | ||
394 | %description wave -l pl.UTF-8 | |
395 | Boost.Wave - zgodna ze standardem biblioteka preprocesora C++. | |
396 | ||
c6874538 | 397 | %package doc |
398 | Summary: Boost C++ Library documentation | |
aa63c3d9 | 399 | Summary(pl.UTF-8): Dokumentacja dla biblioteki Boost C++ |
49f48a3b | 400 | Group: Documentation |
b0977fb8 | 401 | Requires: %{name}-devel = %{version}-%{release} |
c6874538 | 402 | |
403 | %description doc | |
66ac0d93 | 404 | Documentation for the Boost C++ Library. |
c6874538 | 405 | |
4c35df9e | 406 | %description doc -l pl.UTF-8 |
66ac0d93 | 407 | Dokumentacja dla biblioteki Boost C++. |
c6874538 | 408 | |
409 | %prep | |
8b623265 | 410 | %setup -q -n %{name}_%{fver} |
09e2803f | 411 | %patch0 -p1 |
647f39b2 | 412 | |
647f39b2 AM |
413 | %patch201 -p1 |
414 | %patch202 -p1 | |
415 | %patch203 -p0 | |
416 | %patch204 -p1 | |
647f39b2 AM |
417 | %patch207 -p0 |
418 | %patch208 -p0 | |
419 | %patch209 -p0 | |
420 | %patch210 -p1 | |
421 | %patch211 -p1 | |
422 | %patch212 -p1 | |
423 | %patch213 -p1 | |
647f39b2 AM |
424 | %patch218 -p1 |
425 | %patch219 -p1 | |
647f39b2 AM |
426 | %patch221 -p1 |
427 | %patch222 -p1 | |
647f39b2 | 428 | %patch224 -p1 |
647f39b2 | 429 | |
9b1806d5 PS |
430 | # - don't know how to pass it through (b)jam -s (no way?) |
431 | # due to oversophisticated build flags system. | |
432 | # - pass -fPIC due to <shared-linkable> removal. | |
0c1a0872 | 433 | %{__sed} -i "s/<optimization>speed : -O3/<optimization>speed : ${CXXFLAGS:-%rpmcxxflags} -fPIC/" tools/build/v2/tools/gcc.jam |
09e2803f PS |
434 | |
435 | # cleanup -g switch to avoid override debuginfocflags. | |
436 | %{__sed} -i 's/<debug-symbols>on : -g/<debug-symbols>on :/' tools/build/v2/tools/gcc.jam | |
437 | # link against shared expat library. | |
438 | %{__sed} -i 's:find-static:find-shared:' libs/graph/build/Jamfile.v2 | |
502f5d36 | 439 | |
09e2803f | 440 | cat << EOF > tools/build/v2/user-config.jam |
6d61ae01 | 441 | using gcc : %{cxx_version} : %{__cxx} ; |
09e2803f PS |
442 | EOF |
443 | ||
6d61ae01 ER |
444 | # cleanup backups after patching |
445 | find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f | |
446 | ||
c6874538 | 447 | %build |
49f48a3b | 448 | %if %{with python} |
7c12a8f9 | 449 | PYTHON_VERSION=$(%{__python} -c 'import sys; print sys.version[0:3]') |
c6874538 | 450 | PYTHON_ROOT=%{_prefix} |
451 | %else | |
452 | PYTHON_ROOT= | |
453 | PYTHON_VERSION= | |
454 | %endif | |
09e2803f PS |
455 | EXPAT_INCLUDE=%{_includedir} \ |
456 | EXPAT_LIBPATH=%{_libdir} \ | |
457 | ICU_PATH=%{_prefix} \ | |
17e8d8c2 ŁK |
458 | ./bootstrap.sh --prefix=%{_prefix} |
459 | ./b2 \ | |
9b1806d5 | 460 | -d2 --toolset=gcc \ |
09e2803f | 461 | variant=release debug-symbols=on inlining=on link=static,shared threading=multi |
9b1806d5 | 462 | |
c6874538 | 463 | %install |
464 | rm -rf $RPM_BUILD_ROOT | |
30964b71 | 465 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}} |
c6874538 | 466 | |
30964b71 | 467 | cp -rf boost $RPM_BUILD_ROOT%{_includedir} |
c6874538 | 468 | |
8b623265 JB |
469 | install -p stage/lib/lib*.a $RPM_BUILD_ROOT%{_libdir} |
470 | install -p stage/lib/lib*.so.*.*.* $RPM_BUILD_ROOT%{_libdir} | |
471 | cp -a stage/lib/lib*.so $RPM_BUILD_ROOT%{_libdir} | |
fa767695 | 472 | |
c6874538 | 473 | # documentation |
474 | install -d $RPM_BUILD_ROOT%{_docdir}/boost-%{version} | |
c6874538 | 475 | |
476 | # as the documentation doesn't completely reside in a directory of its | |
477 | # own, we need to find out ourselves... this looks for HTML files and | |
478 | # then collects everything linked from those. this is certainly quite | |
479 | # unoptimized wrt mkdir calls, but does it really matter? | |
7c12a8f9 ER |
480 | installdocs() { |
481 | for i in $(find -type f -name '*.htm*'); do | |
c6874538 | 482 | # bjam docu is included in the boost-jam RPM |
483 | if test "`echo $i | sed 's,jam_src,,'`" = "$i"; then | |
7c12a8f9 | 484 | install -d $RPM_BUILD_ROOT%{_docdir}/boost-%{version}/${i%/*} |
30964b71 | 485 | for LINKED in `%{__perl} - $i $RPM_BUILD_ROOT%{_docdir}/boost-%{version}/$i <<'EOT' |
c6874538 | 486 | sub rewrite_link |
487 | { | |
488 | my $link = shift; | |
489 | # rewrite links from boost/* to %{_includedir}/boost/* and | |
490 | # ignore external links as well as document-internal ones. | |
491 | # HTML files are also ignored as they get installed anyway. | |
492 | if (!($link =~ s,^(?:../)*boost/,%{_includedir}/boost/,) && !($link =~ m,(?:^[^/]+:|^\#|\.html?(?:$|\#)),)) | |
493 | { | |
494 | (my $file = $link) =~ s/\#.*//; | |
495 | print "$file\n"; | |
496 | } | |
497 | $link; | |
498 | } | |
499 | open IN, @ARGV[0]; | |
500 | open OUT, ">@ARGV[1]"; | |
66ac0d93 | 501 | my $in_link; |
c6874538 | 502 | while (<IN>) |
503 | { | |
66ac0d93 | 504 | $in_link and s/^\s*"([^"> ]*)"/'"' . rewrite_link($1) . '"'/e; |
c6874538 | 505 | s/(href|src)="([^"> ]*)"/"$1=\"" . rewrite_link($2) . '"'/eig; |
506 | print OUT; | |
d143171f | 507 | $in_link = /href|src=\s*$/; |
c6874538 | 508 | } |
509 | EOT`; do | |
7c12a8f9 | 510 | TARGET=${i%/*}/$LINKED |
c6874538 | 511 | # ignore non-existant linked files |
512 | if test -f $TARGET; then | |
7c12a8f9 | 513 | install -D -m 644 $TARGET $RPM_BUILD_ROOT%{_docdir}/boost-%{version}/$TARGET |
c6874538 | 514 | fi |
515 | done | |
516 | fi | |
517 | done | |
7c12a8f9 | 518 | }; installdocs |
c6874538 | 519 | |
520 | %clean | |
521 | rm -rf $RPM_BUILD_ROOT | |
522 | ||
000cd675 JB |
523 | %post -p /sbin/ldconfig |
524 | %postun -p /sbin/ldconfig | |
525 | ||
17e8d8c2 ŁK |
526 | %post chrono -p /sbin/ldconfig |
527 | %postun chrono -p /sbin/ldconfig | |
528 | ||
e5cd13f8 JB |
529 | %post context -p /sbin/ldconfig |
530 | %postun context -p /sbin/ldconfig | |
531 | ||
3d8dd501 JB |
532 | %post date_time -p /sbin/ldconfig |
533 | %postun date_time -p /sbin/ldconfig | |
534 | ||
04846599 JB |
535 | %post filesystem -p /sbin/ldconfig |
536 | %postun filesystem -p /sbin/ldconfig | |
537 | ||
06ed6468 AM |
538 | %post graph -p /sbin/ldconfig |
539 | %postun graph -p /sbin/ldconfig | |
540 | ||
17e8d8c2 ŁK |
541 | %post locale -p /sbin/ldconfig |
542 | %postun locale -p /sbin/ldconfig | |
543 | ||
09e2803f PS |
544 | %post python -p /sbin/ldconfig |
545 | %postun python -p /sbin/ldconfig | |
546 | ||
547 | %post program_options -p /sbin/ldconfig | |
548 | %postun program_options -p /sbin/ldconfig | |
c6874538 | 549 | |
09e2803f PS |
550 | %post regex -p /sbin/ldconfig |
551 | %postun regex -p /sbin/ldconfig | |
290ca6f4 | 552 | |
09e2803f PS |
553 | %post signals -p /sbin/ldconfig |
554 | %postun signals -p /sbin/ldconfig | |
c6874538 | 555 | |
09e2803f PS |
556 | %post system -p /sbin/ldconfig |
557 | %postun system -p /sbin/ldconfig | |
3d8dd501 | 558 | |
09e2803f PS |
559 | %post test -p /sbin/ldconfig |
560 | %postun test -p /sbin/ldconfig | |
c0536c7f | 561 | |
09e2803f PS |
562 | %post thread -p /sbin/ldconfig |
563 | %postun thread -p /sbin/ldconfig | |
3d8dd501 | 564 | |
e5cd13f8 JB |
565 | %post timer -p /sbin/ldconfig |
566 | %postun timer -p /sbin/ldconfig | |
567 | ||
d7f6b47a JB |
568 | %post wave -p /sbin/ldconfig |
569 | %postun wave -p /sbin/ldconfig | |
570 | ||
000cd675 JB |
571 | %files |
572 | %defattr(644,root,root,755) | |
7bf3427b | 573 | %attr(755,root,root) %{_libdir}/libboost_atomic.so.*.*.* |
f1235ec7 | 574 | %attr(755,root,root) %{_libdir}/libboost_coroutine.so.*.*.* |
8b623265 | 575 | %attr(755,root,root) %{_libdir}/libboost_iostreams.so.*.*.* |
e019306a | 576 | %attr(755,root,root) %{_libdir}/libboost_math_*.so.*.*.* |
8b623265 JB |
577 | %attr(755,root,root) %{_libdir}/libboost_random.so.*.*.* |
578 | %attr(755,root,root) %{_libdir}/libboost_serialization.so.*.*.* | |
579 | %attr(755,root,root) %{_libdir}/libboost_wserialization.so.*.*.* | |
000cd675 | 580 | |
30964b71 JB |
581 | %files devel |
582 | %defattr(644,root,root,755) | |
7bf3427b | 583 | %attr(755,root,root) %{_libdir}/libboost_atomic.so |
17e8d8c2 | 584 | %attr(755,root,root) %{_libdir}/libboost_chrono.so |
e5cd13f8 | 585 | %attr(755,root,root) %{_libdir}/libboost_context.so |
f1235ec7 | 586 | %attr(755,root,root) %{_libdir}/libboost_coroutine.so |
8b623265 JB |
587 | %attr(755,root,root) %{_libdir}/libboost_date_time.so |
588 | %attr(755,root,root) %{_libdir}/libboost_filesystem.so | |
589 | %attr(755,root,root) %{_libdir}/libboost_graph.so | |
590 | %attr(755,root,root) %{_libdir}/libboost_iostreams.so | |
17e8d8c2 | 591 | %attr(755,root,root) %{_libdir}/libboost_locale.so |
2ced8724 JR |
592 | %attr(755,root,root) %{_libdir}/libboost_log.so |
593 | %attr(755,root,root) %{_libdir}/libboost_log_setup.so | |
e019306a | 594 | %attr(755,root,root) %{_libdir}/libboost_math_*.so |
8b623265 JB |
595 | %attr(755,root,root) %{_libdir}/libboost_prg_exec_monitor.so |
596 | %attr(755,root,root) %{_libdir}/libboost_program_options.so | |
597 | %attr(755,root,root) %{_libdir}/libboost_regex.so | |
598 | %attr(755,root,root) %{_libdir}/libboost_random.so | |
599 | %attr(755,root,root) %{_libdir}/libboost_serialization.so | |
600 | %attr(755,root,root) %{_libdir}/libboost_signals.so | |
601 | %attr(755,root,root) %{_libdir}/libboost_system.so | |
602 | %attr(755,root,root) %{_libdir}/libboost_thread.so | |
17e8d8c2 | 603 | %attr(755,root,root) %{_libdir}/libboost_timer.so |
8b623265 JB |
604 | %attr(755,root,root) %{_libdir}/libboost_unit_test_framework.so |
605 | %attr(755,root,root) %{_libdir}/libboost_wave.so | |
606 | %attr(755,root,root) %{_libdir}/libboost_wserialization.so | |
607 | %{_includedir}/boost | |
608 | %exclude %{_includedir}/boost/python | |
609 | %exclude %{_includedir}/boost/python.hpp | |
99f4684a | 610 | |
000cd675 JB |
611 | %files static |
612 | %defattr(644,root,root,755) | |
7bf3427b | 613 | %{_libdir}/libboost_atomic.a |
17e8d8c2 | 614 | %{_libdir}/libboost_chrono.a |
e5cd13f8 | 615 | %{_libdir}/libboost_context.a |
2ced8724 | 616 | %{_libdir}/libboost_coroutine.a |
8b623265 | 617 | %{_libdir}/libboost_date_time.a |
17e8d8c2 | 618 | %{_libdir}/libboost_exception.a |
8b623265 JB |
619 | %{_libdir}/libboost_filesystem.a |
620 | %{_libdir}/libboost_graph.a | |
621 | %{_libdir}/libboost_iostreams.a | |
17e8d8c2 | 622 | %{_libdir}/libboost_locale.a |
2ced8724 JR |
623 | %{_libdir}/libboost_log.a |
624 | %{_libdir}/libboost_log_setup.a | |
e019306a | 625 | %{_libdir}/libboost_math_*.a |
8b623265 JB |
626 | %{_libdir}/libboost_prg_exec_monitor.a |
627 | %{_libdir}/libboost_program_options.a | |
628 | %{_libdir}/libboost_random.a | |
629 | %{_libdir}/libboost_regex.a | |
630 | %{_libdir}/libboost_serialization.a | |
631 | %{_libdir}/libboost_signals.a | |
632 | %{_libdir}/libboost_system.a | |
633 | %{_libdir}/libboost_test_exec_monitor.a | |
17e8d8c2 | 634 | %{_libdir}/libboost_timer.a |
8b623265 JB |
635 | %{_libdir}/libboost_thread.a |
636 | %{_libdir}/libboost_unit_test_framework.a | |
637 | %{_libdir}/libboost_wave.a | |
638 | %{_libdir}/libboost_wserialization.a | |
db639b8e | 639 | |
49f48a3b | 640 | %if %{with python} |
30964b71 | 641 | %files python |
49f48a3b | 642 | %defattr(644,root,root,755) |
8b623265 | 643 | %attr(755,root,root) %{_libdir}/libboost_python.so.*.*.* |
49f48a3b | 644 | |
30964b71 | 645 | %files python-devel |
c6874538 | 646 | %defattr(644,root,root,755) |
8b623265 | 647 | %attr(755,root,root) %{_libdir}/libboost_python.so |
30964b71 JB |
648 | %{_includedir}/boost/python |
649 | %{_includedir}/boost/python.hpp | |
650 | ||
6725319f JB |
651 | %files python-static |
652 | %defattr(644,root,root,755) | |
8b623265 | 653 | %{_libdir}/libboost_python.a |
c6874538 | 654 | %endif |
655 | ||
17e8d8c2 ŁK |
656 | %files chrono |
657 | %defattr(644,root,root,755) | |
658 | %attr(755,root,root) %{_libdir}/libboost_chrono.so.*.*.* | |
659 | ||
e5cd13f8 JB |
660 | %files context |
661 | %defattr(644,root,root,755) | |
662 | %attr(755,root,root) %{_libdir}/libboost_context.so.*.*.* | |
663 | ||
02c23151 | 664 | %files date_time |
665 | %defattr(644,root,root,755) | |
8b623265 | 666 | %attr(755,root,root) %{_libdir}/libboost_date_time.so.*.*.* |
02c23151 | 667 | |
31026e88 | 668 | %files filesystem |
669 | %defattr(644,root,root,755) | |
8b623265 | 670 | %attr(755,root,root) %{_libdir}/libboost_filesystem.so.*.*.* |
31026e88 | 671 | |
06ed6468 AM |
672 | %files graph |
673 | %defattr(644,root,root,755) | |
8b623265 | 674 | %attr(755,root,root) %{_libdir}/libboost_graph.so.*.*.* |
06ed6468 | 675 | |
17e8d8c2 ŁK |
676 | %files locale |
677 | %defattr(644,root,root,755) | |
678 | %attr(755,root,root) %{_libdir}/libboost_locale.so.*.*.* | |
679 | ||
2ced8724 JR |
680 | %files log |
681 | %defattr(644,root,root,755) | |
682 | %attr(755,root,root) %{_libdir}/libboost_log.so.*.*.* | |
683 | %attr(755,root,root) %{_libdir}/libboost_log_setup.so.*.*.* | |
684 | ||
99f4684a | 685 | %files program_options |
686 | %defattr(644,root,root,755) | |
8b623265 | 687 | %attr(755,root,root) %{_libdir}/libboost_program_options.so.*.*.* |
99f4684a | 688 | |
09e2803f | 689 | %files regex |
99f4684a | 690 | %defattr(644,root,root,755) |
8b623265 | 691 | %attr(755,root,root) %{_libdir}/libboost_regex.so.*.*.* |
99f4684a | 692 | |
db639b8e | 693 | %files signals |
694 | %defattr(644,root,root,755) | |
8b623265 | 695 | %attr(755,root,root) %{_libdir}/libboost_signals.so.*.*.* |
db639b8e | 696 | |
09e2803f | 697 | %files system |
db639b8e | 698 | %defattr(644,root,root,755) |
8b623265 | 699 | %attr(755,root,root) %{_libdir}/libboost_system.so.*.*.* |
06ed6468 | 700 | |
c0536c7f | 701 | %files test |
702 | %defattr(644,root,root,755) | |
8b623265 JB |
703 | %attr(755,root,root) %{_libdir}/libboost_prg_exec_monitor.so.*.*.* |
704 | %attr(755,root,root) %{_libdir}/libboost_unit_test_framework.so.*.*.* | |
c0536c7f | 705 | |
02c23151 | 706 | %files thread |
707 | %defattr(644,root,root,755) | |
8b623265 | 708 | %attr(755,root,root) %{_libdir}/libboost_thread.so.*.*.* |
02c23151 | 709 | |
e5cd13f8 JB |
710 | %files timer |
711 | %defattr(644,root,root,755) | |
712 | %attr(755,root,root) %{_libdir}/libboost_timer.so.*.*.* | |
713 | ||
06ed6468 AM |
714 | %files wave |
715 | %defattr(644,root,root,755) | |
8b623265 | 716 | %attr(755,root,root) %{_libdir}/libboost_wave.so.*.*.* |
06ed6468 | 717 | |
30964b71 | 718 | %files doc |
fe815c68 | 719 | %defattr(644,root,root,755) |
75f9f612 | 720 | %{_docdir}/%{name}-%{version} |