summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/boost.spec290
1 files changed, 140 insertions, 150 deletions
diff --git a/packaging/boost.spec b/packaging/boost.spec
index 1e7a0fa..bb7953e 100644
--- a/packaging/boost.spec
+++ b/packaging/boost.spec
@@ -1,34 +1,24 @@
%define ver 1.49.0
%define file_version 1_49_0
%define short_version 1_49
-%define lib_appendix %{nil}
#Define to 0 to not generate the pdf documentation
%define build_pdf 0
%define package_pdf 0
-# Just hardcode build_mpi to 1 as soon as openmpi builds on all
-# named architectures.
-
-%define build_mpi 0
%define disable_long_double 0
-%define boost_libs1 libboost_date_time%{lib_appendix} libboost_filesystem%{lib_appendix} libboost_graph%{lib_appendix}
-%define boost_libs2 libboost_iostreams%{lib_appendix} libboost_math%{lib_appendix} libboost_test%{lib_appendix}
-%define boost_libs3 libboost_program_options%{lib_appendix} libboost_python%{lib_appendix} libboost_serialization%{lib_appendix}
-%define boost_libs4 libboost_signals%{lib_appendix} libboost_system%{lib_appendix} libboost_thread%{lib_appendix}
-%define boost_libs5 libboost_wave%{lib_appendix} libboost_regex%{lib_appendix} libboost_regex%{lib_appendix}
-%define boost_libs6 libboost_random%{lib_appendix} libboost_chrono%{lib_appendix} libboost_locale%{lib_appendix}
-%define boost_libs7 libboost_timer%{lib_appendix}
+%define boost_libs1 libboost_date_time libboost_filesystem%{lib_appendix} libboost_graph%{lib_appendix}
+%define boost_libs2 libboost_iostreams libboost_math%{lib_appendix} libboost_test%{lib_appendix}
+%define boost_libs3 libboost_program_options libboost_python%{lib_appendix} libboost_serialization%{lib_appendix}
+%define boost_libs4 libboost_signals libboost_system%{lib_appendix} libboost_thread%{lib_appendix}
+%define boost_libs5 libboost_wave libboost_regex%{lib_appendix} libboost_regex%{lib_appendix}
+%define boost_libs6 libboost_random libboost_chrono%{lib_appendix} libboost_locale%{lib_appendix}
+%define boost_libs7 libboost_timer
-%define most_libs %boost_libs1 %boost_libs2 %boost_libs3 %boost_libs4 %boost_libs5 %boost_libs6 %boost_libs7
+%define all_libs %boost_libs0 %boost_libs2 %boost_libs3 %boost_libs4 %boost_libs5 %boost_libs6 %boost_libs7
-%if %build_mpi
-%define all_libs %{most_libs} libboost_mpi%{lib_appendix}
-%else
-%define all_libs %{most_libs}
-%endif
%define debug_package_requires %{all_libs}
@@ -43,15 +33,11 @@ BuildRequires: expat-devel
BuildRequires: libicu-devel
BuildRequires: python-devel
BuildRequires: xz
-%if %build_mpi
-BuildRequires: openmpi-devel
-%endif
BuildRequires: fdupes
Url: http://www.boost.org
Summary: Boost C++ Libraries
License: BSD-3-Clause
Group: Development/Libraries/C and C++
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
Version: 1.49.0
Release: 0
Source0: %{name}_%{file_version}.tar.bz2
@@ -93,184 +79,188 @@ the documentation packages (html, man or pdf).
-%package -n boost-license%{lib_appendix}
+%package -n boost-license
Summary: Boost License
Group: Development/Libraries/C and C++
-Provides: boost-license = %{version}-%{release}
-Obsoletes: boost-license < %{version}
BuildArch: noarch
-%description -n boost-license%{lib_appendix}
+%description -n boost-license
This package contains the license boost is provided under.
-%package -n libboost_date_time%{lib_appendix}
+%package -n libboost_date_time
Summary: Boost::Date.Time Runtime libraries
Group: System/Libraries
-Requires: boost-license%{lib_appendix}
+Requires: boost-license
+Provides: boost-datetime
-%description -n libboost_date_time%{lib_appendix}
+%description -n libboost_date_time
This package contains the Boost Date.Time runtime libraries.
-%package -n libboost_filesystem%{lib_appendix}
+%package -n libboost_filesystem
Summary: Boost::Filesystem Runtime Libraries
Group: System/Localization
-Requires: boost-license%{lib_appendix}
+Requires: boost-license
+Provides: boost-filesystem
-%description -n libboost_filesystem%{lib_appendix}
+%description -n libboost_filesystem
This package contains the Boost::Filesystem libraries.
-%package -n libboost_graph%{lib_appendix}
+%package -n libboost_graph
Summary: Boost::Graph Runtime Libraries
Group: System/Libraries
-Requires: boost-license%{lib_appendix}
+Requires: boost-license
+Provides: boost-graph
-%description -n libboost_graph%{lib_appendix}
+%description -n libboost_graph
This package contains the Boost::Graph Runtime libraries.
-%package -n libboost_iostreams%{lib_appendix}
+%package -n libboost_iostreams
Summary: Boost::IOStreams Runtime Libraries
Group: System/Libraries
-Requires: boost-license%{lib_appendix}
+Requires: boost-license
+Provides: boost-iostreams
-%description -n libboost_iostreams%{lib_appendix}
+%description -n libboost_iostreams
This package contains the Boost::IOStreams Runtime libraries.
-%package -n libboost_math%{lib_appendix}
+%package -n libboost_math
Summary: Boost::Math Runtime Libraries
Group: System/Libraries
-Requires: boost-license%{lib_appendix}
+Requires: boost-license
+Provides: boost-math
-%description -n libboost_math%{lib_appendix}
+%description -n libboost_math
This package contains the Boost::Math Runtime libraries.
-%if %build_mpi
-
-%package -n libboost_mpi%{lib_appendix}
-Summary: Boost::MPI Runtime libraries
-Group: System/Libraries
-Requires: boost-license%{lib_appendix}
-
-%description -n libboost_mpi%{lib_appendix}
-This package contains the Boost::MPI Runtime libraries.
-
-%endif
-%package -n libboost_test%{lib_appendix}
+%package -n libboost_test
Summary: Boost::Test Runtime Libraries
Group: System/Libraries
-Requires: boost-license%{lib_appendix}
+Requires: boost-license
+Provides: boost-test
-%description -n libboost_test%{lib_appendix}
+%description -n libboost_test
This package contains the Boost::Test runtime libraries.
-%package -n libboost_program_options%{lib_appendix}
+%package -n libboost_program_options
Summary: Boost::ProgramOptions Runtime libraries
Group: System/Libraries
-Requires: boost-license%{lib_appendix}
+Requires: boost-license
+Provides: boost-program-options
-%description -n libboost_program_options%{lib_appendix}
+%description -n libboost_program_options
This package contains the Boost::ProgramOptions Runtime libraries.
-%package -n libboost_python%{lib_appendix}
+%package -n libboost_python
Summary: Boost::Python Runtime Libraries
Group: System/Libraries
-Requires: boost-license%{lib_appendix}
+Requires: boost-license
+Provides: boost-python
-%description -n libboost_python%{lib_appendix}
+%description -n libboost_python
This package contains the Boost::Python Runtime libraries.
-%package -n libboost_serialization%{lib_appendix}
+%package -n libboost_serialization
Summary: Boost::Serialization Runtime Libraries
Group: System/Libraries
-Requires: boost-license%{lib_appendix}
+Requires: boost-license
+Provides: boost-serialization
-%description -n libboost_serialization%{lib_appendix}
+%description -n libboost_serialization
This package contains the Boost::Serialization Runtime libraries.
-%package -n libboost_signals%{lib_appendix}
+%package -n libboost_signals
Summary: Boost::Signals Runtime Libraries
Group: System/Libraries
-Requires: boost-license%{lib_appendix}
+Requires: boost-license
-%description -n libboost_signals%{lib_appendix}
+%description -n libboost_signals
This package contains the Boost::Signals Runtime libraries.
-%package -n libboost_system%{lib_appendix}
+%package -n libboost_system
Summary: Boost::System Runtime Libraries
Group: System/Libraries
-Requires: boost-license%{lib_appendix}
+Requires: boost-license
+Provides: boost-system
-%description -n libboost_system%{lib_appendix}
+%description -n libboost_system
This package contains the Boost::System runtime libraries.
-%package -n libboost_thread%{lib_appendix}
+%package -n libboost_thread
Summary: Boost::Thread Runtime Libraries
Group: System/Libraries
-Requires: boost-license%{lib_appendix}
+Requires: boost-license
+Provides: boost-thread
-%description -n libboost_thread%{lib_appendix}
+%description -n libboost_thread
This package contains the Boost::Thread runtime libraries.
-%package -n libboost_wave%{lib_appendix}
+%package -n libboost_wave
Summary: Boost::Wave Runtime Libraries
Group: System/Libraries
-Requires: boost-license%{lib_appendix}
+Requires: boost-license
+Provides: boost-wave
-%description -n libboost_wave%{lib_appendix}
+%description -n libboost_wave
This package contains the Boost::Wave runtime libraries.
-%package -n libboost_regex%{lib_appendix}
+%package -n libboost_regex
Summary: The Boost::Regex runtime library
Group: System/Libraries
-Requires: boost-license%{lib_appendix}
+Requires: boost-license
+Provides: boost-regex
-%description -n libboost_regex%{lib_appendix}
+%description -n libboost_regex
This package contains the Boost::Regex runtime library.
-%package -n libboost_random%{lib_appendix}
+%package -n libboost_random
Summary: The Boost::Random runtime library
Group: System/Libraries
-Requires: boost-license%{lib_appendix}
+Requires: boost-license
+Provides: boost-random
-%description -n libboost_random%{lib_appendix}
+%description -n libboost_random
This package contains the Boost::Random runtime library.
-%package -n libboost_chrono%{lib_appendix}
+%package -n libboost_chrono
Summary: The Boost::Chrono runtime library
Group: System/Libraries
-Requires: boost-license%{lib_appendix}
+Requires: boost-license
+Provides: boost-chrono
-%description -n libboost_chrono%{lib_appendix}
+%description -n libboost_chrono
This package contains the Boost::Chrono runtime library.
-%package -n libboost_locale%{lib_appendix}
+%package -n libboost_locale
Summary: The Boost::Locale runtime library
Group: System/Libraries
-Requires: boost-license%{lib_appendix}
+Requires: boost-license
+Provides: boost-locale
-%description -n libboost_locale%{lib_appendix}
+%description -n libboost_locale
This package contains the Boost::Locale runtime library.
-%package -n libboost_timer%{lib_appendix}
+%package -n libboost_timer
Summary: The Boost::Timer runtime library
Group: System/Libraries
-Requires: boost-license%{lib_appendix}
+Requires: boost-license
+Provides: boost-timer
-%description -n libboost_timer%{lib_appendix}
+%description -n libboost_timer
This package contains the Boost::Timer runtime library.
@@ -420,136 +410,136 @@ rm -f %{buildroot}%{_libdir}/*.a
%remove_docs
-%post -n libboost_date_time%{lib_appendix} -p /sbin/ldconfig
-%post -n libboost_filesystem%{lib_appendix} -p /sbin/ldconfig
-%post -n libboost_iostreams%{lib_appendix} -p /sbin/ldconfig
-%post -n libboost_test%{lib_appendix} -p /sbin/ldconfig
-%post -n libboost_program_options%{lib_appendix} -p /sbin/ldconfig
-%post -n libboost_python%{lib_appendix} -p /sbin/ldconfig
-%post -n libboost_regex%{lib_appendix} -p /sbin/ldconfig
-%post -n libboost_serialization%{lib_appendix} -p /sbin/ldconfig
-%post -n libboost_signals%{lib_appendix} -p /sbin/ldconfig
-%post -n libboost_thread%{lib_appendix} -p /sbin/ldconfig
-%post -n libboost_math%{lib_appendix} -p /sbin/ldconfig
+%post -n libboost_date_time -p /sbin/ldconfig
+%post -n libboost_filesystem -p /sbin/ldconfig
+%post -n libboost_iostreams -p /sbin/ldconfig
+%post -n libboost_test -p /sbin/ldconfig
+%post -n libboost_program_options -p /sbin/ldconfig
+%post -n libboost_python -p /sbin/ldconfig
+%post -n libboost_regex -p /sbin/ldconfig
+%post -n libboost_serialization -p /sbin/ldconfig
+%post -n libboost_signals -p /sbin/ldconfig
+%post -n libboost_thread -p /sbin/ldconfig
+%post -n libboost_math -p /sbin/ldconfig
%if %build_mpi
-%post -n libboost_mpi%{lib_appendix} -p /sbin/ldconfig
+%post -n libboost_mpi -p /sbin/ldconfig
%endif
-%post -n libboost_graph%{lib_appendix} -p /sbin/ldconfig
-%post -n libboost_system%{lib_appendix} -p /sbin/ldconfig
-%post -n libboost_wave%{lib_appendix} -p /sbin/ldconfig
-%post -n libboost_random%{lib_appendix} -p /sbin/ldconfig
-%post -n libboost_chrono%{lib_appendix} -p /sbin/ldconfig
-%post -n libboost_locale%{lib_appendix} -p /sbin/ldconfig
-%post -n libboost_timer%{lib_appendix} -p /sbin/ldconfig
-
-%postun -n libboost_date_time%{lib_appendix} -p /sbin/ldconfig
-%postun -n libboost_filesystem%{lib_appendix} -p /sbin/ldconfig
-%postun -n libboost_iostreams%{lib_appendix} -p /sbin/ldconfig
-%postun -n libboost_test%{lib_appendix} -p /sbin/ldconfig
-%postun -n libboost_program_options%{lib_appendix} -p /sbin/ldconfig
-%postun -n libboost_python%{lib_appendix} -p /sbin/ldconfig
-%postun -n libboost_regex%{lib_appendix} -p /sbin/ldconfig
-%postun -n libboost_serialization%{lib_appendix} -p /sbin/ldconfig
-%postun -n libboost_signals%{lib_appendix} -p /sbin/ldconfig
-%postun -n libboost_thread%{lib_appendix} -p /sbin/ldconfig
-%postun -n libboost_math%{lib_appendix} -p /sbin/ldconfig
+%post -n libboost_graph -p /sbin/ldconfig
+%post -n libboost_system -p /sbin/ldconfig
+%post -n libboost_wave -p /sbin/ldconfig
+%post -n libboost_random -p /sbin/ldconfig
+%post -n libboost_chrono -p /sbin/ldconfig
+%post -n libboost_locale -p /sbin/ldconfig
+%post -n libboost_timer -p /sbin/ldconfig
+
+%postun -n libboost_date_time -p /sbin/ldconfig
+%postun -n libboost_filesystem -p /sbin/ldconfig
+%postun -n libboost_iostreams -p /sbin/ldconfig
+%postun -n libboost_test -p /sbin/ldconfig
+%postun -n libboost_program_options -p /sbin/ldconfig
+%postun -n libboost_python -p /sbin/ldconfig
+%postun -n libboost_regex -p /sbin/ldconfig
+%postun -n libboost_serialization -p /sbin/ldconfig
+%postun -n libboost_signals -p /sbin/ldconfig
+%postun -n libboost_thread -p /sbin/ldconfig
+%postun -n libboost_math -p /sbin/ldconfig
%if %build_mpi
-%postun -n libboost_mpi%{lib_appendix} -p /sbin/ldconfig
+%postun -n libboost_mpi -p /sbin/ldconfig
%endif
-%postun -n libboost_graph%{lib_appendix} -p /sbin/ldconfig
-%postun -n libboost_system%{lib_appendix} -p /sbin/ldconfig
-%postun -n libboost_wave%{lib_appendix} -p /sbin/ldconfig
-%postun -n libboost_random%{lib_appendix} -p /sbin/ldconfig
-%postun -n libboost_chrono%{lib_appendix} -p /sbin/ldconfig
-%postun -n libboost_locale%{lib_appendix} -p /sbin/ldconfig
-%postun -n libboost_timer%{lib_appendix} -p /sbin/ldconfig
+%postun -n libboost_graph -p /sbin/ldconfig
+%postun -n libboost_system -p /sbin/ldconfig
+%postun -n libboost_wave -p /sbin/ldconfig
+%postun -n libboost_random -p /sbin/ldconfig
+%postun -n libboost_chrono -p /sbin/ldconfig
+%postun -n libboost_locale -p /sbin/ldconfig
+%postun -n libboost_timer -p /sbin/ldconfig
-%files -n boost-license%{lib_appendix}
+%files -n boost-license
%defattr(-, root, root, -)
##%doc %{_docdir}/LICENSE_1_0.txt
-%files -n libboost_date_time%{lib_appendix}
+%files -n libboost_date_time
%defattr(-, root, root, -)
%{_libdir}/libboost_date_time*.so.*
-%files -n libboost_filesystem%{lib_appendix}
+%files -n libboost_filesystem
%defattr(-, root, root, -)
%{_libdir}/libboost_filesystem*.so.*
-%files -n libboost_graph%{lib_appendix}
+%files -n libboost_graph
%defattr(-, root, root, -)
%{_libdir}/libboost_graph*.so.*
-%files -n libboost_iostreams%{lib_appendix}
+%files -n libboost_iostreams
%defattr(-, root, root, -)
%{_libdir}/libboost_iostreams*.so.*
-%files -n libboost_math%{lib_appendix}
+%files -n libboost_math
%defattr(-, root, root, -)
%{_libdir}/libboost_math_*.so.*
%if %build_mpi
-%files -n libboost_mpi%{lib_appendix}
+%files -n libboost_mpi
%defattr(-, root, root, -)
%{_libdir}/libboost_mpi*.so.*
%{_libdir}/mpi.so
%endif
-%files -n libboost_test%{lib_appendix}
+%files -n libboost_test
%defattr(-, root, root, -)
%{_libdir}/libboost_prg_exec_monitor*.so.*
%{_libdir}/libboost_unit_test_framework*.so.*
-%files -n libboost_program_options%{lib_appendix}
+%files -n libboost_program_options
%defattr(-, root, root, -)
%{_libdir}/libboost_program_options*.so.*
-%files -n libboost_python%{lib_appendix}
+%files -n libboost_python
%defattr(-, root, root, -)
%{_libdir}/libboost_python*.so.*
-%files -n libboost_serialization%{lib_appendix}
+%files -n libboost_serialization
%defattr(-, root, root, -)
%{_libdir}/libboost_*serialization*.so.*
-%files -n libboost_signals%{lib_appendix}
+%files -n libboost_signals
%defattr(-, root, root, -)
%{_libdir}/libboost_signals*.so.*
-%files -n libboost_system%{lib_appendix}
+%files -n libboost_system
%defattr(-, root, root, -)
%{_libdir}/libboost_system*.so.*
-%files -n libboost_thread%{lib_appendix}
+%files -n libboost_thread
%defattr(-, root, root, -)
%{_libdir}/libboost_thread*.so.*
-%files -n libboost_wave%{lib_appendix}
+%files -n libboost_wave
%defattr(-, root, root, -)
%{_libdir}/libboost_wave*.so.*
-%files -n libboost_regex%{lib_appendix}
+%files -n libboost_regex
%defattr(-, root, root, -)
%{_libdir}/libboost_regex*.so.*
-%files -n libboost_random%{lib_appendix}
+%files -n libboost_random
%defattr(-, root, root, -)
%{_libdir}/libboost_random*.so.*
-%files -n libboost_chrono%{lib_appendix}
+%files -n libboost_chrono
%defattr(-, root, root, -)
%{_libdir}/libboost_chrono*.so.*
-%files -n libboost_locale%{lib_appendix}
+%files -n libboost_locale
%defattr(-, root, root, -)
%{_libdir}/libboost_locale*.so.*
-%files -n libboost_timer%{lib_appendix}
+%files -n libboost_timer
%defattr(-, root, root, -)
%{_libdir}/libboost_timer*.so.*