Add logic for closing the loop hole on soname bumps
Explicitly force manual intervention for soname bumps Signed-off-by: Björn Esser <besser82@fedoraproject.org>
This commit is contained in:
parent
d2e2fab5e3
commit
48d2cdb40f
38
libnsl2.spec
38
libnsl2.spec
@ -1,21 +1,28 @@
|
|||||||
%global commit0 4a062cf4180d99371198951e4ea5b4550efd58a3
|
# Uncomment on initial build for soname bump.
|
||||||
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
|
%global bump_soname 1
|
||||||
|
%global sover 3
|
||||||
|
|
||||||
|
%if 0%{?bump_soname}
|
||||||
|
%global relsuffix ~sonamebump
|
||||||
|
%global old_sover %(echo $((%{sover}-1)))
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: libnsl2
|
Name: libnsl2
|
||||||
Version: 2.0.0
|
Version: 2.0.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?relsuffix}%{?dist}
|
||||||
Summary: Public client interface library for NIS(YP) and NIS+
|
Summary: Public client interface library for NIS(YP) and NIS+
|
||||||
|
|
||||||
License: BSD and LGPLv2+
|
License: BSD and LGPLv2+
|
||||||
URL: https://github.com/thkukuk/libnsl
|
URL: https://github.com/thkukuk/libnsl
|
||||||
|
|
||||||
|
|
||||||
Source0: https://github.com/thkukuk/libnsl/archive/v%{version}.tar.gz
|
Source0: https://github.com/thkukuk/libnsl/archive/v%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: autoconf, automake, gettext-devel, libtool, libtirpc-devel
|
BuildRequires: autoconf, automake, gettext-devel, libtool, libtirpc-devel
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
|
%if 0%{?bump_soname}
|
||||||
|
BuildRequires: libnsl.so.%{old_sover}
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains the libnsl library. This library contains
|
This package contains the libnsl library. This library contains
|
||||||
@ -38,24 +45,28 @@ Development files for libnsl2
|
|||||||
%build
|
%build
|
||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
|
|
||||||
%configure\
|
%configure \
|
||||||
--libdir=%{_libdir}\
|
--libdir=%{_libdir} \
|
||||||
--includedir=%{_includedir}
|
--includedir=%{_includedir}
|
||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
rm %{buildroot}/%{_libdir}/libnsl.a
|
rm %{buildroot}%{_libdir}/libnsl.{a,la}
|
||||||
rm %{buildroot}/%{_libdir}/libnsl.la
|
|
||||||
|
%if 0%{?bump_soname}
|
||||||
|
cp -p %{_libdir}/libnsl.so.%{old_sover}* %{buildroot}%{_libdir}
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_libdir}/libnsl.so.*
|
|
||||||
|
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
%{_libdir}/libnsl.so.%{sover}*
|
||||||
|
%if 0%{?bump_soname}
|
||||||
|
%{_libdir}/libnsl.so.%{old_sover}*
|
||||||
|
%endif
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_libdir}/libnsl.so
|
%{_libdir}/libnsl.so
|
||||||
@ -63,6 +74,10 @@ rm %{buildroot}/%{_libdir}/libnsl.la
|
|||||||
%{_libdir}/pkgconfig/libnsl.pc
|
%{_libdir}/pkgconfig/libnsl.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Nov 11 2021 Björn Esser <besser82@fedoraproject.org> - 2.0.0-1
|
||||||
|
- Add logic for closing the loop hole on soname bumps
|
||||||
|
- Explicitly force manual intervention for soname bumps
|
||||||
|
|
||||||
* Thu Nov 11 2021 Matej Mužila <mmuzila@redhat.com> - 2.0.0-1
|
* Thu Nov 11 2021 Matej Mužila <mmuzila@redhat.com> - 2.0.0-1
|
||||||
- Rebase to new upstream version
|
- Rebase to new upstream version
|
||||||
|
|
||||||
@ -127,4 +142,3 @@ rm %{buildroot}/%{_libdir}/libnsl.la
|
|||||||
|
|
||||||
* Mon Apr 10 2017 Matej Mužila <mmuzila@redhat.com> 1.0.4-4
|
* Mon Apr 10 2017 Matej Mužila <mmuzila@redhat.com> 1.0.4-4
|
||||||
- Initial version for 1.0.4
|
- Initial version for 1.0.4
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user