forked from pool/libnetfilter_log
Combine %name%soname to %lname and smaller cleanups
OBS-URL: https://build.opensuse.org/package/show/security:netfilter/libnetfilter_log?expand=0&rev=9
This commit is contained in:
parent
45c0fcedca
commit
cf0717aee7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user