3 %bcond_with serialization # enable Boost Serialization
6 Summary: The Boost C++ Libraries - MinGW32 cross version
7 Summary(pl.UTF-8): Biblioteki C++ "Boost" - wersja skrośna dla MinGW32
8 Name: crossmingw32-%{realname}
10 %define fver %(echo %{version} | tr . _)
12 License: Boost Software License and others
13 Group: Development/Libraries
14 Source0: http://downloads.sourceforge.net/boost/%{realname}_%{fver}.tar.bz2
15 # Source0-md5: a00d22605d5dbcfb4c9936a9b35bc4c2
16 URL: http://www.boost.org/
17 BuildRequires: crossmingw32-bzip2
18 BuildRequires: crossmingw32-gcc-c++
19 BuildRequires: crossmingw32-runtime
20 BuildRequires: crossmingw32-w32api
21 BuildRequires: crossmingw32-zlib
22 %{?with_serialization:BuildRequires: wine-programs}
23 Requires: crossmingw32-bzip2
24 Requires: crossmingw32-runtime
25 Requires: crossmingw32-zlib
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define no_install_post_strip 1
30 %define target i386-mingw32
31 %define target_platform i386-pc-mingw32
33 %define _sysprefix /usr
34 %define _prefix %{_sysprefix}/%{target}
35 %define _libdir %{_prefix}/lib
36 %define _dlldir /usr/share/wine/windows/system
38 %define __cc %{target}-gcc
39 %define __cxx %{target}-g++
42 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
47 The Boost web site provides free peer-reviewed portable C++ source
48 libraries. The emphasis is on libraries which work well with the C++
49 Standard Library. One goal is to establish "existing practice" and
50 provide reference implementations so that the Boost libraries are
51 suitable for eventual standardization. Some of the libraries have
52 already been proposed for inclusion in the C++ Standards Committee's
53 upcoming C++ Standard Library Technical Report.
55 %description -l pl.UTF-8
56 Strona http://www.boost.org/ dostarcza darmowe biblioteki C++ wraz z
57 kodem źródłowym. Nacisk położono na biblioteki, które dobrze
58 współpracują ze standardową biblioteką C++. Celem jest ustanowienie
59 "istniejącej praktyki" i dostarczenie implementacji, tak że biblioteki
60 "Boost" nadają się do ewentualnej standaryzacji. Niektóre z bibliotek
61 już zostały zgłoszone do komitetu standaryzacyjnego C++ w nadchodzącym
62 Raporcie Technicznym Biblioteki Standardowej C++.
65 Summary: Static Boost libraries (cross MinGW32 version)
66 Summary(pl.UTF-8): Statyczne biblioteki Boost (wersja skrośna MinGW32)
67 Group: Development/Libraries
68 Requires: %{name} = %{version}-%{release}
71 Static Boost libraries (cross MinGW32 version).
73 %description static -l pl.UTF-8
74 Statyczne biblioteki Boost (wersja skrośna MinGW32).
77 Summary: Boost - DLL libraries for Windows
78 Summary(pl.UTF-8): Boost - biblioteki DLL dla Windows
79 Group: Applications/Emulators
80 Requires: crossmingw32-bzip2-dll
81 Requires: crossmingw32-zlib-dll
85 Boost - DLL libraries for Windows.
87 %description dll -l pl.UTF-8
88 Boost - biblioteki DLL dla Windows.
91 %setup -q -n %{realname}_%{fver}
93 echo 'using gcc : : %{target}-g++ : <cxxflags>"%{rpmcxxflags}"' \
94 '<archiver>%{target}-ar ;' >tools/build/v2/user-config.jam
97 %if %{with serialization}
98 export WINEPREFIX=`pwd`/wineprefix
99 install -d wineprefix/drive_c/windows/system32
100 install %{_prefix}/bin/mingwm10.dll wineprefix/drive_c/windows/system32/
103 ./bootstrap.sh --prefix=%{_prefix}
108 -sBZIP2_BINARY=bzip2 \
111 %{!?with_serialization:--without-serialization} \
123 %{target}-strip stage/lib/*.dll
124 %{target}-strip -g -R.comment -R.note stage/lib/*.a
128 rm -rf $RPM_BUILD_ROOT
129 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_dlldir}}
131 cp -r boost $RPM_BUILD_ROOT%{_includedir}
132 cp -a stage/lib/*.a $RPM_BUILD_ROOT%{_libdir}
133 install stage/lib/*.dll $RPM_BUILD_ROOT%{_dlldir}
136 rm -rf $RPM_BUILD_ROOT
139 %defattr(644,root,root,755)
140 %{_libdir}/libboost_*-mgw*-mt-*.dll.a
144 %defattr(644,root,root,755)
145 %{_libdir}/libboost_*-mgw*-mt-*1_53.a
148 %defattr(644,root,root,755)
149 %{_dlldir}/libboost_*-mgw*-mt-*.dll