public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libQGLViewer] epel10: Update to 2.9.1.
@ 2026-11-30 13:55 Susi Lehtola
  0 siblings, 0 replies; only message in thread
From: Susi Lehtola @ 2026-11-30 13:55 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/libQGLViewer
Branch : epel10
Commit : 5a505c57b5287c1e9a270e26a45d40e302ff429c
Author : Susi Lehtola <jussilehtola@fedoraproject.org>
Date   : 2023-01-26T10:52:41+00:00
Stats  : +34/-96 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/libQGLViewer/c/5a505c57b5287c1e9a270e26a45d40e302ff429c?branch=epel10

Log:
Update to 2.9.1.

---
diff --git a/libQGLViewer-2.6.3-exit.patch b/libQGLViewer-2.6.3-exit.patch
deleted file mode 100644
index c3038de..0000000
--- a/libQGLViewer-2.6.3-exit.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -up libQGLViewer-2.6.3/QGLViewer/VRender/gpc.cpp.exit libQGLViewer-2.6.3/QGLViewer/VRender/gpc.cpp
---- libQGLViewer-2.6.3/QGLViewer/VRender/gpc.cpp.exit	2016-02-05 09:55:31.614399048 +0100
-+++ libQGLViewer-2.6.3/QGLViewer/VRender/gpc.cpp	2016-02-05 09:56:38.519685573 +0100
-@@ -150,7 +150,7 @@ using namespace std ;
- #define MALLOC(p, b, s, t) {if ((b) > 0) { \
- 							p= (t*)malloc(b); if (!(p)) { \
- 							fprintf(stderr, "gpc malloc failure: %s\n", s); \
--							exit(0);}} else p= NULL;}
-+							abort();}} else p= NULL;}
- 
- #define FREE(p)            {if (p) {free(p); (p)= NULL;}}
- 

diff --git a/libQGLViewer-2.9.1-exit.patch b/libQGLViewer-2.9.1-exit.patch
new file mode 100644
index 0000000..5725be1
--- /dev/null
+++ b/libQGLViewer-2.9.1-exit.patch
@@ -0,0 +1,12 @@
+diff -up libQGLViewer-2.9.1/QGLViewer/VRender/gpc.cpp.exit libQGLViewer-2.9.1/QGLViewer/VRender/gpc.cpp
+--- libQGLViewer-2.9.1/QGLViewer/VRender/gpc.cpp.exit	2023-01-26 10:26:55.315899363 +0000
++++ libQGLViewer-2.9.1/QGLViewer/VRender/gpc.cpp	2023-01-26 10:27:39.642119598 +0000
+@@ -150,7 +150,7 @@ using namespace std ;
+ #define MALLOC(p, b, s, t) {if ((b) > 0) { \
+ 							p= (t*)malloc(b); if (!(p)) { \
+ 							fprintf(stderr, "gpc malloc failure: %s\n", s); \
+-							exit(0);}} else p= nullptr;}
++							abort();}} else p= nullptr;}
+ 
+ #define FREE(p)            {if (p) {free(p); (p)= nullptr;}}
+ 

diff --git a/libQGLViewer.spec b/libQGLViewer.spec
index 6a39ab6..0ffc430 100644
--- a/libQGLViewer.spec
+++ b/libQGLViewer.spec
@@ -1,6 +1,6 @@
 Name:           libQGLViewer
-Version:        2.6.4
-Release:        10%{?dist}
+Version:        2.9.1
+Release:        1%{?dist}
 Summary:        Qt based OpenGL generic 3D viewer library
 
 License:        GPLv2 with exceptions or GPLv3 with exceptions 
@@ -9,14 +9,16 @@ Source0:        http://www.libqglviewer.com/src/%{name}-%{version}.tar.gz
 
 # QGLViewer/VRender/gpc.cpp uses exit(0) to "abort" from a failure of malloc
 # Use abort() instead.
-Patch0:         libQGLViewer-2.6.3-exit.patch
+Patch0:         libQGLViewer-2.9.1-exit.patch
 # libQGLViewer .pro files explicitely remove "-g" from compile flags. Make
 # them back.
 Patch1:         libQGLViewer-2.6.3-dbg.patch
-Patch2:         libQGLViewer-2.6.4-qreal.patch
 
-BuildRequires:  qt4-devel qt5-qtbase-devel
+BuildRequires: qt5-qtbase-devel
 BuildRequires: make
+BuildRequires: gcc-c++
+Obsoletes:     %{name}-qt5 < %{version}-%{release}
+Provides:      %{name}-qt5 = %{version}-%{release}
 
 %description
 %{name} is a C++ library based on Qt that eases the creation of OpenGL
@@ -27,38 +29,18 @@ interpolated key-frames, object selection, stereo display, screenshot saving
 and much more. It can be used by OpenGL beginners as well as to create
 complex applications, being fully customizable and easy to extend.
 
-%package        qt5
-Summary:        Qt5 version of %{name}
-Requires:       qt5-qtbase
-
-%description    qt5
-%{name} is a C++ library based on Qt that eases the creation of OpenGL
-3D viewers. It provides some of the typical 3D viewer functionality, such
-as the possibility to move the camera using the mouse, which lacks in most
-of the other APIs. Other features include mouse manipulated frames,
-interpolated key-frames, object selection, stereo display, screenshot saving
-and much more. It can be used by OpenGL beginners as well as to create
-complex applications, being fully customizable and easy to extend.
 
 %package        devel
 Summary:        Development files for %{name}
 Requires:       %{name} = %{version}-%{release}
-Requires:       qt4-devel
+Requires:       qt5-qtbase-devel
+Obsoletes:      %{name}-qt5-devel < %{version}-%{release}
+Provides:       %{name}-qt5-devel = %{version}-%{release}
 
 %description    devel
 The %{name}-devel package contains libraries and header files for
 developing applications that use %{name}.
 
-%package        qt5-devel
-Summary:        Development files for %{name} using Qt5
-Requires:       %{name}-qt5 = %{version}-%{release}
-Requires:       qt5-qtbase-devel
-
-%description    qt5-devel
-The %{name}-devel package contains libraries and header files for
-developing applications that use %{name} and Qt5.
-
-
 %package doc
 Summary: API documentation, demos and example programs for %{name}
 Requires: %{name} = %{version}-%{release}
@@ -70,29 +52,13 @@ BuildArch: noarch
 %setup -q -n %{name}-%{version}
 %patch0 -p1 -b .exit
 %patch1 -p1 -b .dbg
-%patch2 -p0 -b .qreal
 
 # Fix permissions
 chmod a-x examples/*/*.vcproj
 
-rm -rf ../%{name}-%{version}-qt5
-cp -a ../%{name}-%{version} ../%{name}-%{version}-qt5
-
 %build
 
 %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
-
-%{!?_qt4_qmake: %define _qt4_qmake /usr/bin/qmake-qt4}
-%{!?qmake_qt4: %define qmake_qt4 \
-  %{_qt4_qmake} \\\
-  QMAKE_CFLAGS_DEBUG="${CFLAGS:-%optflags}" \\\
-  QMAKE_CFLAGS_RELEASE="${CFLAGS:-%optflags}" \\\
-  QMAKE_CXXFLAGS_DEBUG="${CXXFLAGS:-%optflags}" \\\
-  QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS:-%optflags}" \\\
-  QMAKE_LFLAGS_DEBUG="${LDFLAGS:-%{?__global_ldflags}}" \\\
-  QMAKE_LFLAGS_RELEASE="${LDFLAGS:-%{?__global_ldflags}}" \\\
-  QMAKE_STRIP=
-}
 %{!?_qt5_qmake: %define _qt5_qmake /usr/bin/qmake-qt5}
 %{!?qmake_qt5: %define qmake_qt5 \
   %{_qt5_qmake} \\\
@@ -106,22 +72,6 @@ cp -a ../%{name}-%{version} ../%{name}-%{version}-qt5
 }
 
 cd QGLViewer
-%{qmake_qt4} \
-          LIB_DIR=%{_libdir} \
-          DOC_DIR=%{_pkgdocdir} \
-          INCLUDE_DIR=%{_includedir} \
-          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.
-
-make %{?_smp_mflags}
-
-cd ../designerPlugin
-%{qmake_qt4} LIB_DIR=../QGLViewer
-make %{?_smp_mflags}
-
-cd ../../%{name}-%{version}-qt5/QGLViewer
 %{qmake_qt5} \
     LIB_DIR=%{_libdir} \
     DOC_DIR=%{_pkgdocdir} \
@@ -130,58 +80,46 @@ cd ../../%{name}-%{version}-qt5/QGLViewer
 # 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.
-
+make %{?_smp_mflags}
+cd ../designerPlugin
+%{qmake_qt5} LIB_DIR=../QGLViewer
 make %{?_smp_mflags}
 
 %install
 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-qt4.prl
-
+rm $RPM_BUILD_ROOT%{_libdir}/libQGLViewer-qt5.prl
 # Clean symbolic links
-rm $RPM_BUILD_ROOT%{_libdir}/libQGLViewer-qt4.so.?.? \
-   $RPM_BUILD_ROOT%{_libdir}/libQGLViewer-qt4.so.%{version}\\*
+rm $RPM_BUILD_ROOT%{_libdir}/libQGLViewer-qt5.so.?.?
+rm $RPM_BUILD_ROOT%{_libdir}/libQGLViewer-qt5.so.%{version}\\* || true
 
 cd ../designerPlugin
 make -e INSTALL_ROOT=$RPM_BUILD_ROOT install STRIP=/usr/bin/true
 
-cd ../../%{name}-%{version}-qt5/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-qt5.prl
-# Clean symbolic links
-rm $RPM_BUILD_ROOT%{_libdir}/libQGLViewer-qt5.so.?.?
-rm $RPM_BUILD_ROOT%{_libdir}/libQGLViewer-qt5.so.%{version}\\* || true
 
 
 %ldconfig_scriptlets
 
-%ldconfig_scriptlets qt5
-
 
 %files
 %doc README LICENCE CHANGELOG GPL_EXCEPTION
-%{_libdir}/libQGLViewer-qt4.so.%{version}
-
-%files devel
-%{_includedir}/QGLViewer/
-%{_libdir}/libQGLViewer-qt4.so
-%{_libdir}/qt4/plugins/designer/libqglviewerplugin.so
-
-%files qt5
-%doc README LICENCE CHANGELOG GPL_EXCEPTION
 %{_libdir}/libQGLViewer-qt5.so.%{version}
 
-%files qt5-devel
+%files devel
 %{_includedir}/QGLViewer/
 %{_libdir}/libQGLViewer-qt5.so
+%{_libdir}/qt5/plugins/designer/libqglviewerplugin.so
 
 %files doc
 %doc doc
 %doc examples
 
 %changelog
+* Thu Jan 26 2023 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.9.1-1
+- Drop qt4 package, as qt4 does not appear to have the required headers.
+- Update to 2.9.1.
+
 * Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.4-10
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-30 13:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 13:55 [rpms/libQGLViewer] epel10: Update to 2.9.1 Susi Lehtola

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