2 Summary: The Boost C++ Libraries
6 URL: http://www.boost.org/
7 Group: System/Libraries
8 Source: boost-1.51.0.tar.gz
9 Obsoletes: boost-doc <= 1.30.2
10 Obsoletes: boost-python <= 1.30.2
11 Provides: boost-doc = %{version}-%{release}
13 # boost is an "umbrella" package that pulls in all other boost components
14 Requires: boost-chrono = %{version}-%{release}
15 Requires: boost-program-options = %{version}-%{release}
16 Requires: boost-thread = %{version}-%{release}
17 Requires: boost-test = %{version}-%{release}
18 Requires: boost-filesystem = %{version}-%{release}
19 Requires: boost-system = %{version}-%{release}
20 Requires: boost-regex = %{version}-%{release}
22 BuildRequires: libstdc++-devel
23 BuildRequires: bzip2-libs
24 BuildRequires: bzip2-devel
25 BuildRequires: zlib-devel
26 BuildRequires: python-devel
27 BuildRequires: libicu-devel
28 BuildRequires: chrpath
31 %bcond_with docs_generated
35 Boost provides free peer-reviewed portable C++ source libraries. The
36 emphasis is on libraries which work well with the C++ Standard
37 Library, in the hopes of establishing "existing practice" for
38 extensions and providing reference implementations so that the Boost
39 libraries are suitable for eventual standardization. (Some of the
40 libraries have already been proposed for inclusion in the C++
41 Standards Committee's upcoming C++ Standard Library Technical Report.)
43 Summary: Run-Time component of boost chrono library
44 Group: System Environment/Libraries
45 Provides: libboost_chrono.so.%{version}
47 Run-Time support for Boost.Chrono, a set of useful time utilities.
49 %package program-options
50 Summary: Runtime component of boost program_options library
51 Group: System/Libraries
52 Provides: libboost_program_options.so.%{version}
54 %description program-options
56 Runtime support of boost program options library, which allows program
57 developers to obtain (name, value) pairs from the user, via
58 conventional methods such as command line and config file.
61 Summary: Runtime component of boost thread library
62 Group: System/Libraries
63 Provides: libboost_thread.so.%{version}
67 Runtime component Boost.Thread library, which provides classes and
68 functions for managing multiple threads of execution, and for
69 synchronizing data between the threads or providing separate copies of
70 data specific to individual threads.
74 Summary: Runtime component of boost system library
75 Group: System/Libraries
76 Provides: libboost_system.so.%{version}
80 Runtime component Boost. System library, which provides simple, light-weight
81 error_code objects that encapsulate system-specific error code values,
82 yet also provide access to more abstract and portable error conditions via
83 error_condition objects.
86 Summary: Runtime component of boost filesystem library
87 Group: System/Libraries
88 Provides: libboost_filesystem.so.%{version}
90 %description filesystem
92 Runtime component Boost. FileSystem library, which provides facilities
93 to manipulate files and directories, and the paths that identify them.
97 Summary: Runtime component of boost system library
98 Group: System/Libraries
99 Provides: libboost_regex.so.%{version}
103 Runtime support for boost regular expression library.
107 Summary: The Boost C++ headers and shared development libraries
108 Group: Development/Libraries
109 Requires: boost = %{version}-%{release}
110 Requires: boost-program-options = %{version}-%{release}
111 Requires: boost-thread = %{version}-%{release}
112 Provides: boost-system = %{version}-%{release}
113 Provides: boost-filesystem = %{version}-%{release}
114 Provides: boost-devel = %{version}-%{release}
117 Headers and shared object symlinks for the Boost C++ libraries.
120 Summary: The Boost C++ static development libraries
121 Group: Development/Libraries
122 Requires: boost-devel = %{version}-%{release}
123 Obsoletes: boost-devel-static < 1.34.1-14
124 Provides: boost-devel-static = %{version}-%{release}
127 Static Boost C++ libraries.
130 Summary: Runtime component of boost program_options library
131 Group: System/Libraries
132 Provides: libboost_test.so.%{version}
139 Summary: The Boost C++ html docs
141 Provides: boost-python-docs = %{version}-%{release}
144 HTML documentation files for Boost C++ libraries.
148 #%setup -q -n %{name}_1_51_0
151 #sed 's/_FEDORA_OPT_FLAGS/%{optflags}/' %{PATCH1} | %{__patch} -p0 --fuzz=0
153 #sed 's/_FEDORA_SONAME/%{sonamever}/' %{PATCH3} | %{__patch} -p0 --fuzz=0
163 BOOST_LIBS="program_options,thread,system,filesystem,regex,test"
165 # build make tools, ie bjam, necessary for building libs, docs, and testing
166 #(cd tools/jam/src && ./build.sh)
167 ./bootstrap.sh --with-libraries=$BOOST_LIBS
168 BJAM=`find . -name bjam -a -type f`
171 #CONFIGURE_FLAGS="--with-toolset=gcc"
172 #PYTHON_VERSION=$(python -c 'import sys; print sys.version[:3]')
173 #PYTHON_FLAGS="--with-python-root=/usr --with-python-version=$PYTHON_VERSION"
174 #REGEX_FLAGS="--with-icu"
175 #./bootstrap.sh $CONFIGURE_FLAGS $PYTHON_FLAGS $REGEX_FLAGS
178 #LONGDOUBLE="--disable-long-double"
183 #BUILD_VARIANTS="variant=release threading=single,multi debug-symbols=on"
184 #BUILD_FLAGS="-d2 --layout=system $BUILD_VARIANTS $LONGDOUBLE"
185 #$BJAM $BUILD_FLAGS %{?_smp_mflags} stage
187 # build docs, requires a network connection for docbook XSLT stylesheets
188 #%if %{with docs_generated}
190 #chmod +x ../tools/boostbook/setup_boostbook.sh
191 #../tools/boostbook/setup_boostbook.sh
192 #USER_CFG=$BOOST_ROOT/tools/build/v2/user-config.jam
193 #$BOOST_ROOT/$BJAM --v2 -sICU_PATH=/usr --user-config=$USER_CFG html
199 #echo "<p>" `uname -a` "</p>" > status/regression_comment.html
200 #echo "" >> status/regression_comment.html
201 #echo "<p>" `g++ --version` "</p>" >> status/regression_comment.html
202 #echo "" >> status/regression_comment.html
204 #cd tools/regression/build
210 #results1=status/cs-`uname`.html
211 #results2=status/cs-`uname`-links.html
212 #email=benjamin.kosnik@gmail.com
213 #if [ -f $results1 ] && [ -f $results2 ]; then
214 # echo "sending results starting"
215 # testdate=`date +%Y%m%d`
216 # testarch=`uname -m`
217 # results=boost-results-$testdate-$testarch.tar.bz2
218 # tar -cvf boost-results-$testdate-$testarch.tar $results1 $results2
219 # bzip2 -f boost-results-$testdate-$testarch.tar
220 # echo | mutt -s "$testdate boost regression $testarch" -a $results $email
221 # echo "sending results finished"
223 # echo "error sending results"
228 rm -rf $RPM_BUILD_ROOT
229 mkdir -p $RPM_BUILD_ROOT%{_libdir}
230 mkdir -p $RPM_BUILD_ROOT%{_includedir}
231 mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
233 mkdir -p %{buildroot}/%{_datadir}/license
234 cp -rf %{_builddir}/%{name}-%{version}/packaging/%{name} %{buildroot}/%{_datadir}/license
237 for i in `find stage -type f -name \*.a`; do
239 install -p -m 0644 $i $RPM_BUILD_ROOT%{_libdir}/$NAME;
241 for i in `find stage \( -type f -o -type l \) -name \*.so*`; do
243 install -p -m 0644 $i $RPM_BUILD_ROOT%{_libdir}/$NAME;
244 strip $RPM_BUILD_ROOT%{_libdir}/$NAME;
245 # SONAME=$i.%{sonamever};
246 # VNAME=$i.%{version};
247 # base=`basename $i`;
249 # SONAMEbase=$base.%{sonamever};
250 # VNAMEbase=$base.%{version};
254 # chrpath --delete $VNAME;
256 # ln -s $VNAMEbase $SONAME;
257 # ln -s $VNAMEbase $NAME;
258 # install -p -m 755 $VNAME $RPM_BUILD_ROOT%{_libdir}/$VNAMEbase;
260 # mv $SONAME $RPM_BUILD_ROOT%{_libdir}/$SONAMEbase;
261 # mv $NAME $RPM_BUILD_ROOT%{_libdir}/$NAMEbase;
264 # install include files
265 find %{name} -type d | while read a; do
266 mkdir -p $RPM_BUILD_ROOT%{_includedir}/$a
267 find $a -mindepth 1 -maxdepth 1 -type f \
268 | xargs -r install -m 644 -p -t $RPM_BUILD_ROOT%{_includedir}/$a
272 DOCPATH=$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/
273 find libs doc more -type f \( -name \*.htm -o -name \*.html \) \
274 | sed -n '/\//{s,/[^/]*$,,;p}' \
275 | sort -u > tmp-doc-directories
276 sed "s:^:$DOCPATH:" tmp-doc-directories | xargs -r mkdir -p
277 cat tmp-doc-directories | while read a; do
278 find $a -mindepth 1 -maxdepth 1 -name \*.htm\* \
279 | xargs install -m 644 -p -t $DOCPATH$a
281 rm tmp-doc-directories
282 install -p -m 644 -t $DOCPATH LICENSE_1_0.txt index.htm
284 # remove scripts used to generate include files
285 find $RPM_BUILD_ROOT%{_includedir}/ \( -name '*.pl' -o -name '*.sh' \) -exec rm {} \;
288 rm -rf $RPM_BUILD_ROOT
290 %post -p /sbin/ldconfig
292 %postun -p /sbin/ldconfig
295 %post chrono -p /sbin/ldconfig
296 %postun chrono -p /sbin/ldconfig
297 %post program-options -p /sbin/ldconfig
299 %postun program-options -p /sbin/ldconfig
302 %post thread -p /sbin/ldconfig
304 %postun thread -p /sbin/ldconfig
307 %post system -p /sbin/ldconfig
309 %postun system -p /sbin/ldconfig
312 %post filesystem -p /sbin/ldconfig
314 %postun filesystem -p /sbin/ldconfig
317 %post doc -p /sbin/ldconfig
319 %postun doc -p /sbin/ldconfig
321 %post regex -p /sbin/ldconfig
323 %postun regex -p /sbin/ldconfig
325 %post devel -p /sbin/ldconfig
327 %postun devel -p /sbin/ldconfig
330 %post static -p /sbin/ldconfig
332 %postun static -p /sbin/ldconfig
335 %post test -p /sbin/ldconfig
337 %postun test -p /sbin/ldconfig
341 %manifest boost.manifest
342 %{_datadir}/license/%{name}
344 %manifest boost.manifest
345 %defattr(-, root, root, -)
346 %{_libdir}/libboost_chrono*.so.%{version}
348 %files program-options
349 %manifest boost.manifest
350 %defattr(-, root, root, -)
351 %{_libdir}/libboost_program_options*.so.%{version}
354 %manifest boost.manifest
355 %defattr(-, root, root, -)
356 %{_libdir}/libboost_thread*.so.%{version}
359 %manifest boost.manifest
360 %defattr(-, root, root, -)
361 %{_libdir}/libboost_system*.so.%{version}
364 %manifest boost.manifest
365 %defattr(-, root, root, -)
366 %{_libdir}/libboost_filesystem*.so.%{version}
369 %manifest boost.manifest
370 %defattr(-, root, root, -)
371 %doc %{_docdir}/%{name}-%{version}
374 %defattr(-, root, root, -)
375 %{_libdir}/libboost_regex*.so.%{version}
378 %defattr(-, root, root, -)
383 %manifest boost.manifest
384 %defattr(-, root, root, -)
388 %manifest boost.manifest
389 %defattr(-, root, root, -)
390 %{_libdir}/libboost_unit_test_framework*.so.%{version}
391 %{_libdir}/libboost_prg_exec_monitor*.so.%{version}