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.3: - Tweak the configuration and compilation so that the soname of the library
Date: Mon, 30 Nov 2026 13:57:08 GMT	[thread overview]
Message-ID: <179604702880.1.624150181040789546.rpms-libQGLViewer-bf97a168f7e5@fedoraproject.org> (raw)

        A new commit has been pushed.

        Repo   : rpms/libQGLViewer
        Branch : epel10.3
        Commit : bf97a168f7e518f99f8501294997ff3e33a85981
        Author : Laurent Rineau <rineau@fedoraproject.org>
        Date   : 2010-04-21T13:13:29+00:00
        Stats  : +19/-3 in 1 file(s)
        URL    : https://src.fedoraproject.org/rpms/libQGLViewer/c/bf97a168f7e518f99f8501294997ff3e33a85981?branch=epel10.3

        Log:
        - Tweak the configuration and compilation so that the soname of the library
is equal to its soversion. The binary compilatibility is not ensured by
upstream.

---
diff --git a/libQGLViewer.spec b/libQGLViewer.spec
index 4010662..65266c4 100644
--- a/libQGLViewer.spec
+++ b/libQGLViewer.spec
@@ -1,6 +1,6 @@
 Name:           libQGLViewer
 Version:        2.3.5
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Qt based OpenGL generic 3D viewer library
 
 Group:          System Environment/Libraries
@@ -77,8 +77,14 @@ cd QGLViewer
 %{_qt4_qmake} \
           LIB_DIR=%{_libdir} \
           DOC_DIR=%{_defaultdocdir}/%{name}-%{version} \
-          INCLUDE_DIR=%{_includedir}
+          INCLUDE_DIR=%{_includedir} \
+          TARGET_x=%{name}.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
 %{_qt4_qmake} LIB_DIR=../QGLViewer
 make %{?_smp_mflags}
@@ -89,6 +95,11 @@ 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
+
+# Clean symbolic links
+rm $RPM_BUILD_ROOT%{_libdir}/libQGLViewer.so.?.? \
+   $RPM_BUILD_ROOT%{_libdir}/libQGLViewer.so.%{version}\\*
+
 cd ../designerPlugin
 make -e INSTALL_ROOT=$RPM_BUILD_ROOT install
 
@@ -104,7 +115,7 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(-,root,root,-)
 %doc README LICENCE CHANGELOG GPL_EXCEPTION
-%{_libdir}/libQGLViewer.so.2*
+%{_libdir}/libQGLViewer.so.%{version}
 
 %files devel
 %defattr(-,root,root,-)
@@ -118,6 +129,11 @@ rm -rf $RPM_BUILD_ROOT
 %doc examples
 
 %changelog
+* Wed Apr 21 2010 Laurent Rineau <Laurent.Rineau__fedora@normalesup.org> - 2.3.5-2
+- Tweak the configuration and compilation so that the soname of the library is
+  equal to its soversion. The binary compilatibility is not ensured by 
+  upstream.
+
 * Tue Apr 20 2010 Laurent Rineau <Laurent.Rineau__fedora@normalesup.org> - 2.3.5-1
 - New upstream release
 - Rebase the dbg patch

                 reply	other threads:[~2026-11-30 13:57 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=179604702880.1.624150181040789546.rpms-libQGLViewer-bf97a168f7e5@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