public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kst] pr1: Update to 2.0.8
@ 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 : 870465d785f0ceb9914cff1969db7aa2a519fcff
Author : Orion Poplawski <orion@cora.nwra.com>
Date : 2015-01-07T13:34:32-07:00
Stats : +21/-127 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/kst/c/870465d785f0ceb9914cff1969db7aa2a519fcff?branch=pr1
Log:
Update to 2.0.8
---
diff --git a/.gitignore b/.gitignore
index 9390061..707da6e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ kst-1.8.0.tar.gz
/kst-2.0.3.tar.gz
/kst-2.0.6.tar.gz
/Kst-2.0.7.tar.gz
+/Kst-2.0.8.tar.gz
diff --git a/kst-2.0.7-qreal.patch b/kst-2.0.7-qreal.patch
deleted file mode 100644
index 7ebfe90..0000000
--- a/kst-2.0.7-qreal.patch
+++ /dev/null
@@ -1,104 +0,0 @@
-diff -up kst-2.0.7/src/libkstapp/circleitem.cpp.qreal kst-2.0.7/src/libkstapp/circleitem.cpp
---- kst-2.0.7/src/libkstapp/circleitem.cpp.qreal 2013-06-27 01:41:22.000000000 -0500
-+++ kst-2.0.7/src/libkstapp/circleitem.cpp 2013-08-13 01:31:29.012803851 -0500
-@@ -70,7 +70,7 @@ void CircleItem::creationPolygonChanged(
- const QPolygonF poly = mapFromScene(view()->creationPolygon(View::MouseMove));
- qreal dx = poly.last().x();
- qreal dy = poly.last().y();
-- qreal r = qMax(qreal(2.0),sqrt(dx*dx + dy*dy));
-+ qreal r = qMax(qreal(2.0),qSqrt(dx*dx + dy*dy));
-
- QRectF newRect(-r, -r, 2.0*r, 2.0*r);
- setViewRect(newRect);
-diff -up kst-2.0.7/src/libkstapp/plotrenderitem.cpp.qreal kst-2.0.7/src/libkstapp/plotrenderitem.cpp
---- kst-2.0.7/src/libkstapp/plotrenderitem.cpp.qreal 2013-06-27 01:41:22.000000000 -0500
-+++ kst-2.0.7/src/libkstapp/plotrenderitem.cpp 2013-08-13 01:42:30.564773288 -0500
-@@ -557,11 +557,11 @@ void PlotRenderItem::mouseMoveEvent(QGra
-
- const QPointF p = event->pos();
-
-- double y = (p.y() - rect().bottom())/(rect().top()-rect().bottom())*(plotItem()->yMax()-plotItem()->yMin())+plotItem()->yMin();
-+ qreal y = (p.y() - rect().bottom())/(rect().top()-rect().bottom())*(plotItem()->yMax()-plotItem()->yMin())+plotItem()->yMin();
- y = qMin(y, plotItem()->yMax());
- y = qMax(y, plotItem()->yMin());
-
-- double x = (p.x() - rect().left())/(rect().right()-rect().left())*(plotItem()->xMax()-plotItem()->xMin())+plotItem()->xMin();
-+ qreal x = (p.x() - rect().left())/(rect().right()-rect().left())*(plotItem()->xMax()-plotItem()->xMin())+plotItem()->xMin();
- x = qMin(x, plotItem()->xMax());
- x = qMax(x, plotItem()->xMin());
-
-@@ -661,8 +661,8 @@ void PlotRenderItem::mouseReleaseEvent(Q
- }
- }
-
--void PlotRenderItem::hoverYZoomMouseCursor(double y) {
-- double py;
-+void PlotRenderItem::hoverYZoomMouseCursor(qreal y) {
-+ qreal py;
-
- py = (y-plotItem()->yMin())/(plotItem()->yMax() - plotItem()->yMin())*(rect().top()-rect().bottom()) + rect().bottom();
- py = qMin(py, rect().bottom());
-@@ -676,8 +676,8 @@ void PlotRenderItem::hoverYZoomMouseCurs
-
- }
-
--void PlotRenderItem::hoverXZoomMouseCursor(double x) {
-- double px;
-+void PlotRenderItem::hoverXZoomMouseCursor(qreal x) {
-+ qreal px;
-
- px = (x-plotItem()->xMin())/(plotItem()->xMax() - plotItem()->xMin())*(rect().right()-rect().left()) + rect().left();
- px = qMax(px, rect().left());
-@@ -690,8 +690,8 @@ void PlotRenderItem::hoverXZoomMouseCurs
- update(); //FIXME should optimize instead of redrawing entire curve!
- }
-
--void PlotRenderItem::dragYZoomMouseCursor(double y) {
-- double py;
-+void PlotRenderItem::dragYZoomMouseCursor(qreal y) {
-+ qreal py;
-
- py = (y-plotItem()->yMin())/(plotItem()->yMax() - plotItem()->yMin())*(rect().top()-rect().bottom()) + rect().bottom();
- py = qMin(py, rect().bottom());
-@@ -702,8 +702,8 @@ void PlotRenderItem::dragYZoomMouseCurso
-
- }
-
--void PlotRenderItem::dragXZoomMouseCursor(double x) {
-- double px;
-+void PlotRenderItem::dragXZoomMouseCursor(qreal x) {
-+ qreal px;
-
- px = (x-plotItem()->xMin())/(plotItem()->xMax() - plotItem()->xMin())*(rect().right()-rect().left()) + rect().left();
- px = qMax(px, rect().left());
-diff -up kst-2.0.7/src/libkstapp/plotrenderitem.h.qreal kst-2.0.7/src/libkstapp/plotrenderitem.h
---- kst-2.0.7/src/libkstapp/plotrenderitem.h.qreal 2013-06-27 01:41:22.000000000 -0500
-+++ kst-2.0.7/src/libkstapp/plotrenderitem.h 2013-08-13 01:43:39.756038046 -0500
-@@ -73,11 +73,11 @@ class PlotRenderItem : public ViewItem
-
- QList<PlotItem*> sharedOrTiedPlots(bool sharedX, bool sharedY);
-
-- void hoverYZoomMouseCursor(double y);
-- void hoverXZoomMouseCursor(double x);
-+ void hoverYZoomMouseCursor(qreal y);
-+ void hoverXZoomMouseCursor(qreal x);
-
-- void dragYZoomMouseCursor(double y);
-- void dragXZoomMouseCursor(double x);
-+ void dragYZoomMouseCursor(qreal y);
-+ void dragXZoomMouseCursor(qreal x);
- public Q_SLOTS:
- virtual void edit();
- virtual void raise();
-diff -up kst-2.0.7/src/libkstapp/view.cpp.qreal kst-2.0.7/src/libkstapp/view.cpp
---- kst-2.0.7/src/libkstapp/view.cpp.qreal 2013-06-27 01:41:22.000000000 -0500
-+++ kst-2.0.7/src/libkstapp/view.cpp 2013-08-12 15:24:42.354774073 -0500
-@@ -630,7 +630,7 @@ double View::resetPlotFontSizes(QList<Pl
- // agressively. The behavior looks pretty good to me with 6.
- qreal count = qMax(plots.count()-6, 1);
-
-- qreal newPointSize = qMax(pointSize/sqrt(count) , ApplicationSettings::self()->minimumFontSize());
-+ qreal newPointSize = qMax(pointSize/qSqrt(count) , ApplicationSettings::self()->minimumFontSize());
- if (newPointSize<pointSize) {
- pointSize = newPointSize;
- }
diff --git a/kst-properties.patch b/kst-properties.patch
index 289497d..8a82a5e 100644
--- a/kst-properties.patch
+++ b/kst-properties.patch
@@ -1,7 +1,7 @@
-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)
+diff -up Kst-2.0.8/cmake/modules/KstMacros.cmake.properties Kst-2.0.8/cmake/modules/KstMacros.cmake
+--- Kst-2.0.8/cmake/modules/KstMacros.cmake.properties 2014-04-07 10:11:03.000000000 -0600
++++ Kst-2.0.8/cmake/modules/KstMacros.cmake 2015-01-07 12:19:32.739898209 -0700
+@@ -93,7 +93,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})
@@ -12,7 +12,7 @@ diff -up kst-2.0.7/cmake/modules/KstMacros.cmake.properties kst-2.0.7/cmake/modu
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)
+@@ -112,7 +114,9 @@ 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})
@@ -21,14 +21,9 @@ diff -up kst-2.0.7/cmake/modules/KstMacros.cmake.properties kst-2.0.7/cmake/modu
+ 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)
+ if(kst_debug_postfix)
+ set_target_properties(${kst_name} PROPERTIES DEBUG_POSTFIX ${kst_debug_postfix})
+@@ -162,7 +166,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)
diff --git a/kst.spec b/kst.spec
index f207fbc..3fa0492 100644
--- a/kst.spec
+++ b/kst.spec
@@ -1,6 +1,6 @@
Name: kst
-Version: 2.0.7
-Release: 7%{?dist}
+Version: 2.0.8
+Release: 1%{?dist}
Summary: A data viewing program
Group: Applications/Engineering
@@ -10,7 +10,6 @@ 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
-Patch1: kst-2.0.7-qreal.patch
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@@ -94,17 +93,15 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
A plugin allowing kst to open and read data in getdata (dirfile) format.
%prep
-%setup -q
+%setup -q -n Kst-%{version}
%patch0 -p1 -b .properties
-%patch1 -p1 -b .qreal
%build
# -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/
+ -Dkst_test=1 -Dkst_release=1 -Dkst_verbose=1
make %{?_smp_mflags} kst2
%check
@@ -116,6 +113,7 @@ make install/fast DESTDIR=%{buildroot}
rm -f %{buildroot}%{_bindir}/test_*
# omit deprecated kde3-era stuff -- rex
rm -frv %{buildroot}%{_datadir}/{applnk,mimelink}/
+%find_lang %{name}_common --with-qt
%post
/sbin/ldconfig
@@ -134,7 +132,7 @@ update-desktop-database -q &> /dev/null ||:
fi
-%files
+%files -f %{name}_common.lang
%doc INSTALL AUTHORS README COPYING COPYING-DOCS COPYING.LGPL
#binaries
@@ -163,13 +161,14 @@ fi
%{_libdir}/kst2/plugins/libkst2_datasource_sampledatasource.so
#%{_datadir}/services/kst/kstdata_sampledatasource.desktop
+%{_libdir}/kst2/plugins/libkst2_datasource_sourcelist.so
+
#%{_datadir}/config/colors/IDL*
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/icons/hicolor/*/apps/*.svg
%{_mandir}/man1/kst2.1.gz
-
%files devel
%{_libdir}/libkst*a
%{_libdir}/libkst*so
@@ -190,6 +189,9 @@ fi
#%{_datadir}/services/kst/kstdata_dirfilesource.desktop
%changelog
+* Wed Jan 7 2015 Orion Poplawski <orion@cora.nwra.com> 2.0.8-1
+- Update to 2.0.8
+
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
diff --git a/sources b/sources
index 52716fb..e1e6a04 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-7b8648feefe3b8475eac249daa3a232a Kst-2.0.7.tar.gz
+6f52c16edb63e8980520bfdaebed3eae Kst-2.0.8.tar.gz
^ 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: Update to 2.0.8 Orion Poplawski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox