Browse code

Add boost static libs.

Change-Id: I6785a1b5064a47e53e7ff6dbc4a84dc57705b7b1
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2197
Reviewed-by: Xiaolin Li <xiaolinl@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>

Vinay Kulkarni authored on 2017/03/28 05:28:27
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Boost 
2 2
 Name:		boost
3 3
 Version:	1.60.0
4
-Release:	2%{?dist}
4
+Release:	3%{?dist}
5 5
 License:	Boost Software License V1
6 6
 URL:		http://www.boost.org/
7 7
 Group:		System Environment/Security
... ...
@@ -24,33 +24,51 @@ Requires:       %{name} = %{version}-%{release}
24 24
 The boost-devel package contains libraries, header files and documentation
25 25
 for developing applications that use boost.
26 26
 
27
+%package        static
28
+Summary:        boost static libraries
29
+Group:          Development/Libraries
30
+Requires:       %{name} = %{version}-%{release}
31
+
32
+%description    static
33
+The boost-static package contains boost static libraries.
34
+
27 35
 %prep
28 36
 %setup -qn boost_1_60_0
37
+
29 38
 %build
30 39
 ./bootstrap.sh --prefix=%{buildroot}%{_prefix}
31
-./b2 %{?_smp_mflags} stage threading=multi link=shared
40
+./b2 %{?_smp_mflags} stage threading=multi
41
+
32 42
 %install
33
-./b2 install threading=multi link=shared
43
+./b2 install threading=multi
44
+
45
+%post   -p /sbin/ldconfig
46
+%postun -p /sbin/ldconfig
34 47
 
35
-%post	-p /sbin/ldconfig
36
-%postun	-p /sbin/ldconfig
37 48
 %clean
38 49
 rm -rf %{buildroot}/*
50
+
39 51
 %files
40 52
 %defattr(-,root,root)
41
-%{_libdir}/*.so.*
42
-%{_libdir}/*.so
53
+%{_libdir}/libboost_*.so.*
43 54
 
44 55
 %files devel
45
-%{_libdir}/*.a
46
-%{_includedir}/*
56
+%defattr(-,root,root)
57
+%{_includedir}/boost/*
58
+%{_libdir}/libboost_*.so
59
+
60
+%files static
61
+%defattr(-,root,root)
62
+%{_libdir}/libboost_*.a
47 63
 
48 64
 %changelog
49
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.60.0-2
50
--	GA - Bump release of all rpms
51
-*	Wed Apr 27 2016 Xiaolin Li <xiaolinl@vmware.com> 1.60.0-1
65
+*   Wed Mar 23 2017 Vinay Kulkarni <kulkarniv@vmware.com> 1.60.0-3
66
+-   Build static libs in additon to shared.
67
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.60.0-2
68
+-   GA - Bump release of all rpms
69
+*   Wed Apr 27 2016 Xiaolin Li <xiaolinl@vmware.com> 1.60.0-1
52 70
 -   Update to version 1.60.0.
53
-*	Thu Oct 01 2015 Xiaolin Li <xiaolinl@vmware.com> 1.56.0-2
54
-_	Move header files to devel package.
55
-*	Tue Feb 10 2015 Divya Thaluru <dthaluru@vmware.com> 1.56.0-1
56
--	Initial build.	First version
71
+*   Thu Oct 01 2015 Xiaolin Li <xiaolinl@vmware.com> 1.56.0-2
72
+_   Move header files to devel package.
73
+*   Tue Feb 10 2015 Divya Thaluru <dthaluru@vmware.com> 1.56.0-1
74
+-   Initial build. First version