forked from pool/libnetfilter_conntrack
Combine %name%soname to %lname
OBS-URL: https://build.opensuse.org/package/show/security:netfilter/libnetfilter_conntrack?expand=0&rev=11
This commit is contained in:
parent
db8715f049
commit
7a2f766997
@ -17,9 +17,8 @@
|
||||
|
||||
# norootforbuild
|
||||
|
||||
%define soname 3
|
||||
|
||||
Name: libnetfilter_conntrack
|
||||
%define lname %{name}3
|
||||
Version: 0.9.1
|
||||
Release: 1
|
||||
License: GNU GPL v2
|
||||
@ -40,29 +39,25 @@ library libnetfilter_conntrack has been previously known as
|
||||
libnfnetlink_conntrack and libctnetlink. This library is currently
|
||||
used by conntrack-tools among many other applications.
|
||||
|
||||
%define debug_package_requires %{name}%{soname} = %{version}-%{release}
|
||||
|
||||
%package -n %{name}%{soname}
|
||||
|
||||
%define debug_package_requires %lname = %{version}-%{release}
|
||||
|
||||
%package -n %lname
|
||||
Group: System/Libraries
|
||||
Summary: Userspace library for the in-kernel connection tracking state table
|
||||
|
||||
%description -n %{name}%{soname}
|
||||
%description -n %lname
|
||||
libnetfilter_conntrack is a userspace library providing a programming
|
||||
interface (API) to the in-kernel connection tracking state table. The
|
||||
library libnetfilter_conntrack has been previously known as
|
||||
libnfnetlink_conntrack and libctnetlink. This library is currently
|
||||
used by conntrack-tools among many other applications.
|
||||
|
||||
%package -n %{name}-devel
|
||||
|
||||
|
||||
%package devel
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{name}%{soname} = %{version}
|
||||
Requires: %lname = %{version}
|
||||
Summary: Userspace library for the in-kernel connection tracking state table
|
||||
|
||||
%description -n %{name}-devel
|
||||
%description devel
|
||||
libnetfilter_conntrack is a userspace library providing a programming
|
||||
interface (API) to the in-kernel connection tracking state table. The
|
||||
library libnetfilter_conntrack has been previously known as
|
||||
@ -74,24 +69,21 @@ used by conntrack-tools among many other applications.
|
||||
|
||||
%build
|
||||
%configure --disable-static
|
||||
%__make %{?_smp_mflags}
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%makeinstall
|
||||
find %{buildroot} -name "*.la" -delete
|
||||
|
||||
%post -n %{name}%{soname} -p /sbin/ldconfig
|
||||
%post -n %lname -p /sbin/ldconfig
|
||||
|
||||
%postun -n %{name}%{soname} -p /sbin/ldconfig
|
||||
%postun -n %lname -p /sbin/ldconfig
|
||||
|
||||
%clean
|
||||
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
|
||||
|
||||
%files -n %{name}%{soname}
|
||||
%files -n %lname
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libnetfilter_conntrack.so.%{soname}*
|
||||
|
||||
%files -n %{name}-devel
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/libnetfilter_conntrack
|
||||
%{_libdir}/libnetfilter_conntrack.so
|
||||
|
Loading…
Reference in New Issue
Block a user