Hello community, here is the log from the commit of package nasc for openSUSE:Factory checked in at 2018-04-16 12:49:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/nasc (Old) and /work/SRC/openSUSE:Factory/.nasc.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nasc" Mon Apr 16 12:49:41 2018 rev:2 rq:596531 version:0.4.7 Changes: -------- --- /work/SRC/openSUSE:Factory/nasc/nasc.changes 2018-01-13 21:44:18.479415133 +0100 +++ /work/SRC/openSUSE:Factory/.nasc.new/nasc.changes 2018-04-16 12:49:45.955416770 +0200 @@ -1,0 +2,15 @@ +Tue Apr 3 03:31:41 UTC 2018 - avvi...@yandex.by + +- Update to 0.4.7: + * Update CMakeLists.txt + * revert forward2 + * Require C++11 in CMake + * Fix a couple more deprecation warnings + * Remove deprecated granite metadata for about dialog + * Use CMake to build libqalculatenasc +- Add sln as required dependency +- Build app with static library +- Build with -Wl,--no-undefined +- Add nasc-0.4.7-link.patch + +------------------------------------------------------------------- Old: ---- nasc-0.4.6.tar.gz New: ---- nasc-0.4.7-link.patch nasc-0.4.7.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nasc.spec ++++++ --- /var/tmp/diff_new_pack.FVWEJw/_old 2018-04-16 12:49:46.503396837 +0200 +++ /var/tmp/diff_new_pack.FVWEJw/_new 2018-04-16 12:49:46.507396691 +0200 @@ -17,18 +17,21 @@ Name: nasc -Version: 0.4.6 +Version: 0.4.7 Release: 0 Summary: Do maths like a normal person License: GPL-3.0 Group: Productivity/Scientific/Math Url: http://parnold-x.github.io/nasc/ Source: https://github.com/parnold-x/nasc/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM link.patch -- Build app with 'Wl,--no-undefined' and static library +Patch0: nasc-0.4.7-link.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkgconfig BuildRequires: update-desktop-files BuildRequires: vala >= 0.28.0 +BuildRequires: pkgconfig(cln) BuildRequires: pkgconfig(gee-0.8) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(granite) @@ -38,6 +41,7 @@ BuildRequires: pkgconfig(libqalculate) BuildRequires: pkgconfig(libsoup-2.4) Requires: qalculate +Requires: %(rpm -qf $(readlink -qne %{_libdir}/libcln.so) --qf '%%{NAME} >= %%{VERSION}') BuildRoot: %{_tmppath}/%{name}-%{version}-build %glib2_gsettings_schema_requires @@ -50,13 +54,16 @@ %prep %setup -q +%patch0 -p2 # Use appdata -sed -i 's/\/metainfo/\/appdata/' $(grep -rl 'metainfo') +sed -i 's/\/metainfo/\/appdata/' $(grep -rwl 'metainfo') %build %cmake \ - -DGSETTINGS_COMPILE=FALSE + -DGSETTINGS_COMPILE=FALSE \ + -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed -Wl,--no-undefined" + make %{?_smp_mflags} %install @@ -76,7 +83,6 @@ %defattr(-,root,root) %doc AUTHORS COPYING README.md %{_bindir}/%{name} -%{_libdir}/libqalculatenasc.so %{_datadir}/applications/com.github.parnold-x.%{name}.desktop %{_datadir}/appdata/com.github.parnold-x.%{name}.appdata.xml %{_datadir}/glib-2.0/schemas/com.github.parnold-x.%{name}.gschema.xml ++++++ nasc-0.4.7-link.patch ++++++ diff -ruN nasc-0.4.7.orig/nasc-0.4.7/CMakeLists.txt nasc-0.4.7/nasc-0.4.7/CMakeLists.txt --- nasc-0.4.7.orig/nasc-0.4.7/CMakeLists.txt 2018-03-26 21:05:02.000000000 +0300 +++ nasc-0.4.7/nasc-0.4.7/CMakeLists.txt 2018-04-03 07:15:24.242242758 +0300 @@ -101,7 +101,8 @@ target_link_libraries(nasc ${QALCULATE_LIB_PATH} ${DEPS_LIBRARIES} - qalculatenasc) + qalculatenasc + -lcln) install (TARGETS nasc RUNTIME DESTINATION bin) diff -ruN nasc-0.4.7.orig/nasc-0.4.7/libqalculatenasc/CMakeLists.txt nasc-0.4.7/nasc-0.4.7/libqalculatenasc/CMakeLists.txt --- nasc-0.4.7.orig/nasc-0.4.7/libqalculatenasc/CMakeLists.txt 2018-03-26 21:05:02.000000000 +0300 +++ nasc-0.4.7/nasc-0.4.7/libqalculatenasc/CMakeLists.txt 2018-04-03 07:47:10.736822446 +0300 @@ -2,6 +2,6 @@ link_directories(${QALC_LIBRARY_DIRS}) include_directories(${QALC_INCLUDE_DIRS}) -add_library(qalculatenasc SHARED +add_library(qalculatenasc STATIC QalculateNasc.cc) -target_link_libraries(qalculatenasc ${QALC_LIBRARIES}) +target_link_libraries(qalculatenasc ${QALC_LIBRARIES} -lcln) ++++++ nasc-0.4.6.tar.gz -> nasc-0.4.7.tar.gz ++++++ ++++ 9622 lines of diff (skipped)