Hello community, here is the log from the commit of package luabind for openSUSE:Factory checked in at 2017-04-11 09:45:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/luabind (Old) and /work/SRC/openSUSE:Factory/.luabind.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "luabind" Tue Apr 11 09:45:06 2017 rev:3 rq:485711 version:0.9.1+20150408 Changes: -------- --- /work/SRC/openSUSE:Factory/luabind/luabind.changes 2017-02-03 17:49:33.368104038 +0100 +++ /work/SRC/openSUSE:Factory/.luabind.new/luabind.changes 2017-04-11 09:45:08.497263806 +0200 @@ -1,0 +2,5 @@ +Tue Apr 4 18:27:53 UTC 2017 - [email protected] + +- Moved pkgconfig stuff into install-pkgconfig.patch + +------------------------------------------------------------------- New: ---- install-pkgconfig.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ luabind.spec ++++++ --- /var/tmp/diff_new_pack.ruKx5T/_old 2017-04-11 09:45:09.117176235 +0200 +++ /var/tmp/diff_new_pack.ruKx5T/_new 2017-04-11 09:45:09.121175670 +0200 @@ -28,6 +28,7 @@ Source: %{name}-%{version}.tar.xz Source99: update.sh Patch0: fix-cmake-lib-version.patch +Patch1: install-pkgconfig.patch %if 0%{?suse_version} > 1325 BuildRequires: libboost_headers-devel %else @@ -66,6 +67,7 @@ %prep %setup -q %patch0 -p1 +%patch1 -p1 %build %cmake -DBUILD_SHARED_LUABIND=ON -DLIB_DIR="%{_lib}" @@ -80,23 +82,8 @@ %install %cmake_install -# Create a pkgconfig file -mkdir -p "%{buildroot}%{_libdir}/pkgconfig" -cat > "%{buildroot}%{_libdir}/pkgconfig/%{name}.pc" << EOF -prefix=%{_prefix} -exec_prefix=%{_exec_prefix} -includedir=%{_includedir} -libdir=%{_libdir} - -Name: %{name} -Description: %{description} -Version: %{base_version} -Cflags: -I$${includedir} -Libs: -L$${libdir} -l%{name} -EOF %post -n lib%{name}%{sover} -p /sbin/ldconfig - %postun -n lib%{name}%{sover} -p /sbin/ldconfig %files devel ++++++ install-pkgconfig.patch ++++++ diff -Nur luabind-0.9.1+20150408/src/CMakeLists.txt new/src/CMakeLists.txt --- luabind-0.9.1+20150408/src/CMakeLists.txt 2017-04-04 20:14:43.335563532 +0200 +++ new/src/CMakeLists.txt 2017-04-04 20:24:19.791047443 +0200 @@ -137,19 +137,24 @@ set(ALLHEADERS ${LUABIND_API} ${LUABIND_DETAIL_API} PARENT_SCOPE) set(APIHEADERS ${LUABIND_API} PARENT_SCOPE) +if(NOT INCLUDE_DIR) + set(INCLUDE_DIR include) +endif() +if(NOT LIB_DIR) + set(LIB_DIR lib) +endif() +configure_file(luabind.pc.in luabind.pc @ONLY) + if(INSTALL_LUABIND) - if(NOT INCLUDE_DIR) - set(INCLUDE_DIR include) - endif() - if(NOT LIB_DIR) - set(LIB_DIR lib) - endif() if(NOT ARCH_DIR) set(ARCH_DIR lib) endif() if(NOT BIN_DIR) set(BIN_DIR bin) endif() + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/luabind.pc" + DESTINATION ${LIB_DIR}/pkgconfig + COMPONENT sdk) install(FILES ${LUABIND_API} DESTINATION ${INCLUDE_DIR}/luabind COMPONENT sdk) diff -Nur luabind-0.9.1+20150408/src/luabind.pc.in new/src/luabind.pc.in --- luabind-0.9.1+20150408/src/luabind.pc.in 1970-01-01 01:00:00.000000000 +0100 +++ new/src/luabind.pc.in 2017-04-04 20:20:18.579878429 +0200 @@ -0,0 +1,10 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=${prefix} +includedir=${prefix}/@INCLUDE_DIR@ +libdir=${prefix}/@LIB_DIR@ + +Name: luabind +Description: Luabind is a library that helps you create bindings between C++ and Lua. +Version: @CPACK_PACKAGE_VERSION@ +Cflags: -I${includedir} +Libs: -L${libdir} -lluabind
