From cf0717aee7d422a8e4440c747190bf0f779fdf0889317a839d25615caad39e99 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 1 Aug 2011 18:52:48 +0000 Subject: [PATCH] Combine %name%soname to %lname and smaller cleanups OBS-URL: https://build.opensuse.org/package/show/security:netfilter/libnetfilter_log?expand=0&rev=9 --- libnetfilter_log.spec | 36 ++++++++++++++---------------------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/libnetfilter_log.spec b/libnetfilter_log.spec index a856c0e..79e3583 100644 --- a/libnetfilter_log.spec +++ b/libnetfilter_log.spec @@ -17,9 +17,8 @@ # norootforbuild -%define soname 1 - Name: libnetfilter_log +%define lname %{name}1 Version: 1.0.0 Release: 1 License: GNU GPL v2 @@ -38,29 +37,25 @@ packets that have been logged by the kernel packet filter. It is is part of a system that deprecates the old syslog/dmesg based packet logging. This library has been previously known as libnfnetlink_log. -%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 PreReq: glibc Summary: Userspace library for accessing logged packets -%description -n %{name}%{soname} +%description -n %lname libnetfilter_log is a userspace library providing interface to packets that have been logged by the kernel packet filter. It is is part of a system that deprecates the old syslog/dmesg based packet logging. This library has been previously known as libnfnetlink_log. -%package -n %{name}-devel - - +%package devel Group: Development/Libraries/C and C++ -Requires: %{name}%{soname} = %{version} libnfnetlink-devel +Requires: %lname = %{version} libnfnetlink-devel Summary: Userspace library for accessing logged packets -%description -n %{name}-devel +%description devel libnetfilter_log is a userspace library providing interface to packets that have been logged by the kernel packet filter. It is is part of a system that deprecates the old syslog/dmesg based packet @@ -71,25 +66,22 @@ logging. This library has been previously known as libnfnetlink_log. %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_log.so.%{soname}* -%{_libdir}/libnetfilter_log_libipulog.so.%{soname}* +%{_libdir}/libnetfilter_log.so.* +%{_libdir}/libnetfilter_log_libipulog.so.* -%files -n %{name}-devel +%files devel %defattr(-,root,root) %{_includedir}/libnetfilter_log %{_libdir}/libnetfilter_log.so