public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Rich Mattes <richmattes@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/libQGLViewer] epel10: Update to release 2.6.4, with upstream fix for qreal on armv7 (rhbz#1556028)
Date: Mon, 30 Nov 2026 13:55:02 GMT [thread overview]
Message-ID: <179604690220.1.8675969524695315770.rpms-libQGLViewer-1628629a5a34@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/libQGLViewer
Branch : epel10
Commit : 1628629a5a3456a884cb2618ead9395ff4f59b90
Author : Rich Mattes <richmattes@gmail.com>
Date : 2018-08-12T09:37:20-04:00
Stats : +14/-117 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/libQGLViewer/c/1628629a5a3456a884cb2618ead9395ff4f59b90?branch=epel10
Log:
Update to release 2.6.4, with upstream fix for qreal on armv7 (rhbz#1556028)
Remove upstream patch and update library names
---
diff --git a/.gitignore b/.gitignore
index 8cc6f53..3b9371a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ libQGLViewer-2.3.6.tar.gz
/libQGLViewer-2.3.9.tar.gz
/libQGLViewer-2.5.1.tar.gz
/libQGLViewer-2.6.3.tar.gz
+/libQGLViewer-2.6.4.tar.gz
diff --git a/libQGLViewer-2.6.3-qreal.patch b/libQGLViewer-2.6.3-qreal.patch
deleted file mode 100644
index a42cc09..0000000
--- a/libQGLViewer-2.6.3-qreal.patch
+++ /dev/null
@@ -1,97 +0,0 @@
-diff --git a/QGLViewer/vec.h b/QGLViewer/vec.h
-index 6d52178..e4e1461 100644
---- a/QGLViewer/vec.h
-+++ b/QGLViewer/vec.h
-@@ -134,8 +134,8 @@ public:
- }
-
- #ifndef DOXYGEN
-- /*! This method is deprecated since version 2.0. Use operator const double* instead. */
-- const double* address() const { qWarning("Vec::address() is deprecated, use operator const double* instead."); return operator const double*(); }
-+ /*! This method is deprecated since version 2.0. Use operator const qreal* instead. */
-+ const qreal* address() const { qWarning("Vec::address() is deprecated, use operator const qreal* instead."); return operator const qreal*(); }
- #endif
-
- /*! Conversion operator returning the memory address of the vector.
-@@ -146,7 +146,7 @@ public:
- glNormal3dv(normal);
- glVertex3dv(pos);
- \endcode */
-- operator const double*() const {
-+ operator const qreal*() const {
- #ifdef QGLVIEWER_UNION_NOT_SUPPORTED
- return &x;
- #else
-@@ -156,8 +156,8 @@ public:
-
- /*! Non const conversion operator returning the memory address of the vector.
-
-- Useful to pass a Vec to a method that requires and fills a \c double*, as provided by certain libraries. */
-- operator double*() {
-+ Useful to pass a Vec to a method that requires and fills a \c qreal*, as provided by certain libraries. */
-+ operator qreal*() {
- #ifdef QGLVIEWER_UNION_NOT_SUPPORTED
- return &x;
- #else
-diff --git a/QGLViewer/quaternion.cpp b/QGLViewer/quaternion.cpp
-index 8ddac9e..d63637d 100644
---- a/QGLViewer/quaternion.cpp
-+++ b/QGLViewer/quaternion.cpp
-@@ -126,18 +126,6 @@ void Quaternion::setFromRotationMatrix(const qreal m[3][3])
- }
-
- #ifndef DOXYGEN
--void Quaternion::setFromRotationMatrix(const float m[3][3])
--{
-- qWarning("setFromRotationMatrix now expects a double[3][3] parameter");
--
-- qreal mat[3][3];
-- for (int i=0; i<3; ++i)
-- for (int j=0; j<3; ++j)
-- mat[i][j] = qreal(m[i][j]);
--
-- setFromRotationMatrix(mat);
--}
--
- void Quaternion::setFromRotatedBase(const Vec& X, const Vec& Y, const Vec& Z)
- {
- qWarning("setFromRotatedBase is deprecated, use setFromRotatedBasis instead");
-diff --git a/QGLViewer/quaternion.h b/QGLViewer/quaternion.h
-index 49f27e8..0ed7bed 100644
---- a/QGLViewer/quaternion.h
-+++ b/QGLViewer/quaternion.h
-@@ -104,7 +104,6 @@ public:
- { q[0]=q0; q[1]=q1; q[2]=q2; q[3]=q3; }
-
- #ifndef DOXYGEN
-- void setFromRotationMatrix(const float m[3][3]);
- void setFromRotatedBase(const Vec& X, const Vec& Y, const Vec& Z);
- #endif
- void setFromRotationMatrix(const qreal m[3][3]);
-diff --git a/QGLViewer/manipulatedCameraFrame.cpp b/QGLViewer/manipulatedCameraFrame.cpp
-index 9d4f6ac..3be97b3 100644
---- a/QGLViewer/manipulatedCameraFrame.cpp
-+++ b/QGLViewer/manipulatedCameraFrame.cpp
-@@ -196,7 +196,8 @@ void ManipulatedCameraFrame::zoom(qreal delta, const Camera * const camera) {
- if (direction.norm() > 0.02 * sceneRadius || delta > 0.0)
- translate(delta * direction);
- } else {
-- const qreal coef = qMax(fabs((camera->frame()->coordinatesOf(camera->pivotPoint())).z), 0.2 * sceneRadius);
-+ const qreal coef = qMax(fabs((camera->frame()->coordinatesOf(camera->pivotPoint())).z),
-+ qreal(0.2) * sceneRadius);
- Vec trans(0.0, 0.0, -coef * delta);
- translate(inverseTransformOf(trans));
- }
-diff --git a/QGLViewer/saveSnapshot.cpp b/QGLViewer/saveSnapshot.cpp
-index c0334f5..c2b1be8 100644
---- a/QGLViewer/saveSnapshot.cpp
-+++ b/QGLViewer/saveSnapshot.cpp
-@@ -343,7 +343,7 @@
- qreal zNear = camera()->zNear();
- qreal zFar = camera()->zFar();
-
-- qreal xMin, yMin;
-+ GLdouble xMin, yMin;
- bool expand = imageInterface->expandFrustum->isChecked();
- if (camera()->type() == qglviewer::Camera::PERSPECTIVE)
- if ((expand && (newAspectRatio>aspectRatio)) || (!expand && (newAspectRatio<aspectRatio)))
diff --git a/libQGLViewer.spec b/libQGLViewer.spec
index d7be076..b281e07 100644
--- a/libQGLViewer.spec
+++ b/libQGLViewer.spec
@@ -1,6 +1,6 @@
Name: libQGLViewer
-Version: 2.6.3
-Release: 7%{?dist}
+Version: 2.6.4
+Release: 1%{?dist}
Summary: Qt based OpenGL generic 3D viewer library
Group: System Environment/Libraries
@@ -16,14 +16,6 @@ Patch0: libQGLViewer-2.6.3-exit.patch
# them back.
Patch1: libQGLViewer-2.6.3-dbg.patch
-# libQGLViewer-2.6.3 does not compile on armv7:
-# vec.h: In member function 'qglviewer::Vec::operator const double*() const':
-# vec.h:175:10: error: cannot convert 'const qreal* {aka const float*}' to 'const double*' in return
-# return v_;
-# ^~
-Patch2: libQGLViewer-2.6.3-qreal.patch
-
-
BuildRequires: qt4-devel qt5-qtbase-devel
%description
@@ -82,14 +74,12 @@ BuildArch: noarch
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .exit
%patch1 -p1 -b .dbg
-%patch2 -p1 -b .qreal
# Fix permissions
chmod a-x examples/*/*.vcproj
rm -rf ../%{name}-%{version}-qt5
cp -a ../%{name}-%{version} ../%{name}-%{version}-qt5
-sed -i -e 's/TARGET = QGLViewer/TARGET = QGLViewer-qt5/' ../%{name}-%{version}-qt5/QGLViewer/QGLViewer.pro
%build
@@ -123,7 +113,7 @@ cd QGLViewer
LIB_DIR=%{_libdir} \
DOC_DIR=%{_pkgdocdir} \
INCLUDE_DIR=%{_includedir} \
- TARGET_x=%{name}.so.%{version}
+ TARGET_x=%{name}-qt4.so.%{version}
# The TARGET_x variable gives the SONAME. However, qmake behavior is not
# correct when the SONAME is customized: it create wrong symbolic links
# that must be cleaned after the installation.
@@ -147,15 +137,14 @@ cd ../../%{name}-%{version}-qt5/QGLViewer
make %{?_smp_mflags}
%install
-rm -rf $RPM_BUILD_ROOT
cd QGLViewer
make -f Makefile -e INSTALL_ROOT=$RPM_BUILD_ROOT install_target install_include STRIP=/usr/bin/true
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
-rm $RPM_BUILD_ROOT%{_libdir}/libQGLViewer.prl
+rm $RPM_BUILD_ROOT%{_libdir}/libQGLViewer-qt4.prl
# Clean symbolic links
-rm $RPM_BUILD_ROOT%{_libdir}/libQGLViewer.so.?.? \
- $RPM_BUILD_ROOT%{_libdir}/libQGLViewer.so.%{version}\\*
+rm $RPM_BUILD_ROOT%{_libdir}/libQGLViewer-qt4.so.?.? \
+ $RPM_BUILD_ROOT%{_libdir}/libQGLViewer-qt4.so.%{version}\\*
cd ../designerPlugin
make -e INSTALL_ROOT=$RPM_BUILD_ROOT install STRIP=/usr/bin/true
@@ -180,11 +169,11 @@ rm $RPM_BUILD_ROOT%{_libdir}/libQGLViewer-qt5.so.%{version}\\* || true
%files
%doc README LICENCE CHANGELOG GPL_EXCEPTION
-%{_libdir}/libQGLViewer.so.%{version}
+%{_libdir}/libQGLViewer-qt4.so.%{version}
%files devel
%{_includedir}/QGLViewer/
-%{_libdir}/libQGLViewer.so
+%{_libdir}/libQGLViewer-qt4.so
%{_libdir}/qt4/plugins/designer/libqglviewerplugin.so
%files qt5
@@ -200,6 +189,10 @@ rm $RPM_BUILD_ROOT%{_libdir}/libQGLViewer-qt5.so.%{version}\\* || true
%doc examples
%changelog
+* Sat Aug 12 2018 Rich Mattes <richmattes@gmail.com> - 2.6.4-1
+- Update to release 2.6.4, with upstream fix for qreal on armv7 (rhbz#1556028)
+- Remove upstream patch and update library names
+
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
diff --git a/sources b/sources
index 17ccb06..f4fcfb1 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-a1c964983a20d73dcfb311890cdba364 libQGLViewer-2.6.3.tar.gz
+SHA512 (libQGLViewer-2.6.4.tar.gz) = 6e532ea8a48803922ed5afdc77dac3b5f6d811d52b34e4b3ab6a88428175bb16fd9a0df66d08a191a7f2f013cdd2a23cb4fcd755813dc7aa4ef2db6d17641135
reply other threads:[~2026-11-30 13:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179604690220.1.8675969524695315770.rpms-libQGLViewer-1628629a5a34@fedoraproject.org \
--to=richmattes@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox