public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libQGLViewer] epel10.3: First import for Fedora.
@ 2026-11-30 13:57 Laurent Rineau
  0 siblings, 0 replies; only message in thread
From: Laurent Rineau @ 2026-11-30 13:57 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/libQGLViewer
Branch : epel10.3
Commit : b7be47b21841de69d60124487107e0896d7ca091
Author : Laurent Rineau <rineau@fedoraproject.org>
Date   : 2009-03-30T21:52:32+00:00
Stats  : +165/-0 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/libQGLViewer/c/b7be47b21841de69d60124487107e0896d7ca091?branch=epel10.3

Log:
First import for Fedora.

---
diff --git a/.cvsignore b/.cvsignore
index e69de29..2193c94 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -0,0 +1 @@
+libQGLViewer-2.3.1.tar.gz

diff --git a/import.log b/import.log
new file mode 100644
index 0000000..e533430
--- /dev/null
+++ b/import.log
@@ -0,0 +1 @@
+libQGLViewer-2_3_1-6_fc10:HEAD:libQGLViewer-2.3.1-6.fc10.src.rpm:1238449924

diff --git a/libQGLViewer-2.3.1-exit.patch b/libQGLViewer-2.3.1-exit.patch
new file mode 100644
index 0000000..dba7c6d
--- /dev/null
+++ b/libQGLViewer-2.3.1-exit.patch
@@ -0,0 +1,12 @@
+diff -up libQGLViewer-2.3.1/QGLViewer/VRender/gpc.cpp.exit libQGLViewer-2.3.1/QGLViewer/VRender/gpc.cpp
+--- libQGLViewer-2.3.1/QGLViewer/VRender/gpc.cpp.exit	2009-01-06 13:55:12.000000000 +0100
++++ libQGLViewer-2.3.1/QGLViewer/VRender/gpc.cpp	2009-01-06 13:55:26.000000000 +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.spec b/libQGLViewer.spec
new file mode 100644
index 0000000..783acbe
--- /dev/null
+++ b/libQGLViewer.spec
@@ -0,0 +1,150 @@
+Name:           libQGLViewer
+Version:        2.3.1
+Release:        6%{?dist}
+Summary:        Qt based OpenGL generic 3D viewer library
+
+Group:          System Environment/Libraries
+License:        GPLv2 with exceptions or GPLv3 with exceptions 
+URL:            http://www.libqglviewer.com/index.html
+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.3.1-exit.patch
+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:  qt4-devel glibc-common
+
+%description
+%{name} is a C++ library based on Qt that eases the creation of OpenGL
+3D viewers. It provides some of the typical 3D viewer functionalities, 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 keyFrames, 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}
+Group:          Development/Libraries
+Requires:       %{name} = %{version}-%{release}
+Requires:       qt4-devel
+#Obsoletes:     %{name}-designer-plugin < %{version}-%{release}
+
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%package doc
+Summary: API documentation, demos and example programs for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+%description doc
+%{summary}.
+
+%prep
+%setup -q -n %{name}-%{version}
+%patch0 -p1 -b .exit
+
+# Fix the encoding of several files, so that they all use utf-8.
+for f in doc/*.html doc/examples/*.html \
+        examples/contribs/terrain/quadtree.cpp \
+        examples/contribs/terrain/viewer.cpp \
+        examples/contribs/quarto/piece.cpp \
+        examples/contribs/dvonn/dvonnwindowimpl.cpp \
+        examples/luxo/luxo.cpp \
+        examples/contribs/quarto/jeu.cpp \
+        examples/contribs/terrain/terrain.cpp \
+        examples/contribs/quarto/rules.txt;
+do
+  cp -a $f $f.bak
+  rm -f $f
+  sed -e 's/charset=iso-8859-1/charset=utf-8/' < $f.bak | iconv -f l1 -t utf8 > $f;
+  touch -r $f.bak $f
+  rm -f $f.bak
+done
+
+%build
+cd QGLViewer
+%{_qt4_qmake} \
+          LIB_DIR=%{_libdir} \
+          DOC_DIR=%{_defaultdocdir}/%{name}-%{version} \
+          INCLUDE_DIR=%{_includedir}
+make %{?_smp_mflags}
+cd ../designerPlugin
+%{_qt4_qmake} LIB_DIR=../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
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+rm $RPM_BUILD_ROOT%{_libdir}/libQGLViewer.prl
+cd ../designerPlugin
+make -e INSTALL_ROOT=$RPM_BUILD_ROOT install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc README LICENCE CHANGELOG GPL_EXCEPTION
+%{_libdir}/libQGLViewer.so.2*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/QGLViewer/
+%{_libdir}/libQGLViewer.so
+%{_qt4_plugindir}/designer/libqglviewerplugin.so
+
+%files doc
+%defattr(-,root,root,-)
+%doc doc
+%doc examples
+
+%changelog
+* Tue Jan  6 2009 Laurent Rineau <Laurent.Rineau__fedora@normalesup.org> - 2.3.1-6
+- Merge the subpackage -designer-plugin into -devel.
+- Add Requires: qt4-devel to -devel.
+
+* Tue Jan  6 2009 Laurent Rineau <Laurent.Rineau__fedora@normalesup.org> - 2.3.1-5
+- Correct License: tag.
+
+* Tue Jan  6 2009 Laurent Rineau <Laurent.Rineau__fedora@normalesup.org> - 2.3.1-4
+- Add the file GPL_EXCEPTION to docs.
+
+* Tue Jan  6 2009 Laurent Rineau <Laurent.Rineau__fedora@normalesup.org> - 2.3.1-3
+- Untabify the spec file.
+
+* Tue Jan  6 2009 Laurent Rineau <Laurent.Rineau__fedora@normalesup.org> - 2.3.1-2
+- Update the URL.
+- Add a patch that change exit(0) to abort() in QGLViewer/VRender/gpc.cpp.
+- Use macros %%{_qt4_qmake} and %%{_qt4_plugindir} from /etc/rpm/macros.qt4
+- Remove %%{_libdir}/libQGLViewer.prl (useless, and rpmlint outputs an
+  error about it in %%{_libdir}
+
+* Wed Dec 17 2008 Laurent Rineau <Laurent.Rineau__fedora@normalesup.org> - 2.3.1-1
+- New release.
+
+* Tue Oct 23 2007 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 2.2.6-2
+- Add examples in %%{name}-doc
+
+* Tue Oct 23 2007 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 2.2.6-1
+- New upstream release.
+
+* Tue Apr  3 2007 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 2.2.5-2
+- Add the designer-plugin sub-package.
+
+* Mon Jan 29 2007 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 2.2.5-1
+- First release to be submitted to Fedora.
+

diff --git a/sources b/sources
index e69de29..ad0facf 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+bede65612dd6230127f844bc5bdf2c9f  libQGLViewer-2.3.1.tar.gz

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

only message in thread, other threads:[~2026-11-30 13:57 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:57 [rpms/libQGLViewer] epel10.3: First import for Fedora Laurent Rineau

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