Re: rpmlint error and packaging guidelines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux