From d5f216f3268a7047920b0affd7c1dbe35383515c3bd6f43d8010aa2f21cb32ed Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 30 Jul 2011 19:34:57 +0000 Subject: [PATCH] spec cleanup: libsoname macro From: computersalat OBS-URL: https://build.opensuse.org/package/show/security:netfilter/libnetfilter_queue?expand=0&rev=12 --- libnetfilter_queue.spec | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/libnetfilter_queue.spec b/libnetfilter_queue.spec index ed54a41..b5cef2d 100644 --- a/libnetfilter_queue.spec +++ b/libnetfilter_queue.spec @@ -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)