public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libQGLViewer] epel10.3: - Tweak the configuration and compilation so that the soname of the library
@ 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 : 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

^ 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: - Tweak the configuration and compilation so that the soname of the library Laurent Rineau

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