From 7a2f7669979f4e9646e2a12ac08138a9f01f86c28f0efb2d75cd3941974a8ad6 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 1 Aug 2011 18:48:49 +0000 Subject: [PATCH] Combine %name%soname to %lname OBS-URL: https://build.opensuse.org/package/show/security:netfilter/libnetfilter_conntrack?expand=0&rev=11 --- libnetfilter_conntrack.spec | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/libnetfilter_conntrack.spec b/libnetfilter_conntrack.spec index 950e9aa..078b015 100644 --- a/libnetfilter_conntrack.spec +++ b/libnetfilter_conntrack.spec @@ -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