Hello community, here is the log from the commit of package libbullet for openSUSE:Factory checked in at 2016-07-12 23:51:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libbullet (Old) and /work/SRC/openSUSE:Factory/.libbullet.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libbullet" Changes: -------- --- /work/SRC/openSUSE:Factory/libbullet/libbullet.changes 2016-05-17 17:15:30.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libbullet.new/libbullet.changes 2016-07-12 23:51:22.000000000 +0200 @@ -1,0 +2,16 @@ +Tue Jul 5 03:57:52 UTC 2016 - dap.darkn...@gmail.com + +- Added -fPIC to CXXFLAGS to prevent linking error. + +------------------------------------------------------------------- +Sat Jun 25 23:07:01 UTC 2016 - dap.darkn...@gmail.com + +- Set cmake options to get build that will be sufficient + for stuntrally package (file loader & world importer). +- Introduced new subpackages so. +- Introduced packages description macro. +- Introduced shared objects version macro. +- Added -fno-strict-aliasing compiler flag because of warning. +- Prevented openSUSE 13.2 i586 & SLE11 build failures. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libbullet.spec ++++++ --- /var/tmp/diff_new_pack.zdmMon/_old 2016-07-12 23:51:23.000000000 +0200 +++ /var/tmp/diff_new_pack.zdmMon/_new 2016-07-12 23:51:23.000000000 +0200 @@ -16,7 +16,13 @@ # -%define lname libbullet2_83 +%define sover 2_83 +%define lname libbullet%{sover} +%define pdesc Bullet is a Collision Detection and Rigid Body Dynamics \ +Library. The Library is Open Source and free for commercial use, under \ +the ZLib license. This means you can use it in commercial games, even on \ +next-generation consoles like Sony Playstation 3. + Name: libbullet Version: 2.83.7 Release: 0 @@ -27,19 +33,16 @@ Source: https://github.com/bulletphysics/bullet3/archive/%{version}/bullet3-%{version}.tar.gz Patch0: fix-gtest.patch Patch1: fix-pkgconfig-cflags.patch + BuildRequires: cmake BuildRequires: fdupes BuildRequires: freeglut-devel -BuildRequires: gcc-c++ -BuildRequires: libxml2-devel +BuildRequires: gcc-c++ >= 4.8 BuildRequires: pkgconfig -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: pkgconfig(libxml-2.0) %description -Bullet is a Collision Detection and Rigid Body Dynamics Library. The -Library is Open Source and free for commercial use, under the ZLib -license. This means you can use it in commercial games, even on -next-generation consoles like Sony Playstation 3. +%{pdesc} %package -n %{lname} Summary: Bullet Continuous Collision Detection and Physics Library @@ -48,15 +51,68 @@ Provides: libbullet = %{version}-%{release} %description -n %{lname} -Bullet is a Collision Detection and Rigid Body Dynamics Library. The -Library is Open Source and free for commercial use, under the ZLib -license. This means you can use it in commercial games, even on -next-generation consoles like Sony Playstation 3. +%{pdesc} + +%package -n libBulletFileLoader%{sover} +Summary: Bullet File Loader Library +Group: System/Libraries + +%description -n libBulletFileLoader%{sover} +%{pdesc} + +%package -n libBulletInverseDynamicsUtils%{sover} +Summary: Bullet Inverse Dynamics Utils Library +Group: System/Libraries + +%description -n libBulletInverseDynamicsUtils%{sover} +%{pdesc} + +%package -n libBulletWorldImporter%{sover} +Summary: Bullet World Importer Library +Group: System/Libraries + +%description -n libBulletWorldImporter%{sover} +%{pdesc} + +%package -n libBulletXmlWorldImporter%{sover} +Summary: Bullet Xml World Importer Library +Group: System/Libraries + +%description -n libBulletXmlWorldImporter%{sover} +%{pdesc} + +%package -n libConvexDecomposition%{sover} +Summary: Bullet Convex Decomposition Library +Group: System/Libraries + +%description -n libConvexDecomposition%{sover} +%{pdesc} + +%package -n libGIMPACTUtils%{sover} +Summary: Bullet GIMPACT Utils Library +Group: System/Libraries + +%description -n libGIMPACTUtils%{sover} +%{pdesc} + +%package -n libHACD%{sover} +Summary: Bullet HACD Library +Group: System/Libraries + +%description -n libHACD%{sover} +%{pdesc} %package devel Summary: Development package for bullet library Group: Development/Libraries/C and C++ Requires: %{lname} = %{version} +Requires: libBulletFileLoader%{sover} = %{version} +Requires: libBulletInverseDynamicsUtils%{sover} = %{version} +Requires: libBulletWorldImporter%{sover} = %{version} +Requires: libBulletXmlWorldImporter%{sover} = %{version} +Requires: libConvexDecomposition%{sover} = %{version} +Requires: libGIMPACTUtils%{sover} = %{version} +Requires: libHACD%{sover} = %{version} %description devel This package contain all that is needed to developer or compile @@ -69,9 +125,21 @@ sed -i 's/\r//' README.md %build -LIB_DIR=%{_lib} +tmpflags="%{optflags} -fno-strict-aliasing -fPIC" +%ifarch %ix86 +%if 0%{suse_version} == 1320 +tmpflags="${tmpflags} -fno-stack-protector" +%endif +%endif %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_C_FLAGS="${tmpflags}" \ + -DCMAKE_CXX_FLAGS="${tmpflags}" \ -DINCLUDE_INSTALL_DIR="%{_includedir}/bullet" \ + -DBUILD_SHARED_LIBS=ON \ + -DBUILD_EXTRAS=ON \ + -DBUILD_CPU_DEMOS=OFF \ + -DINSTALL_LIBS=ON \ + -DINSTALL_EXTRA_LIBS=on \ -DBUILD_BULLET2_DEMOS=OFF \ -DBUILD_OPENGL3_DEMOS=OFF @@ -84,19 +152,70 @@ %post -n %{lname} -p /sbin/ldconfig %postun -n %{lname} -p /sbin/ldconfig +%post -n libBulletFileLoader%{sover} -p /sbin/ldconfig +%postun -n libBulletFileLoader%{sover} -p /sbin/ldconfig + +%post -n libBulletInverseDynamicsUtils%{sover} -p /sbin/ldconfig +%postun -n libBulletInverseDynamicsUtils%{sover} -p /sbin/ldconfig + +%post -n libBulletWorldImporter%{sover} -p /sbin/ldconfig +%postun -n libBulletWorldImporter%{sover} -p /sbin/ldconfig + +%post -n libBulletXmlWorldImporter%{sover} -p /sbin/ldconfig +%postun -n libBulletXmlWorldImporter%{sover} -p /sbin/ldconfig + +%post -n libConvexDecomposition%{sover} -p /sbin/ldconfig +%postun -n libConvexDecomposition%{sover} -p /sbin/ldconfig + +%post -n libGIMPACTUtils%{sover} -p /sbin/ldconfig +%postun -n libGIMPACTUtils%{sover} -p /sbin/ldconfig + +%post -n libHACD%{sover} -p /sbin/ldconfig +%postun -n libHACD%{sover} -p /sbin/ldconfig + %files -n %{lname} %defattr(-,root,root) %doc README.md LICENSE.txt AUTHORS.txt %{_libdir}/libB*.so.* %{_libdir}/libLinearMath*.so.* +%exclude %{_libdir}/libBulletFileLoader.so.* +%exclude %{_libdir}/libBulletInverseDynamicsUtils.so.* +%exclude %{_libdir}/libBulletWorldImporter.so.* +%exclude %{_libdir}/libBulletXmlWorldImporter.so.* + +%files -n libBulletFileLoader%{sover} +%defattr(-,root,root) +%{_libdir}/libBulletFileLoader.so.* + +%files -n libBulletInverseDynamicsUtils%{sover} +%defattr(-,root,root) +%{_libdir}/libBulletInverseDynamicsUtils.so.* + +%files -n libBulletWorldImporter%{sover} +%defattr(-,root,root) +%{_libdir}/libBulletWorldImporter.so.* + +%files -n libBulletXmlWorldImporter%{sover} +%defattr(-,root,root) +%{_libdir}/libBulletXmlWorldImporter.so.* + +%files -n libConvexDecomposition%{sover} +%defattr(-,root,root) +%{_libdir}/libConvexDecomposition.so.* + +%files -n libGIMPACTUtils%{sover} +%defattr(-,root,root) +%{_libdir}/libGIMPACTUtils.so.* + +%files -n libHACD%{sover} +%defattr(-,root,root) +%{_libdir}/libHACD.so.* %files devel %defattr(-,root,root) %{_includedir}/bullet/ %{_libdir}/pkgconfig/bullet.pc -%{_libdir}/libB*.so -%{_libdir}/libLinearMath*.so -%dir %{_libdir}/cmake +%{_libdir}/lib*.so %{_libdir}/cmake/bullet %changelog