public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Laurent Rineau <rineau@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/libQGLViewer] epel10: First import for Fedora.
Date: Mon, 30 Nov 2026 13:54:28 GMT	[thread overview]
Message-ID: <179604686863.1.9504343206270762013.rpms-libQGLViewer-b7be47b21841@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/libQGLViewer
Branch : epel10
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

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

                 reply	other threads:[~2026-11-30 13:54 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=179604686863.1.9504343206270762013.rpms-libQGLViewer-b7be47b21841@fedoraproject.org \
    --to=rineau@fedoraproject.org \
    --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