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