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