public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kst] pr1: Add matlab datasource to files; add patch to fix cmake build; Disable kst_merge_files for now
@ 2026-10-06 19:29 Orion Poplawski
0 siblings, 0 replies; only message in thread
From: Orion Poplawski @ 2026-10-06 19:29 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/kst
Branch : pr1
Commit : f998829499d8053568fc9bfb75b4736d3cd1c366
Author : Orion Poplawski <orion@nwra.com>
Date : 2013-07-12T12:48:23-06:00
Stats : +53/-3 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/kst/c/f998829499d8053568fc9bfb75b4736d3cd1c366?branch=pr1
Log:
Add matlab datasource to files; add patch to fix cmake build; Disable kst_merge_files for now
---
diff --git a/kst-properties.patch b/kst-properties.patch
new file mode 100644
index 0000000..289497d
--- /dev/null
+++ b/kst-properties.patch
@@ -0,0 +1,41 @@
+diff -up kst-2.0.7/cmake/modules/KstMacros.cmake.properties kst-2.0.7/cmake/modules/KstMacros.cmake
+--- kst-2.0.7/cmake/modules/KstMacros.cmake.properties 2013-06-27 00:41:22.000000000 -0600
++++ kst-2.0.7/cmake/modules/KstMacros.cmake 2013-07-12 12:20:38.896488499 -0600
+@@ -78,7 +78,9 @@ macro(kst_add_executable)
+ include_directories(${kst_${kst_name}_folder} ${CMAKE_CURRENT_BINARY_DIR})
+ add_executable(${kst_name} ${ARGN} ${kst_${kst_name}_sources} ${kst_${kst_name}_headers} ${kst_${kst_name}_info_files})
+ target_link_libraries(${kst_name} ${kst_qtmain_library})
+- set_property(TARGET ${kst_name} PROPERTY DEBUG_POSTFIX ${kst_debug_postfix})
++ if(kst_debug_postfix)
++ set_property(TARGET ${kst_name} PROPERTY DEBUG_POSTFIX ${kst_debug_postfix})
++ endif()
+ kst_revision_add_dependency()
+ kst_flat_source_group(${kst_${kst_name}_headers} ${kst_${kst_name}_sources_not_generated})
+ endmacro()
+@@ -97,9 +99,13 @@ macro(kst_add_test _source_file)
+ add_executable(${kst_name} ${_source_file})
+ set_target_properties(${kst_name} PROPERTIES DEPEND ${_moced})
+ target_link_libraries(${kst_name} ${QT_QTTEST_LIBRARY})
+- set_property(TARGET ${kst_name} PROPERTY DEBUG_POSTFIX ${kst_debug_postfix})
++ if(kst_debug_postfix)
++ set_property(TARGET ${kst_name} PROPERTY DEBUG_POSTFIX ${kst_debug_postfix})
++ endif()
+ kst_link(${libcore} ${libmath} ${libapp} ${libwidgets} ${QT_QTTEST_LIBRARY})
+- set_target_properties(${kst_name} PROPERTIES DEBUG_POSTFIX ${kst_debug_postfix})
++ if(kst_debug_postfix)
++ set_target_properties(${kst_name} PROPERTIES DEBUG_POSTFIX ${kst_debug_postfix})
++ endif()
+ add_test(NAME ${kst_name} COMMAND ${kst_name})
+ endmacro()
+
+@@ -145,7 +151,9 @@ macro(kst_add_library type)
+ kst_flat_source_group(${kst_${kst_name}_headers} ${kst_${kst_name}_sources_not_generated})
+ endif()
+ set(lib${kst_name_base} ${kst_name} CACHE STRING "actual ${kst_name} name" FORCE)
+- set_property(TARGET ${kst_name} PROPERTY DEBUG_POSTFIX ${kst_debug_postfix})
++ if(kst_debug_postfix)
++ set_property(TARGET ${kst_name} PROPERTY DEBUG_POSTFIX ${kst_debug_postfix})
++ endif()
+ set_target_properties(${kst_name} PROPERTIES VERSION ${kst_version} SOVERSION ${kst_version_major})
+ kst_revision_add_dependency()
+ if(WIN32)
diff --git a/kst.spec b/kst.spec
index 720de1f..6b391be 100644
--- a/kst.spec
+++ b/kst.spec
@@ -7,6 +7,9 @@ Group: Applications/Engineering
License: GPLv3
URL: http://kst-plot.kde.org/
Source0: http://downloads.sourceforge.net/%{name}/Kst-%{version}.tar.gz
+# Fix calls to set_target_properties in KstMacros.cmake
+# https://bugs.kde.org/show_bug.cgi?id=322286
+Patch0: kst-properties.patch
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@@ -91,10 +94,12 @@ A plugin allowing kst to open and read data in getdata (dirfile) format.
%prep
%setup -q
+%patch0 -p1 -b .properties
%build
-
-%cmake -Dkst_merge_files=1 -Dkst_rpath=0 \
+# -Dkst_merge_files=1 is failing for now
+# https://bugs.kde.org/show_bug.cgi?id=322289
+%cmake -Dkst_merge_files=0 -Dkst_rpath=0 \
-Dkst_install_prefix=%{_prefix} -Dkst_install_libdir=%{_lib} \
-Dkst_test=1 -Dkst_release=1 -Dkst_verbose=1 \
cmake/
@@ -135,6 +140,9 @@ rm -f %{buildroot}%{_bindir}/test_*
%{_libdir}/kst2/plugins/libkst2_datasource_qimagesource.so
#%{_datadir}/services/kst/kstdata_qimagesource.desktop
+%{_libdir}/kst2/plugins/libkst2_datasource_matlab.so
+#%{_datadir}/services/kst/kstdata_matlab.desktop
+
%{_libdir}/kst2/plugins/libkst2_datasource_sampledatasource.so
#%{_datadir}/services/kst/kstdata_sampledatasource.desktop
@@ -167,8 +175,9 @@ rm -f %{buildroot}%{_bindir}/test_*
%changelog
* Thu Jul 11 2013 Orion Poplawski <orion@cora.nwra.com> 2.0.7-1
- Update to 2.0.7
-- Add BR on matio-devel
+- Add BR on matio-devel, ship datasource plugin
- Drop arm patch applied upstream
+- Add patch to fix calls to set_target_properties
- spec cleanup
- Rebuild for new cfitsio
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-06 19:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-06 19:29 [rpms/kst] pr1: Add matlab datasource to files; add patch to fix cmake build; Disable kst_merge_files for now Orion Poplawski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox