]> git.pld-linux.org Git - packages/boost.git/commitdiff
- added python patch - python* packages build now
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 7 Feb 2004 21:33:10 +0000 (21:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    boost.spec -> 1.20

boost.spec

index 7aadc4583f2c6e52ba7415ac2ef26a74066c5306..8b0a5c91e0d86c9ae830d292cdc9fc6d8986144e 100644 (file)
@@ -1,6 +1,6 @@
 #
 # Conditional build:
-%bcond_with    python  # with boost-python support (not working now)
+%bcond_without python  # with boost-python support (not working now)
 #
 Summary:       The Boost C++ Libraries
 Summary(pl):   Biblioteki C++ "Boost"
@@ -11,11 +11,12 @@ License:    Freely distributable
 Group:         Libraries
 Source0:       http://dl.sourceforge.net/boost/%{name}-%{version}.tar.bz2
 # Source0-md5: 4aed692a863bb4beaa0b70d6dc53bda5
+Patch0:                %{name}-python.patch
 URL:           http://www.boost.org/
 BuildRequires: boost-jam >= 3.1.3
 BuildRequires: libstdc++-devel
 BuildRequires: perl-base
-%{?with_python:BuildRequires:  python-devel}
+%{?with_python:BuildRequires:  python-devel >= 2.2}
 BuildConflicts:        gcc = 5:3.3.1
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -50,15 +51,12 @@ Headers and static libraries for the Boost C++ libraries.
 %description devel -l pl
 Pliki nag³ówkowe i biblioteki statyczne bibliotek Boost C++.
 
-#according to ldd (and automatically generated RPM dependencies) it
-#doesn't strictly require python, but IMHO it's cleaner to split it
-#this way
 %package python
 Summary:       Boost.Python library
 Summary(pl):   biblioteka Boost.Python
 Group:         Libraries
 Requires:      %{name} = %{version}-%{release}
-Requires:      python
+%pyrequires_eq python
 
 %description python
 Use the Boost Python Library to quickly and easily export a C++
@@ -82,6 +80,7 @@ Summary:      Boost.Python development headers
 Summary(pl):   Pliki nag³ówkowe dla Boost.Python
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
+Requires:      %{name}-python = %{version}-%{release}
 
 %description python-devel
 Headers for the Boost.Python library.
@@ -89,6 +88,18 @@ Headers for the Boost.Python library.
 %description python-devel -l pl
 Pliki nag³ówkowe dla biblioteki Boost.Python.
 
+%package python-static
+Summary:       Static version of Boost.Python library
+Summary(pl):   Statyczna wersja biblioteki Boost.Python
+Group:         Development/Libraries
+Requires:      %{name}-python-devel = %{version}-%{release}
+
+%description python-static
+Static version of Boost.Python library.
+
+%description python-static -l pl
+Statyczna wersja biblioteki Boost.Python.
+
 %package regex
 Summary:       Boost C++ regular expressions library
 Summary(pl):   Biblioteka wyra¿eñ regularnych Boost C++
@@ -430,6 +441,7 @@ Dokumentacja dla biblioteki Boost C++.
 
 %prep
 %setup -q
+%patch0 -p1
 
 # don't know how to pass it through (b)jam -s (no way?)
 # due to oversophisticated build flags system
@@ -641,10 +653,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/boost/python
 %{_includedir}/boost/python.hpp
 
-# ?
-#%files python-static
-#%defattr(644,root,root,755)
-#%{_libdir}/libboost_python.a
+%files python-static
+%defattr(644,root,root,755)
+%{_libdir}/libboost_python.a
 %endif
 
 %files regex
This page took 0.162798 seconds and 4 git commands to generate.