forked from pool/libmnl
prepare_spec
OBS-URL: https://build.opensuse.org/package/show/security:netfilter/libmnl?expand=0&rev=8
This commit is contained in:
parent
e230622133
commit
8dc3ba02c7
22
libmnl.spec
22
libmnl.spec
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libmnl (Version 0+git86)
|
# spec file for package libmnl (Version 0+git107)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@ -18,9 +18,9 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: libmnl
|
Name: libmnl
|
||||||
%define soname 0
|
%define lname %{name}0
|
||||||
Version: 0+git86
|
Version: 0+git107
|
||||||
Release: 1
|
Release: 0
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Productivity/Networking/Security
|
Group: Productivity/Networking/Security
|
||||||
Url: http://netfilter.org/projects/libmnl/
|
Url: http://netfilter.org/projects/libmnl/
|
||||||
@ -42,14 +42,14 @@ constructing of both the Netlink header and TLVs that are repetitive
|
|||||||
and easy to get wrong. This library aims to provide simple helpers
|
and easy to get wrong. This library aims to provide simple helpers
|
||||||
that allows you to re-use code and to avoid re-inventing the wheel.
|
that allows you to re-use code and to avoid re-inventing the wheel.
|
||||||
|
|
||||||
%define debug_package_requires %name%soname = %version-%release
|
%define debug_package_requires %lname = %version-%release
|
||||||
|
|
||||||
%package -n %name%soname
|
%package -n %lname
|
||||||
|
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Summary: Minimalistic Netlink communication library
|
Summary: Minimalistic Netlink communication library
|
||||||
|
|
||||||
%description -n %name%soname
|
%description -n %lname
|
||||||
libmnl is a minimalistic user-space library oriented to Netlink
|
libmnl is a minimalistic user-space library oriented to Netlink
|
||||||
developers. There are a lot of common tasks in parsing, validating,
|
developers. There are a lot of common tasks in parsing, validating,
|
||||||
constructing of both the Netlink header and TLVs that are repetitive
|
constructing of both the Netlink header and TLVs that are repetitive
|
||||||
@ -59,7 +59,7 @@ that allows you to re-use code and to avoid re-inventing the wheel.
|
|||||||
%package -n %name-devel
|
%package -n %name-devel
|
||||||
|
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %name%soname = %version
|
Requires: %lname = %version
|
||||||
Summary: Development files for libmnl
|
Summary: Development files for libmnl
|
||||||
|
|
||||||
%description -n %name-devel
|
%description -n %name-devel
|
||||||
@ -83,11 +83,11 @@ make %{?_smp_mflags}
|
|||||||
%makeinstall
|
%makeinstall
|
||||||
find "%buildroot" -name "*.la" -delete;
|
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
|
||||||
|
|
||||||
%files -n %name%soname
|
%files -n %lname
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%_libdir/*.so.*
|
%_libdir/*.so.*
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user