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