forked from pool/libnetfilter_queue
spec cleanup: libsoname macro
From: computersalat OBS-URL: https://build.opensuse.org/package/show/security:netfilter/libnetfilter_queue?expand=0&rev=12
This commit is contained in:
parent
f7479748f6
commit
d5f216f326
@ -17,9 +17,8 @@
|
||||
|
||||
# norootforbuild
|
||||
|
||||
%define soname 1
|
||||
|
||||
Name: libnetfilter_queue
|
||||
%define libsoname %{name}1
|
||||
Version: 1.0.0
|
||||
Release: 1
|
||||
License: GNU GPL v2
|
||||
@ -39,14 +38,14 @@ system that deprecates the old ip_queue / libipq mechanism.
|
||||
|
||||
libnetfilter_queue has been previously known as libnfnetlink_queue.
|
||||
|
||||
%define debug_package_requires %name%soname = %version-%release
|
||||
%define debug_package_requires %libsoname = %version-%release
|
||||
|
||||
%package -n %name%soname
|
||||
%package -n %libsoname
|
||||
|
||||
Group: System/Libraries
|
||||
Summary: Userspace library for packets that have been queued by the kernel packet filter
|
||||
|
||||
%description -n %name%soname
|
||||
%description -n %libsoname
|
||||
libnetfilter_queue is a userspace library providing an API to packets
|
||||
that have been queued by the kernel packet filter. It is is part of a
|
||||
system that deprecates the old ip_queue / libipq mechanism.
|
||||
@ -56,7 +55,7 @@ libnetfilter_queue has been previously known as libnfnetlink_queue.
|
||||
%package devel
|
||||
License: GNU GPL v2
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %name%soname = %version, libnfnetlink-devel
|
||||
Requires: %libsoname = %version, libnfnetlink-devel
|
||||
Summary: Userspace library for packets that have been queued by the kernel packet filter
|
||||
|
||||
%description devel
|
||||
@ -77,13 +76,13 @@ libnetfilter_queue has been previously known as libnfnetlink_queue.
|
||||
%makeinstall
|
||||
find "%buildroot" -name "*.la" -delete
|
||||
|
||||
%post -n %name%soname -p /sbin/ldconfig
|
||||
%post -n %libsoname -p /sbin/ldconfig
|
||||
|
||||
%postun -n %name%soname -p /sbin/ldconfig
|
||||
%postun -n %libsoname -p /sbin/ldconfig
|
||||
|
||||
%files -n %name%soname
|
||||
%files -n %libsoname
|
||||
%defattr(-,root,root)
|
||||
%_libdir/libnetfilter_queue.so.%{soname}*
|
||||
%_libdir/libnetfilter_queue.so.*
|
||||
|
||||
%files -n %{name}-devel
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
Reference in New Issue
Block a user