public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kst] pr1: - Update to 2.0.7
@ 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 : 1081423f319f25a17182bb43228c8dbaec35e015
            Author : Orion Poplawski <orion@nwra.com>
            Date   : 2013-07-11T22:15:47-06:00
            Stats  : +11/-231 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/kst/c/1081423f319f25a17182bb43228c8dbaec35e015?branch=pr1

            Log:
            - Update to 2.0.7
- Drop arm patch applied upstream
- spec cleanup
- Rebuild for new cfitsio

---
diff --git a/.gitignore b/.gitignore
index ac0ed97..9390061 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,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

diff --git a/kst-2.0.6-fix-qreal-vs-double-for-arm.patch b/kst-2.0.6-fix-qreal-vs-double-for-arm.patch
deleted file mode 100644
index 3dd7c53..0000000
--- a/kst-2.0.6-fix-qreal-vs-double-for-arm.patch
+++ /dev/null
@@ -1,209 +0,0 @@
-diff -up kst-2.0.6/src/libkstapp/arrowitem.cpp.fix-qreal-vs-double-for-arm kst-2.0.6/src/libkstapp/arrowitem.cpp
---- kst-2.0.6/src/libkstapp/arrowitem.cpp.fix-qreal-vs-double-for-arm	2012-07-22 08:24:59.000000000 -0500
-+++ kst-2.0.6/src/libkstapp/arrowitem.cpp	2013-03-19 09:55:52.156800203 -0500
-@@ -65,7 +65,7 @@ void ArrowItem::paint(QPainter *painter)
-     double sina = sin(theta);
-     double cosa = cos(theta);
-     double yin = sqrt(3.0) * deltax;
--    double x1, y1, x2, y2;
-+    qreal x1, y1, x2, y2;
-     QMatrix m(cosa, sina, -sina, cosa, 0.0, 0.0);
- 
-     m.map( deltax, yin, &x1, &y1);
-@@ -86,7 +86,7 @@ void ArrowItem::paint(QPainter *painter)
-     double sina = sin(theta);
-     double cosa = cos(theta);
-     double yin = sqrt(3.0) * deltax;
--    double x1, y1, x2, y2;
-+    qreal x1, y1, x2, y2;
-     QMatrix m(cosa, sina, -sina, cosa, 0.0, 0.0);
- 
-     m.map( deltax, yin, &x1, &y1);
-diff -up kst-2.0.6/src/libkstapp/mainwindow.cpp.fix-qreal-vs-double-for-arm kst-2.0.6/src/libkstapp/mainwindow.cpp
---- kst-2.0.6/src/libkstapp/mainwindow.cpp.fix-qreal-vs-double-for-arm	2012-07-22 08:24:59.000000000 -0500
-+++ kst-2.0.6/src/libkstapp/mainwindow.cpp	2013-03-19 09:55:52.156800203 -0500
-@@ -673,7 +673,7 @@ void MainWindow::savePrinterDefaults(QPr
-   _dialogDefaults->setValue("print/landscape", printer->orientation() == QPrinter::Landscape);
-   _dialogDefaults->setValue("print/paperSize", int(printer->paperSize()));
- 
--  double left, top, right, bottom;
-+  qreal left, top, right, bottom;
-   printer->getPageMargins(&left, &top, &right, &bottom, QPrinter::Millimeter);
-   _dialogDefaults->setValue("print/topLeftMargin", QPointF(left, top));
-   _dialogDefaults->setValue("print/bottomRightMargin", QPointF(right, bottom));
-diff -up kst-2.0.6/src/libkstapp/plotaxis.cpp.fix-qreal-vs-double-for-arm kst-2.0.6/src/libkstapp/plotaxis.cpp
---- kst-2.0.6/src/libkstapp/plotaxis.cpp.fix-qreal-vs-double-for-arm	2012-07-22 08:24:59.000000000 -0500
-+++ kst-2.0.6/src/libkstapp/plotaxis.cpp	2013-03-19 09:55:52.157800190 -0500
-@@ -772,8 +772,8 @@ bool PlotAxis::isLinearTickMode() {
- }
- 
- void PlotAxis::updateInterpretTicks(MajorTickMode tickMode) {
--  double min;
--  double max;
-+  qreal min;
-+  qreal max;
- 
-   if (_orientation == Qt::Horizontal) {
-     min = plotItem()->projectionRect().left();
-@@ -788,9 +788,9 @@ void PlotAxis::updateInterpretTicks(Majo
-   double max_jd = convertTimeValueToJD(max);
-   double range_jd = fabs(max_jd - min_jd);
-   double base_jd;
--  double range_u;
--  double tickspacing_u;
--  double tickspacing;
-+  qreal range_u;
-+  qreal tickspacing_u;
-+  qreal tickspacing;
-   QString units;
- 
-   double minimum_units = tickMode;
-diff -up kst-2.0.6/src/libkstapp/plotitem.cpp.fix-qreal-vs-double-for-arm kst-2.0.6/src/libkstapp/plotitem.cpp
---- kst-2.0.6/src/libkstapp/plotitem.cpp.fix-qreal-vs-double-for-arm	2012-07-22 08:24:59.000000000 -0500
-+++ kst-2.0.6/src/libkstapp/plotitem.cpp	2013-03-19 09:55:52.158800178 -0500
-@@ -975,7 +975,7 @@ void PlotItem::paintPlot(QPainter *paint
-   }
-   if (isUseAxisScale()) {
-     QFont font(painter->font());
--    qreal pointSize = qMax((font.pointSizeF() * _numberAxisLabelScaleFactor), ApplicationSettings::self()->minimumFontSize());
-+    qreal pointSize = qMax((font.pointSizeF() * _numberAxisLabelScaleFactor), (qreal)(ApplicationSettings::self()->minimumFontSize()));
-     
-     font.setPointSizeF(pointSize);
-     painter->setFont(font);
-@@ -2699,7 +2699,7 @@ void PlotItem::computedRelationalMax(qre
-       if (relation->ignoreAutoScale())
-         continue;
- 
--      qreal min, max;
-+      double min, max;
-       relation->yRange(projectionRect().left(),
-           projectionRect().right(),
-           &min, &max);
-@@ -2707,11 +2707,11 @@ void PlotItem::computedRelationalMax(qre
-       //If the axis is in log mode, the lower extent will be the
-       //minimum value larger than zero.
-       if (yAxis()->axisLog())
--        minimum = minimum <= 0.0 ? min : qMin(min, minimum);
-+        minimum = minimum <= 0.0 ? min : qMin((qreal)min, minimum);
-       else
--        minimum = qMin(min, minimum);
-+        minimum = qMin((qreal)min, minimum);
- 
--      maximum = qMax(max, maximum);
-+      maximum = qMax((qreal)max, maximum);
-     }
-   }
- }
-diff -up kst-2.0.6/src/libkstapp/plotrenderitem.cpp.fix-qreal-vs-double-for-arm kst-2.0.6/src/libkstapp/plotrenderitem.cpp
---- kst-2.0.6/src/libkstapp/plotrenderitem.cpp.fix-qreal-vs-double-for-arm	2012-07-22 08:24:59.000000000 -0500
-+++ kst-2.0.6/src/libkstapp/plotrenderitem.cpp	2013-03-19 09:55:52.159800165 -0500
-@@ -712,9 +712,9 @@ void PlotRenderItem::highlightNearestDat
-     bool bFoundImage = false;
- 
-     qreal distance, minDistance = 1.0E300;
--    qreal x, y;
-+    double x, y;
-     QPointF matchedPoint;
--    qreal imageZ;
-+    double imageZ;
-     qreal dxPerPix = double(projectionRect().width())/double(rect().width());
- 
-     foreach(RelationPtr relation, relationList()) {
-diff -up kst-2.0.6/src/libkstapp/viewitem.cpp.fix-qreal-vs-double-for-arm kst-2.0.6/src/libkstapp/viewitem.cpp
---- kst-2.0.6/src/libkstapp/viewitem.cpp.fix-qreal-vs-double-for-arm	2012-07-22 08:24:59.000000000 -0500
-+++ kst-2.0.6/src/libkstapp/viewitem.cpp	2013-03-19 09:55:52.159800165 -0500
-@@ -1087,8 +1087,8 @@ void ViewItem::creationPolygonChanged(Vi
- 
-   if (event == View::MouseMove) {
-     const QPolygonF poly = mapFromScene(view()->creationPolygon(View::MouseMove));
--    double x0 = qMin(0.0, poly.last().x());
--    double y0 = qMin(0.0, poly.last().y());
-+    double x0 = qMin((qreal)0.0, poly.last().x());
-+    double y0 = qMin((qreal)0.0, poly.last().y());
-     QRectF newRect(x0, y0, fabs(poly.last().x()), fabs(poly.last().y()));
-     setViewRect(newRect);
-     return;
-@@ -1096,14 +1096,14 @@ void ViewItem::creationPolygonChanged(Vi
- 
-   if (event == View::MouseRelease) {
-     const QPolygonF poly = mapFromScene(view()->creationPolygon(View::MouseRelease));
--    double x0 = qMin(0.0, poly.last().x());
--    double y0 = qMin(0.0, poly.last().y());
-+    double x0 = qMin((qreal)0.0, poly.last().x());
-+    double y0 = qMin((qreal)0.0, poly.last().y());
-     QRectF newRect(x0, y0, fabs(poly.last().x()), fabs(poly.last().y()));
- 
-     if (!newRect.isValid()) {
-       newRect = newRect.normalized();
--      newRect.setWidth(qMax(3.0, newRect.width()));
--      newRect.setHeight(qMax(3.0, newRect.height()));
-+      newRect.setWidth(qMax((qreal)3.0, newRect.width()));
-+      newRect.setHeight(qMax((qreal)3.0, newRect.height()));
-       setPos(pos() + newRect.topLeft());
- 
-       newRect.moveTopLeft(QPointF(0, 0));
-@@ -1262,7 +1262,7 @@ void ViewItem::startDragging(QWidget *wi
-   qreal x2 = x1+x3;
-   qreal dx;
- 
--  dx = qMin(0.0, x1);
-+  dx = qMin((qreal)0.0, x1);
-   dx = qMin(x2,dx);
-   dx = qMin(x3,dx);
- 
-@@ -1271,7 +1271,7 @@ void ViewItem::startDragging(QWidget *wi
-   qreal y2 = y1+y3;
-   qreal dy;
- 
--  dy = qMin(0.0, y1);
-+  dy = qMin((qreal)0.0, y1);
-   dy = qMin(y2,dy);
-   dy = qMin(y3,dy);
- 
-diff -up kst-2.0.6/src/libkstmath/image.cpp.fix-qreal-vs-double-for-arm kst-2.0.6/src/libkstmath/image.cpp
---- kst-2.0.6/src/libkstmath/image.cpp.fix-qreal-vs-double-for-arm	2012-07-22 08:24:59.000000000 -0500
-+++ kst-2.0.6/src/libkstmath/image.cpp	2013-03-19 11:39:08.055340812 -0500
-@@ -780,7 +780,7 @@ void Image::paintLegendSymbol(QPainter *
-   QRect bound(QPoint(0,0),size);
- 
-   if (hasColorMap() && (_pal.colorCount()>0)) {
--    double spacing;
-+    qreal spacing;
-     int minor_ticks;
-     computeMajorTickSpacing(&spacing, &minor_ticks, TicksCoarse, upperThreshold() - lowerThreshold());
- 
-diff -up kst-2.0.6/src/libkstmath/plottickcalculator.cpp.fix-qreal-vs-double-for-arm kst-2.0.6/src/libkstmath/plottickcalculator.cpp
---- kst-2.0.6/src/libkstmath/plottickcalculator.cpp.fix-qreal-vs-double-for-arm	2012-07-22 08:24:59.000000000 -0500
-+++ kst-2.0.6/src/libkstmath/plottickcalculator.cpp	2013-03-19 12:17:16.231734670 -0500
-@@ -26,7 +26,7 @@ namespace Kst {
-  * on the axis (but at least 2). The value of M is set by the requested
-  * MajorTickMode.
-  */
--void computeMajorTickSpacing(double *major_spacing, int *minor_count, MajorTickMode majorTickCount, double R) {
-+void computeMajorTickSpacing(qreal *major_spacing, int *minor_count, MajorTickMode majorTickCount, qreal R) {
-   qreal M = majorTickCount;
-   qreal B = floor(log10(R/M));
- 
-@@ -63,7 +63,7 @@ void computeMajorTickSpacing(double *maj
- }
- 
- // compute the major ticks for hours (base = 24) or min/sec (base = 60)
--void computeMajorTickSpacing(double *major_spacing, int *minor_count, MajorTickMode majorTickCount, double R, timeUnits time_units) {
-+void computeMajorTickSpacing(qreal *major_spacing, int *minor_count, MajorTickMode majorTickCount, qreal R, timeUnits time_units) {
-   double base60list[] =     {1.0,2.0,5.0,10.0,20.0,30.0,60.0};
-   int minorlist_minutes[] = {  6,  4,  5,   5,   4,   6,   4};
-   int minorlist_seconds[] = {  5,  4,  5,   5,   4,   6,   6};
-diff -up kst-2.0.6/src/libkstmath/plottickcalculator.h.fix-qreal-vs-double-for-arm kst-2.0.6/src/libkstmath/plottickcalculator.h
---- kst-2.0.6/src/libkstmath/plottickcalculator.h.fix-qreal-vs-double-for-arm	2012-07-22 08:24:59.000000000 -0500
-+++ kst-2.0.6/src/libkstmath/plottickcalculator.h	2013-03-19 09:55:52.160800153 -0500
-@@ -27,8 +27,8 @@ enum MajorTickMode {
- 
- enum timeUnits {Hour, Minute, Second};
- 
--KSTMATH_EXPORT void computeMajorTickSpacing(double *major_spacing, int *minor_count, MajorTickMode majorTickCount, double range);
--KSTMATH_EXPORT void computeMajorTickSpacing(double *major_spacing, int *minor_count, MajorTickMode majorTickCount, double range, timeUnits time_units);
-+KSTMATH_EXPORT void computeMajorTickSpacing(qreal *major_spacing, int *minor_count, MajorTickMode majorTickCount, qreal range);
-+KSTMATH_EXPORT void computeMajorTickSpacing(qreal *major_spacing, int *minor_count, MajorTickMode majorTickCount, qreal range, timeUnits time_units);
- 
- }
- 

diff --git a/kst.spec b/kst.spec
index f60a108..7ad92d3 100644
--- a/kst.spec
+++ b/kst.spec
@@ -1,18 +1,12 @@
 Name:       kst
-Version:    2.0.6
-Release:    6%{?dist}
+Version:    2.0.7
+Release:    1%{?dist}
 Summary:    A data viewing program
 
 Group:      Applications/Engineering
 License:    GPLv3
 URL:        http://kst-plot.kde.org/
-Source0:    http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
-BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-## upstreamable patches
-# fix qreal = double assumptions for arm
-# patch adapted from ubunutu's fix-qreal-vs-double-for-arm.diff for kst-2.0.3
-Patch50: kst-2.0.6-fix-qreal-vs-double-for-arm.patch
+Source0:    http://downloads.sourceforge.net/%{name}/Kst-%{version}.tar.gz
 
 Requires(post):   /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
@@ -97,8 +91,6 @@ A plugin allowing kst to open and read data in getdata (dirfile) format.
 %prep
 %setup -q
 
-%patch50 -p1 -b .fix-qreal-vs-double-for-arm
-
 %build
 
 %cmake -Dkst_merge_files=1 -Dkst_rpath=0 \
@@ -111,20 +103,15 @@ make %{?_smp_mflags} kst2
 #make test
 
 %install
-rm -rf %{buildroot}
 mkdir -p %{buildroot}
 make install/fast DESTDIR=%{buildroot}
 rm -f %{buildroot}%{_bindir}/test_*
 
-%clean
-rm -rf %{buildroot}
-
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
 
 %files
-%defattr(-,root,root,-)
 %doc INSTALL AUTHORS README COPYING COPYING-DOCS COPYING.LGPL 
 
 #binaries
@@ -158,30 +145,31 @@ rm -rf %{buildroot}
 
 
 %files devel
-%defattr(-,root,root,-)
 %{_libdir}/libkst*a
 %{_libdir}/libkst*so
 
 %files docs
-%defattr(-,root,root,-)
 #%{_datadir}/apps/kst/tutorial/gyrodata.dat
 
 %files fits
-%defattr(-,root,root,-)
 %{_libdir}/kst2/plugins/libkst2_datasource_fitsimage.so
 #%{_datadir}/services/kst/kstdata_fitsimage.desktop
 
 %files netcdf
-%defattr(-,root,root,-)
 %{_libdir}/kst2/plugins/libkst2_datasource_netcdf.so
 #%{_datadir}/services/kst/kstdata_netcdf.desktop
 
 %files getdata
-%defattr(-,root,root,-)
 %{_libdir}/kst2/plugins/libkst2_datasource_dirfilesource.so
 #%{_datadir}/services/kst/kstdata_dirfilesource.desktop
 
 %changelog
+* Thu Jul 11 2013 Orion Poplawski <orion@cora.nwra.com> 2.0.7-1
+- Update to 2.0.7
+- Drop arm patch applied upstream
+- spec cleanup
+- Rebuild for new cfitsio
+
 * Fri Mar 22 2013 Jon Ciesla <limburgher@gmail.com> - 2.0.6-6
 - Rebuild for new cfitsio.
 

diff --git a/sources b/sources
index 5dc44a6..52716fb 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-b58621806bbf9c86b028612541534701  kst-2.0.6.tar.gz
+7b8648feefe3b8475eac249daa3a232a  Kst-2.0.7.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.7 Orion Poplawski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox