]> git.pld-linux.org Git - packages/boost.git/blame - boost.spec
up to 1.82.0
[packages/boost.git] / boost.spec
CommitLineData
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:
1b90837b
JB
7%bcond_without python2 # boost-python[2] support
8%bcond_without python3 # boost-python3 support
9%bcond_without numpy # boost-numpy support
74755c8e 10%bcond_without doc # don't package documentation
6d61ae01 11
8b623265 12%define fver %(echo %{version} | tr . _)
c6874538 13Summary: The Boost C++ Libraries
aa63c3d9 14Summary(pl.UTF-8): Biblioteki C++ "Boost"
49f48a3b 15Name: boost
a2da2513
JP
16Version: 1.82.0
17Release: 1
db639b8e 18License: Boost Software License and others
c6874538 19Group: Libraries
aac01146 20Source0: https://boostorg.jfrog.io/artifactory/main/release/%{version}/source/%{name}_%{fver}.tar.bz2
a2da2513 21# Source0-md5: b45dac8b54b58c087bfbed260dbfc03a
8b623265 22Patch0: %{name}-link.patch
c0b25762 23Patch1: %{name}-clean-gcc-flags.patch
937de54d 24Patch2: %{name}-fallthrough.patch
40d49ab0 25Patch3: uarg-def.patch
647f39b2 26# FC Patches:
1b90837b 27Patch201: %{name}-python-abi_letters.patch
647f39b2 28# https://svn.boost.org/trac/boost/ticket/5637
6d61ae01 29Patch203: %{name}-1.54.0-mpl-print.patch
647f39b2 30# https://svn.boost.org/trac/boost/ticket/8881
6d61ae01 31Patch221: %{name}-1.54.0-mpi-unused_typedef.patch
49f48a3b 32URL: http://www.boost.org/
afbf1450 33BuildRequires: bzip2-devel
09e2803f 34BuildRequires: expat-devel
7c12a8f9 35BuildRequires: libicu-devel
51b5b96e 36BuildRequires: libstdc++-devel >= 6:4.7
30964b71 37BuildRequires: perl-base
716bfbbd 38%if %{with python2}
1b90837b
JB
39BuildRequires: python-devel >= 2.2
40%{?with_numpy:BuildRequires: python-numpy-devel}
41%endif
42%if %{with python3}
43BuildRequires: python3-devel
44%{?with_numpy:BuildRequires: python3-numpy-devel}
45%endif
5a5e197f 46BuildRequires: rpm-build >= 4.6
dbf04d57 47BuildRequires: rpm-pythonprov
0121966c 48BuildRequires: rpmbuild(macros) >= 1.750
afbf1450 49BuildRequires: zlib-devel
5a5e197f 50Obsoletes: boost-signals < 1.69
49f48a3b 51BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
c6874538 52
647f39b2
AM
53%define specflags -DBOOST_IOSTREAMS_USE_DEPRECATED=1
54
dade1db4
JB
55%define py2v %(echo %{py_ver} | tr -d .)
56%define py3v %(echo %{py3_ver} | tr -d .)
57
0121966c 58%if %{_ver_ge "%{py3_ver}" "3.8"}
adf920b0 59%define py3v_suffix ""
0121966c
JP
60%else
61%define py3v_suffix "m"
62%endif
adf920b0 63
c6874538 64%description
65The Boost web site provides free peer-reviewed portable C++ source
66libraries. The emphasis is on libraries which work well with the C++
67Standard Library. One goal is to establish "existing practice" and
68provide reference implementations so that the Boost libraries are
69suitable for eventual standardization. Some of the libraries have
70already been proposed for inclusion in the C++ Standards Committee's
71upcoming C++ Standard Library Technical Report.
72
4c35df9e 73%description -l pl.UTF-8
49f48a3b 74Strona http://www.boost.org/ dostarcza darmowe biblioteki C++ wraz z
4c35df9e
JR
75kodem źródłowym. Nacisk położono na biblioteki, które dobrze
76współpracują ze standardową biblioteką C++. Celem jest ustanowienie
77"istniejącej praktyki" i dostarczenie implementacji, tak że biblioteki
78"Boost" nadają się do ewentualnej standaryzacji. Niektóre z bibliotek
79już zostały zgłoszone do komitetu standaryzacyjnego C++ w nadchodzącym
2b583775 80Raporcie Technicznym Biblioteki Standardowej C++.
c6874538 81
49f48a3b 82%package devel
000cd675 83Summary: Boost C++ development headers
aa63c3d9 84Summary(pl.UTF-8): Pliki nagłówkowe bibliotek C++ Boost
49f48a3b 85Group: Development/Libraries
000cd675 86Requires: %{name} = %{version}-%{release}
e5cd13f8
JB
87Requires: %{name}-chrono = %{version}-%{release}
88Requires: %{name}-context = %{version}-%{release}
09e2803f 89Requires: %{name}-date_time = %{version}-%{release}
f3e7d454 90Requires: %{name}-fiber = %{version}-%{release}
09e2803f
PS
91Requires: %{name}-filesystem = %{version}-%{release}
92Requires: %{name}-graph = %{version}-%{release}
aac01146 93Requires: %{name}-json = %{version}-%{release}
e5cd13f8 94Requires: %{name}-locale = %{version}-%{release}
c054d21a 95Requires: %{name}-log = %{version}-%{release}
09e2803f
PS
96Requires: %{name}-program_options = %{version}-%{release}
97Requires: %{name}-regex = %{version}-%{release}
69912bfb 98Requires: %{name}-system = %{version}-%{release}
09e2803f
PS
99Requires: %{name}-test = %{version}-%{release}
100Requires: %{name}-thread = %{version}-%{release}
e5cd13f8 101Requires: %{name}-timer = %{version}-%{release}
54c30f2c 102Requires: %{name}-url = %{version}-%{release}
09e2803f 103Requires: %{name}-wave = %{version}-%{release}
51b5b96e 104Requires: libstdc++-devel >= 6:4.7
5a5e197f
JB
105Obsoletes: boost-any-devel < 1.35
106Obsoletes: boost-array-devel < 1.35
107Obsoletes: boost-asio < 1.3.0
108Obsoletes: boost-bind-devel < 1.35
109Obsoletes: boost-call_traits-devel < 1.34.1-2
110Obsoletes: boost-compatibility-devel < 1.35
111Obsoletes: boost-compose-devel < 1.31
112Obsoletes: boost-compressed_pair-devel < 1.35
113Obsoletes: boost-concept_check-devel < 1.33.1-1
114Obsoletes: boost-conversion-devel < 1.33.1-1
115Obsoletes: boost-crc-devel < 1.35
116Obsoletes: boost-date_time-devel < 1.35
117Obsoletes: boost-filesystem-devel < 1.35
118Obsoletes: boost-graph-devel < 1.35
119Obsoletes: boost-mem_fn-devel < 1.33.1-1
120Obsoletes: boost-mpl-devel < 1.33.1-1
121Obsoletes: boost-preprocessor-devel < 1.33.1-1
122Obsoletes: boost-program_options-devel < 1.35
123Obsoletes: boost-ref-devel < 1.34.1-2
124Obsoletes: boost-regex-devel < 1.35
125Obsoletes: boost-signals-devel < 1.35
126Obsoletes: boost-spirit-devel < 1.35
127Obsoletes: boost-statechart-devel < 1.35
128Obsoletes: boost-static_assert-devel < 1.33.1-1
129Obsoletes: boost-test-devel < 1.35
130Obsoletes: boost-thread-devel < 1.35
131Obsoletes: boost-tr1-devel < 1.35
132Obsoletes: boost-type_traits-devel < 1.33.1-1
133Obsoletes: boost-typeof-devel < 1.35
134Obsoletes: boost-uBLAS-devel < 1.35
135Obsoletes: boost-utility-devel < 1.33.1-1
136Obsoletes: boost-wave-devel < 1.35
137Obsoletes: boost-xpressive-devel < 1.35
49f48a3b
JB
138
139%description devel
000cd675 140Header files for the Boost C++ libraries.
49f48a3b 141
4c35df9e
JR
142%description devel -l pl.UTF-8
143Pliki nagłówkowe bibliotek C++ Boost.
000cd675
JB
144
145%package static
146Summary: Static version of base Boost C++ libraries
aa63c3d9 147Summary(pl.UTF-8): Statyczne wersje podstawowych bibliotek C++ Boost
000cd675
JB
148Group: Development/Libraries
149Requires: %{name}-devel = %{version}-%{release}
5a5e197f
JB
150Obsoletes: boost-date_time-static < 1.35
151Obsoletes: boost-filesystem-static < 1.35
152Obsoletes: boost-graph-static < 1.35
153Obsoletes: boost-program_options-static < 1.35
154Obsoletes: boost-regex-static < 1.35
155Obsoletes: boost-signals-static < 1.35
156Obsoletes: boost-test-static < 1.35
157Obsoletes: boost-thread-static < 1.35
158Obsoletes: boost-wave-static < 1.35
000cd675
JB
159
160%description static
161Static version of base Boost C++ libraries.
162
4c35df9e 163%description static -l pl.UTF-8
000cd675 164Statyczne wersje podstawowych bibliotek C++ Boost.
49f48a3b 165
fe766442
JR
166%package python-devel-common
167Summary: Boost.Python development headers
c9463fef 168Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Boost.Python
fe766442
JR
169Group: Development/Libraries
170Requires: %{name}-devel = %{version}-%{release}
171
172%description python-devel-common
173Headers for the Boost.Python library.
174
175%description python-devel-common -l pl.UTF-8
c9463fef 176Pliki nagłówkowe biblioteki Boost.Python.
fe766442 177
c6874538 178%package python
c9463fef
JB
179Summary: Boost.Python library for Python 2
180Summary(pl.UTF-8): Biblioteka Boost.Python dla Pythona 2
c6874538 181Group: Libraries
c9463fef 182Requires: python-libs
c6874538 183
184%description python
185Use the Boost Python Library to quickly and easily export a C++
c9463fef
JB
186library to Python 2 such that the Python 2 interface is very similar
187to the C++ interface. It is designed to be minimally intrusive on your
c6874538 188C++ design. In most cases, you should not have to alter your C++
189classes in any way in order to use them with Boost.Python. The system
c9463fef
JB
190should simply ``reflect'' your C++ classes and functions into Python
1913.
c6874538 192
4c35df9e
JR
193%description python -l pl.UTF-8
194Biblioteka Boost Python służy do szybkiego i prostego eksportu
c9463fef 195biblioteki C++ do Pythona 2, tak że interfejs Pythona 2 jest bardzo
4c35df9e
JR
196podobny do interfejsu C++. Biblioteka jest zaprojektowana tak, żeby
197narzucać jak najmniej wymagań dotyczących konstrukcjii C++. W
198większości przypadków nie trzeba w ogóle zmieniać własnych klas C++,
199żeby używać ich z Boost.Python. System powinien po prostu ,,odbić''
c9463fef 200klasy C++ i funkcje do Pythona 3.
c6874538 201
202%package python-devel
c9463fef
JB
203Summary: Boost.Python development files for Python 2
204Summary(pl.UTF-8): Pliki programistyczne biblioteki Boost.Python dla Pythona 2
49f48a3b
JB
205Group: Development/Libraries
206Requires: %{name}-devel = %{version}-%{release}
6725319f 207Requires: %{name}-python = %{version}-%{release}
fe766442 208Requires: %{name}-python-devel-common = %{version}-%{release}
c6874538 209
210%description python-devel
c9463fef 211Boost.Python development files for Python 2.
c6874538 212
4c35df9e 213%description python-devel -l pl.UTF-8
c9463fef 214Pliki programistyczne biblioteki Boost.Python dla Pythona 2.
c6874538 215
6725319f 216%package python-static
c9463fef
JB
217Summary: Static version of Boost.Python library for Python 2
218Summary(pl.UTF-8): Statyczna wersja biblioteki Boost.Python dla Pythona 2
6725319f
JB
219Group: Development/Libraries
220Requires: %{name}-python-devel = %{version}-%{release}
221
222%description python-static
c9463fef 223Static version of Boost.Python library for Python 2.
6725319f 224
4c35df9e 225%description python-static -l pl.UTF-8
c9463fef 226Statyczna wersja biblioteki Boost.Python dla Pythona 2.
6725319f 227
fe766442 228%package python3
c9463fef
JB
229Summary: Boost.Python library for Python 3
230Summary(pl.UTF-8): biblioteka Boost.Python dla Pythona 3
fe766442 231Group: Libraries
c9463fef 232Requires: python3-libs
fe766442
JR
233
234%description python3
235Use the Boost Python Library to quickly and easily export a C++
236library to Python 3 such that the Python 3 interface is very similar
237to the C++ interface. It is designed to be minimally intrusive on your
238C++ design. In most cases, you should not have to alter your C++
239classes in any way in order to use them with Boost.Python. The system
c9463fef
JB
240should simply ``reflect'' your C++ classes and functions into Python
2413.
fe766442
JR
242
243%description python3 -l pl.UTF-8
244Biblioteka Boost Python służy do szybkiego i prostego eksportu
245biblioteki C++ do Pythona 3, tak że interfejs Pythona 3 jest bardzo
246podobny do interfejsu C++. Biblioteka jest zaprojektowana tak, żeby
247narzucać jak najmniej wymagań dotyczących konstrukcjii C++. W
248większości przypadków nie trzeba w ogóle zmieniać własnych klas C++,
249żeby używać ich z Boost.Python. System powinien po prostu ,,odbić''
250klasy C++ i funkcje do Pythona 3.
251
252%package python3-devel
c9463fef
JB
253Summary: Boost.Python development files for Python 3
254Summary(pl.UTF-8): Pliki programistyczne biblioteki Boost.Python dla Pythona 3
fe766442
JR
255Group: Development/Libraries
256Requires: %{name}-devel = %{version}-%{release}
e6158199 257Requires: %{name}-python-devel-common = %{version}-%{release}
aaeb56b0 258Requires: %{name}-python3 = %{version}-%{release}
fe766442
JR
259
260%description python3-devel
c9463fef 261Boost.Python development files for Python 3.
fe766442
JR
262
263%description python3-devel -l pl.UTF-8
c9463fef 264Pliki programistyczne biblioteki Boost.Python dla Pythona 3.
fe766442
JR
265
266%package python3-static
c9463fef
JB
267Summary: Static version of Boost.Python library for Python 3
268Summary(pl.UTF-8): Statyczna wersja biblioteki Boost.Python dla Pythona 3
fe766442
JR
269Group: Development/Libraries
270Requires: %{name}-python3-devel = %{version}-%{release}
271
272%description python3-static
c9463fef 273Static version of Boost.Python library for Python 3.
fe766442
JR
274
275%description python3-static -l pl.UTF-8
c9463fef 276Statyczna wersja biblioteki Boost.Python dla Pythona 3.
fe766442 277
17e8d8c2
ŁK
278%package chrono
279Summary: Useful time utilities
d7f6b47a 280Summary(pl.UTF-8): Przydatne funkcje związane z czasem
17e8d8c2
ŁK
281Group: Libraries
282Obsoletes: boost < 1.33
283
284%description chrono
285Useful time utilities.
286
d7f6b47a
JB
287%description chrono -l pl.UTF-8
288Przydatne funkcje związane z czasem.
289
e5cd13f8
JB
290%package context
291Summary: Boost.Context - context switching library
292Summary(pl.UTF-8): Boost.Context - biblioteka do zmiany kontekstu
293Group: Libraries
294
295%description context
296Boost.Context - context switching library, providing a sort of
297cooperative multitasking on a single thread.
298
299%description context -l pl.UTF-8
300Boost.Context - biblioteka do zmiany kontekstu, zapewniająca pewną
301wielozadaniowość kooperatywnąw ramach pojedynczego wątku.
302
02c23151 303%package date_time
d143171f 304Summary: Date-Time library
aa63c3d9 305Summary(pl.UTF-8): Biblioteka daty-czasu
02c23151 306Group: Libraries
000cd675 307Obsoletes: boost < 1.33
02c23151 308
309%description date_time
310A set of date-time libraries.
311
4c35df9e
JR
312%description date_time -l pl.UTF-8
313Zbiór bibliotek daty-czasu.
02c23151 314
f3e7d454
JR
315%package fiber
316Summary: A framework for micro-/userland-threads (fibers) scheduled cooperatively
51b5b96e 317Summary(pl.UTF-8): Szkielet mikrowątków przestrzeni użytkownika (fibers), szeregowanych kooperacyjnie
f3e7d454
JR
318Group: Libraries
319
320%description fiber
321boost::fiber provides a framework for micro-/userland-threads (fibers)
322scheduled cooperatively. The API contains classes and functions
323to manage and synchronize fibers similiar to boost.thread.
324
51b5b96e
JB
325%description fiber -l pl.UTF-8
326boost::fiber to szkielt mikrowątków przestrzeni użytkownika (fibers)
327szeregowanych kooperacyjnie. API zawiera klasy i funkcje służące do
328zarządzania i synchronizacji wątków podobne do boost.thread.
329
31026e88 330%package filesystem
331Summary: Portable paths, iteration over directories, and other useful filesystem operations
aa63c3d9 332Summary(pl.UTF-8): Przenośne ścieżki, iteracje katalogów i inne użyteczne operacje na systemie plików
31026e88 333Group: Libraries
69912bfb 334Requires: %{name}-system = %{version}-%{release}
000cd675 335Obsoletes: boost < 1.33
31026e88 336
337%description filesystem
04846599
JB
338The boost::filesystem library provides portable facilities to query
339and manipulate paths, files, and directories.
31026e88 340
4c35df9e
JR
341%description filesystem -l pl.UTF-8
342Przenośna biblioteka boost::filesystem dostarcza ułatwienia w
343operacjach na ścieżkach, plikach i katalogach.
31026e88 344
06ed6468
AM
345%package graph
346Summary: General purpose, generic C++ library for graph data structures and graph algorithms
347Summary(pl.UTF-8): Biblioteka ogólnego przeznaczenia w C++ dla struktur danych typu grafy oraz algorytmów związanych z grafami
348Group: Libraries
349
350%description graph
351The boost::graph library provides portable facilities to operate on
352graph data structures using graph algorithms.
353
354%description graph -l pl.UTF-8
355Przenośna biblioteka boost::graph dostarcza ułatwienia w operacjach na
356strukturach danych typu graf za pomocą algorytmów związanych z
357grafami.
358
aac01146
JP
359%package json
360Summary: Boost.JSON - a portable C++ JSON library
361Summary(pl.UTF-8): Boost.JSON - przenośna biblioteka C++ dla formatu JSON
362Group: Development/Libraries
363
364%description json
365Boost.JSON is a portable C++ library which provides containers and
366algorithms that implement JavaScript Object Notation, or simply
367"JSON", a lightweight data-interchange format.
368
369%description json -l pl.UTF-8
370Boost.JSON to przenośna biblioteka C++, która dostarcza kontenery oraz
371algorytmy implementujące JavaScript Object Notation, lub po prostu
372"JSON", lekki format wymiany danych.
373
17e8d8c2
ŁK
374%package locale
375Summary: Provide localization and Unicode handling tools for C++
d7f6b47a 376Summary(pl.UTF-8): Narzędzia do obsługi lokalizacji i Unikodu w C++
17e8d8c2
ŁK
377Group: Libraries
378
379%description locale
380Provide localization and Unicode handling tools for C++.
381
d7f6b47a
JB
382%description locale -l pl.UTF-8
383Narzędzia do obsługi lokalizacji i Unikodu w C++.
384
2ced8724
JR
385%package log
386Summary: Provide logging tools for C++
387Summary(pl.UTF-8): Narzędzia do logowania w C++
388Group: Libraries
389
390%description log
391Provide logging tools for C++.
392
393%description log -l pl.UTF-8
394Narzędzia do logowania w C++.
395
99f4684a 396%package program_options
397Summary: Access to program options, via conventional methods such as command line and config file
aa63c3d9 398Summary(pl.UTF-8): Dostęp do opcji programu za pomocą typowych metod, jak linia poleceń i plik konfiguracyjny
99f4684a 399Group: Libraries
400
401%description program_options
402The program_options library allows program developers to obtain
403program options, that is (name, value) pairs from the user, via
404conventional methods such as command line and config file.
405
4c35df9e
JR
406%description program_options -l pl.UTF-8
407Biblioteka program_options umożliwia uzyskanie od użytkownika opcji
408programu, czyli par (nazwa, wartość), za pomocą typowych metod, takich
409jak linia poleceń, czy plik konfiguracyjny.
99f4684a 410
09e2803f
PS
411%package regex
412Summary: Boost C++ regular expressions library
413Summary(pl.UTF-8): Biblioteka wyrażeń regularnych Boost C++
414Group: Libraries
99f4684a 415
09e2803f
PS
416%description regex
417Shared library for Boost C++ regular expressions.
99f4684a 418
09e2803f 419%description regex -l pl.UTF-8
d7f6b47a 420Biblioteka współdzielona do obsługi wyrażeń regularnych w C++.
99f4684a 421
09e2803f
PS
422%package system
423Summary: Support for getting system specific error codes
424Summary(pl.UTF-8): Wsparcie dla pobierania specyficznych dla systemu kodów błędów
425Group: Libraries
06ed6468 426
09e2803f
PS
427%description system
428The Boost System library provides simple, light-weight error_code
429objects that encapsulate system-specific error code values, yet also
430provide access to more abstract and portable error conditions objects.
0651a785 431
2b583775
JB
432%description system -l pl.UTF-8
433Biblioteka Boost System udostępnia proste, lekkie obiekty error_code
434obudowujące wartości kodów błędów specyficznych dla systemu, dając
435jednocześnie dostęp do bardziej abstrakcyjnych i przenośnych obiektów
436błędów.
437
c0536c7f 438%package test
09e2803f 439Summary: Support for program testing and execution monitoring
aa63c3d9 440Summary(pl.UTF-8): Wsparcie dla testowania i monitorowania programu
c0536c7f 441Group: Libraries
000cd675 442Obsoletes: boost < 1.33
c0536c7f 443
444%description test
445Support for simple program testing, full unit testing, and for program
446execution monitoring.
447
4c35df9e
JR
448%description test -l pl.UTF-8
449Wsparcie dla prostego testowania programu, pełnego testowania i
c0536c7f 450monitorowania wykonania programu.
451
02c23151 452%package thread
d143171f 453Summary: Portable C++ threads library
aa63c3d9 454Summary(pl.UTF-8): Przenośna biblioteka wątków C++
02c23151 455Group: Libraries
000cd675 456Obsoletes: boost < 1.33
02c23151 457
458%description thread
e4ddb7d1 459Portable C++ threads library - shared library.
02c23151 460
4c35df9e
JR
461%description thread -l pl.UTF-8
462Przenośna biblioteka wątków dla C++ - biblioteka dzielona.
02c23151 463
e5cd13f8
JB
464%package timer
465Summary: Event timer, progress timer, and progress display classes
466Summary(pl.UTF-8): Klasy do obsługi pomiarów czasu, postępu i wyświetlania postępu
467Group: Libraries
468Obsoletes: boost < 1.33
469
470%description timer
471Event timer, progress timer, and progress display classes.
472
473%description timer -l pl.UTF-8
474Klasy do obsługi pomiarów czasu, postępu i wyświetlania postępu.
475
54c30f2c
JP
476%package url
477Summary: Library for manipulating Uniform Resource Identifiers and Locators
478Summary(pl.UTF-8): Biblioteka do manipulacji Unfiform Resource Identifier i Locator
479Group: Libraries
480
481%description url
482Library for manipulating Uniform Resource Identifiers and Locators.
483
484%description url -l pl.UTF-8
485Biblioteka do manipulacji Unfiform Resource Identifier i Locator.
486
06ed6468
AM
487%package wave
488Summary: Boost.Wave - a standard compliant C++ preprocessor library
489Summary(pl.UTF-8): Boost.Wave - zgodna ze standardem biblioteka preprocesora C++
490Group: Development/Libraries
06ed6468
AM
491
492%description wave
493Boost.Wave - a standard compliant C++ preprocessor library.
494
495%description wave -l pl.UTF-8
496Boost.Wave - zgodna ze standardem biblioteka preprocesora C++.
497
c6874538 498%package doc
499Summary: Boost C++ Library documentation
aa63c3d9 500Summary(pl.UTF-8): Dokumentacja dla biblioteki Boost C++
49f48a3b 501Group: Documentation
f6f44d5d 502BuildArch: noarch
c6874538 503
504%description doc
66ac0d93 505Documentation for the Boost C++ Library.
c6874538 506
4c35df9e 507%description doc -l pl.UTF-8
66ac0d93 508Dokumentacja dla biblioteki Boost C++.
c6874538 509
510%prep
8b623265 511%setup -q -n %{name}_%{fver}
09e2803f 512%patch0 -p1
bfed7e70 513%patch1 -p1
937de54d 514%patch2 -p1
40d49ab0 515%patch3 -p1
647f39b2 516
1b90837b 517%patch201 -p1
647f39b2 518%patch203 -p0
647f39b2 519%patch221 -p1
647f39b2 520
505467da
JB
521%if "%{cc_version}" < "6.0"
522CPPSTD="-std=c++11"
523%else
524CPPSTD=
525%endif
d20b153a 526cat << EOF > tools/build/src/user-config.jam
505467da 527using gcc : %{cxx_version} : %{__cxx} : <cflags>"%{rpmcflags} -fPIC" <cxxflags>"%{rpmcxxflags} $CPPSTD -fPIC" <linkflags>"%{rpmldflags}" ;
09e2803f
PS
528EOF
529
6d61ae01
ER
530# cleanup backups after patching
531find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
532
c6874538 533%build
09e2803f
PS
534EXPAT_INCLUDE=%{_includedir} \
535EXPAT_LIBPATH=%{_libdir} \
536ICU_PATH=%{_prefix} \
bab7ef8c 537./bootstrap.sh \
fe766442
JR
538 --prefix=%{_prefix} \
539 -without-libraries=python
bab7ef8c 540
17e8d8c2 541./b2 \
59df39f3 542 %{?__jobs:-j %{__jobs}} \
9b1806d5 543 -d2 --toolset=gcc \
c8ead127
JB
544%ifarch x32
545 abi=x32 \
c8ead127 546%endif
bab7ef8c
JR
547 debug-symbols=on \
548 inlining=on \
549 link=static,shared \
c8ead127
JB
550 threading=multi \
551 variant=release
9b1806d5 552
6cb66fff 553%if %{with python3}
adf920b0 554echo "using python : %{py3_ver} : %{py3_prefix} : %{py3_incdir} : : : : %{py3v_suffix} ;" >> project-config.jam
fe766442 555./b2 \
59df39f3 556 %{?__jobs:-j %{__jobs}} \
1b90837b 557 --with-python python=%{py3_ver} \
e56ca5b5 558 -a -d2 --toolset=gcc \
fe766442
JR
559 debug-symbols=on \
560 inlining=on \
561 link=static,shared \
c8ead127
JB
562 threading=multi \
563 variant=release
fe766442
JR
564%endif
565
6cb66fff 566%if %{with python2}
1b90837b 567%{__sed} -i -e '/^using python : 3/d' project-config.jam
6cb66fff 568echo "using python : %{py_ver} : %{py_prefix} : %{py_incdir} ;" >> project-config.jam
fe766442 569./b2 \
59df39f3 570 %{?__jobs:-j %{__jobs}} \
6cb66fff 571 --with-python python=%{py_ver} \
e56ca5b5 572 -a -d2 --toolset=gcc \
fe766442
JR
573 debug-symbols=on \
574 inlining=on \
575 link=static,shared \
c8ead127
JB
576 threading=multi \
577 variant=release
fe766442
JR
578%endif
579
c6874538 580%install
581rm -rf $RPM_BUILD_ROOT
30964b71 582install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
c6874538 583
30964b71 584cp -rf boost $RPM_BUILD_ROOT%{_includedir}
c6874538 585
8b623265
JB
586install -p stage/lib/lib*.a $RPM_BUILD_ROOT%{_libdir}
587install -p stage/lib/lib*.so.*.*.* $RPM_BUILD_ROOT%{_libdir}
588cp -a stage/lib/lib*.so $RPM_BUILD_ROOT%{_libdir}
fa767695 589
74755c8e 590%if %{with doc}
c6874538 591# documentation
592install -d $RPM_BUILD_ROOT%{_docdir}/boost-%{version}
c6874538 593
594# as the documentation doesn't completely reside in a directory of its
595# own, we need to find out ourselves... this looks for HTML files and
596# then collects everything linked from those. this is certainly quite
597# unoptimized wrt mkdir calls, but does it really matter?
7c12a8f9
ER
598installdocs() {
599for i in $(find -type f -name '*.htm*'); do
c6874538 600 # bjam docu is included in the boost-jam RPM
601 if test "`echo $i | sed 's,jam_src,,'`" = "$i"; then
7c12a8f9 602 install -d $RPM_BUILD_ROOT%{_docdir}/boost-%{version}/${i%/*}
30964b71 603 for LINKED in `%{__perl} - $i $RPM_BUILD_ROOT%{_docdir}/boost-%{version}/$i <<'EOT'
c6874538 604 sub rewrite_link
605 {
606 my $link = shift;
607 # rewrite links from boost/* to %{_includedir}/boost/* and
608 # ignore external links as well as document-internal ones.
609 # HTML files are also ignored as they get installed anyway.
610 if (!($link =~ s,^(?:../)*boost/,%{_includedir}/boost/,) && !($link =~ m,(?:^[^/]+:|^\#|\.html?(?:$|\#)),))
611 {
612 (my $file = $link) =~ s/\#.*//;
613 print "$file\n";
614 }
615 $link;
616 }
617 open IN, @ARGV[0];
618 open OUT, ">@ARGV[1]";
66ac0d93 619 my $in_link;
c6874538 620 while (<IN>)
621 {
66ac0d93 622 $in_link and s/^\s*"([^"> ]*)"/'"' . rewrite_link($1) . '"'/e;
c6874538 623 s/(href|src)="([^"> ]*)"/"$1=\"" . rewrite_link($2) . '"'/eig;
624 print OUT;
d143171f 625 $in_link = /href|src=\s*$/;
c6874538 626 }
627EOT`; do
7c12a8f9 628 TARGET=${i%/*}/$LINKED
c6874538 629 # ignore non-existant linked files
630 if test -f $TARGET; then
7c12a8f9 631 install -D -m 644 $TARGET $RPM_BUILD_ROOT%{_docdir}/boost-%{version}/$TARGET
c6874538 632 fi
633 done
634 fi
635done
7c12a8f9 636}; installdocs
74755c8e 637%endif
c6874538 638
639%clean
640rm -rf $RPM_BUILD_ROOT
641
000cd675
JB
642%post -p /sbin/ldconfig
643%postun -p /sbin/ldconfig
644
17e8d8c2
ŁK
645%post chrono -p /sbin/ldconfig
646%postun chrono -p /sbin/ldconfig
647
e5cd13f8
JB
648%post context -p /sbin/ldconfig
649%postun context -p /sbin/ldconfig
650
3d8dd501
JB
651%post date_time -p /sbin/ldconfig
652%postun date_time -p /sbin/ldconfig
653
f3e7d454
JR
654%post fiber -p /sbin/ldconfig
655%postun fiber -p /sbin/ldconfig
656
04846599
JB
657%post filesystem -p /sbin/ldconfig
658%postun filesystem -p /sbin/ldconfig
659
06ed6468
AM
660%post graph -p /sbin/ldconfig
661%postun graph -p /sbin/ldconfig
662
aac01146
JP
663%post json -p /sbin/ldconfig
664%postun json -p /sbin/ldconfig
665
17e8d8c2
ŁK
666%post locale -p /sbin/ldconfig
667%postun locale -p /sbin/ldconfig
668
09e2803f
PS
669%post python -p /sbin/ldconfig
670%postun python -p /sbin/ldconfig
671
fe766442
JR
672%post python3 -p /sbin/ldconfig
673%postun python3 -p /sbin/ldconfig
674
09e2803f
PS
675%post program_options -p /sbin/ldconfig
676%postun program_options -p /sbin/ldconfig
c6874538 677
09e2803f
PS
678%post regex -p /sbin/ldconfig
679%postun regex -p /sbin/ldconfig
290ca6f4 680
09e2803f
PS
681%post system -p /sbin/ldconfig
682%postun system -p /sbin/ldconfig
3d8dd501 683
09e2803f
PS
684%post test -p /sbin/ldconfig
685%postun test -p /sbin/ldconfig
c0536c7f 686
09e2803f
PS
687%post thread -p /sbin/ldconfig
688%postun thread -p /sbin/ldconfig
3d8dd501 689
e5cd13f8
JB
690%post timer -p /sbin/ldconfig
691%postun timer -p /sbin/ldconfig
692
54c30f2c
JP
693%post url -p /sbin/ldconfig
694%postun url -p /sbin/ldconfig
695
d7f6b47a
JB
696%post wave -p /sbin/ldconfig
697%postun wave -p /sbin/ldconfig
698
000cd675
JB
699%files
700%defattr(644,root,root,755)
7bf3427b 701%attr(755,root,root) %{_libdir}/libboost_atomic.so.*.*.*
d20b153a 702%attr(755,root,root) %{_libdir}/libboost_container.so.*.*.*
dade1db4 703%attr(755,root,root) %{_libdir}/libboost_contract.so.*.*.*
f1235ec7 704%attr(755,root,root) %{_libdir}/libboost_coroutine.so.*.*.*
8b623265 705%attr(755,root,root) %{_libdir}/libboost_iostreams.so.*.*.*
e019306a 706%attr(755,root,root) %{_libdir}/libboost_math_*.so.*.*.*
d1319b2e 707%attr(755,root,root) %{_libdir}/libboost_nowide.so.*.*.*
8b623265
JB
708%attr(755,root,root) %{_libdir}/libboost_random.so.*.*.*
709%attr(755,root,root) %{_libdir}/libboost_serialization.so.*.*.*
dade1db4 710%attr(755,root,root) %{_libdir}/libboost_stacktrace_*.so.*.*.*
5877771e 711%attr(755,root,root) %{_libdir}/libboost_type_erasure.so.*.*.*
8b623265 712%attr(755,root,root) %{_libdir}/libboost_wserialization.so.*.*.*
000cd675 713
30964b71
JB
714%files devel
715%defattr(644,root,root,755)
7bf3427b 716%attr(755,root,root) %{_libdir}/libboost_atomic.so
17e8d8c2 717%attr(755,root,root) %{_libdir}/libboost_chrono.so
d20b153a 718%attr(755,root,root) %{_libdir}/libboost_container.so
e5cd13f8 719%attr(755,root,root) %{_libdir}/libboost_context.so
dade1db4 720%attr(755,root,root) %{_libdir}/libboost_contract.so
f1235ec7 721%attr(755,root,root) %{_libdir}/libboost_coroutine.so
8b623265 722%attr(755,root,root) %{_libdir}/libboost_date_time.so
f3e7d454 723%attr(755,root,root) %{_libdir}/libboost_fiber.so
8b623265
JB
724%attr(755,root,root) %{_libdir}/libboost_filesystem.so
725%attr(755,root,root) %{_libdir}/libboost_graph.so
726%attr(755,root,root) %{_libdir}/libboost_iostreams.so
aac01146 727%attr(755,root,root) %{_libdir}/libboost_json.so
17e8d8c2 728%attr(755,root,root) %{_libdir}/libboost_locale.so
2ced8724
JR
729%attr(755,root,root) %{_libdir}/libboost_log.so
730%attr(755,root,root) %{_libdir}/libboost_log_setup.so
e019306a 731%attr(755,root,root) %{_libdir}/libboost_math_*.so
d1319b2e 732%attr(755,root,root) %{_libdir}/libboost_nowide.so
8b623265
JB
733%attr(755,root,root) %{_libdir}/libboost_prg_exec_monitor.so
734%attr(755,root,root) %{_libdir}/libboost_program_options.so
735%attr(755,root,root) %{_libdir}/libboost_regex.so
736%attr(755,root,root) %{_libdir}/libboost_random.so
737%attr(755,root,root) %{_libdir}/libboost_serialization.so
dade1db4 738%attr(755,root,root) %{_libdir}/libboost_stacktrace_*.so
8b623265
JB
739%attr(755,root,root) %{_libdir}/libboost_system.so
740%attr(755,root,root) %{_libdir}/libboost_thread.so
17e8d8c2 741%attr(755,root,root) %{_libdir}/libboost_timer.so
5877771e 742%attr(755,root,root) %{_libdir}/libboost_type_erasure.so
8b623265 743%attr(755,root,root) %{_libdir}/libboost_unit_test_framework.so
54c30f2c 744%attr(755,root,root) %{_libdir}/libboost_url.so
8b623265
JB
745%attr(755,root,root) %{_libdir}/libboost_wave.so
746%attr(755,root,root) %{_libdir}/libboost_wserialization.so
747%{_includedir}/boost
748%exclude %{_includedir}/boost/python
749%exclude %{_includedir}/boost/python.hpp
99f4684a 750
000cd675
JB
751%files static
752%defattr(644,root,root,755)
7bf3427b 753%{_libdir}/libboost_atomic.a
17e8d8c2 754%{_libdir}/libboost_chrono.a
d20b153a 755%{_libdir}/libboost_container.a
e5cd13f8 756%{_libdir}/libboost_context.a
dade1db4 757%{_libdir}/libboost_contract.a
2ced8724 758%{_libdir}/libboost_coroutine.a
8b623265 759%{_libdir}/libboost_date_time.a
17e8d8c2 760%{_libdir}/libboost_exception.a
f3e7d454 761%{_libdir}/libboost_fiber.a
8b623265
JB
762%{_libdir}/libboost_filesystem.a
763%{_libdir}/libboost_graph.a
764%{_libdir}/libboost_iostreams.a
aac01146 765%{_libdir}/libboost_json.a
17e8d8c2 766%{_libdir}/libboost_locale.a
2ced8724
JR
767%{_libdir}/libboost_log.a
768%{_libdir}/libboost_log_setup.a
e019306a 769%{_libdir}/libboost_math_*.a
d1319b2e 770%{_libdir}/libboost_nowide.a
8b623265
JB
771%{_libdir}/libboost_prg_exec_monitor.a
772%{_libdir}/libboost_program_options.a
773%{_libdir}/libboost_random.a
774%{_libdir}/libboost_regex.a
775%{_libdir}/libboost_serialization.a
dade1db4 776%{_libdir}/libboost_stacktrace_*.a
8b623265
JB
777%{_libdir}/libboost_system.a
778%{_libdir}/libboost_test_exec_monitor.a
17e8d8c2 779%{_libdir}/libboost_timer.a
54c30f2c 780%{_libdir}/libboost_url.a
8b623265 781%{_libdir}/libboost_thread.a
5877771e 782%{_libdir}/libboost_type_erasure.a
8b623265
JB
783%{_libdir}/libboost_unit_test_framework.a
784%{_libdir}/libboost_wave.a
785%{_libdir}/libboost_wserialization.a
db639b8e 786
fe766442
JR
787%if %{with python2} || %{with python3}
788%files python-devel-common
789%defattr(644,root,root,755)
790%{_includedir}/boost/python
791%{_includedir}/boost/python.hpp
792%endif
793
794%if %{with python2}
30964b71 795%files python
49f48a3b 796%defattr(644,root,root,755)
1b90837b 797%if %{with numpy}
dade1db4 798%attr(755,root,root) %{_libdir}/libboost_numpy%{py2v}.so.*.*.*
1b90837b 799%endif
dade1db4 800%attr(755,root,root) %{_libdir}/libboost_python%{py2v}.so.*.*.*
49f48a3b 801
30964b71 802%files python-devel
c6874538 803%defattr(644,root,root,755)
1b90837b 804%if %{with numpy}
dade1db4 805%attr(755,root,root) %{_libdir}/libboost_numpy%{py2v}.so
1b90837b 806%endif
dade1db4 807%attr(755,root,root) %{_libdir}/libboost_python%{py2v}.so
30964b71 808
6725319f
JB
809%files python-static
810%defattr(644,root,root,755)
1b90837b 811%if %{with numpy}
dade1db4 812%{_libdir}/libboost_numpy%{py2v}.a
1b90837b 813%endif
dade1db4 814%{_libdir}/libboost_python%{py2v}.a
c6874538 815%endif
816
fe766442
JR
817%if %{with python3}
818%files python3
819%defattr(644,root,root,755)
1b90837b 820%if %{with numpy}
dade1db4 821%attr(755,root,root) %{_libdir}/libboost_numpy%{py3v}.so.*.*.*
1b90837b 822%endif
dade1db4 823%attr(755,root,root) %{_libdir}/libboost_python%{py3v}.so.*.*.*
fe766442
JR
824
825%files python3-devel
826%defattr(644,root,root,755)
1b90837b 827%if %{with numpy}
dade1db4 828%attr(755,root,root) %{_libdir}/libboost_numpy%{py3v}.so
1b90837b 829%endif
dade1db4 830%attr(755,root,root) %{_libdir}/libboost_python%{py3v}.so
fe766442
JR
831
832%files python3-static
833%defattr(644,root,root,755)
1b90837b 834%if %{with numpy}
dade1db4 835%{_libdir}/libboost_numpy%{py3v}.a
1b90837b 836%endif
dade1db4 837%{_libdir}/libboost_python%{py3v}.a
fe766442
JR
838%endif
839
17e8d8c2
ŁK
840%files chrono
841%defattr(644,root,root,755)
842%attr(755,root,root) %{_libdir}/libboost_chrono.so.*.*.*
843
e5cd13f8
JB
844%files context
845%defattr(644,root,root,755)
846%attr(755,root,root) %{_libdir}/libboost_context.so.*.*.*
847
02c23151 848%files date_time
849%defattr(644,root,root,755)
8b623265 850%attr(755,root,root) %{_libdir}/libboost_date_time.so.*.*.*
02c23151 851
f3e7d454
JR
852%files fiber
853%defattr(644,root,root,755)
854%attr(755,root,root) %{_libdir}/libboost_fiber.so.*.*.*
855
31026e88 856%files filesystem
857%defattr(644,root,root,755)
8b623265 858%attr(755,root,root) %{_libdir}/libboost_filesystem.so.*.*.*
31026e88 859
06ed6468
AM
860%files graph
861%defattr(644,root,root,755)
8b623265 862%attr(755,root,root) %{_libdir}/libboost_graph.so.*.*.*
06ed6468 863
aac01146
JP
864%files json
865%defattr(644,root,root,755)
866%attr(755,root,root) %{_libdir}/libboost_json.so.*.*.*
867
17e8d8c2
ŁK
868%files locale
869%defattr(644,root,root,755)
870%attr(755,root,root) %{_libdir}/libboost_locale.so.*.*.*
871
2ced8724
JR
872%files log
873%defattr(644,root,root,755)
874%attr(755,root,root) %{_libdir}/libboost_log.so.*.*.*
875%attr(755,root,root) %{_libdir}/libboost_log_setup.so.*.*.*
876
99f4684a 877%files program_options
878%defattr(644,root,root,755)
8b623265 879%attr(755,root,root) %{_libdir}/libboost_program_options.so.*.*.*
99f4684a 880
09e2803f 881%files regex
99f4684a 882%defattr(644,root,root,755)
8b623265 883%attr(755,root,root) %{_libdir}/libboost_regex.so.*.*.*
99f4684a 884
09e2803f 885%files system
db639b8e 886%defattr(644,root,root,755)
8b623265 887%attr(755,root,root) %{_libdir}/libboost_system.so.*.*.*
06ed6468 888
c0536c7f 889%files test
890%defattr(644,root,root,755)
8b623265
JB
891%attr(755,root,root) %{_libdir}/libboost_prg_exec_monitor.so.*.*.*
892%attr(755,root,root) %{_libdir}/libboost_unit_test_framework.so.*.*.*
c0536c7f 893
02c23151 894%files thread
895%defattr(644,root,root,755)
8b623265 896%attr(755,root,root) %{_libdir}/libboost_thread.so.*.*.*
02c23151 897
e5cd13f8
JB
898%files timer
899%defattr(644,root,root,755)
900%attr(755,root,root) %{_libdir}/libboost_timer.so.*.*.*
901
54c30f2c
JP
902%files url
903%defattr(644,root,root,755)
904%attr(755,root,root) %{_libdir}/libboost_url.so.*.*.*
905
06ed6468
AM
906%files wave
907%defattr(644,root,root,755)
8b623265 908%attr(755,root,root) %{_libdir}/libboost_wave.so.*.*.*
06ed6468 909
74755c8e 910%if %{with doc}
30964b71 911%files doc
fe815c68 912%defattr(644,root,root,755)
75f9f612 913%{_docdir}/%{name}-%{version}
74755c8e 914%endif
This page took 0.653197 seconds and 4 git commands to generate.