Am 20.12.2015 um 00:12 schrieb Michael Schwendt:
On Sat, 19 Dec 2015 15:31:08 +0100, Mattia Verga wrote:

%global sover 1

…

%install
# Install the built binaries.

ln -fs %{_libdir}/libpasplan404.so.%{sover}.0 \
   %{buildroot}%{_libdir}/libpasplan404.so.%{sover}

…

%files
# doc-files, license, other files
%{_libdir}/libpasplan404.so.%{sover}*


If the SO-version changes during an update, build will fail, because
of installed, but not packaged files;  so you don't miss to adjust the
value properly and the symlink won't dangle then.

Instead of creating the symlink yourself with "ln", you can run

   ldconfig -n %{buildroot}%{_libdir}

in %install to create any symlink, if missing.

Nice to know!  Thank you Michael!
--
devel mailing list
devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org

Reply via email to