File libnl-1_1.spec of Package libnl-1_1
#
# spec file for package libnl-1_1
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libnl-1_1
%define lname libnl-1_1-1
Summary: Convenience library for kernel netlink sockets
Group: Development/Libraries/Other
License: LGPL-2.1
Version: 1.1
Release: 1
# bug437293
%ifarch ppc64
Obsoletes: libnl-64bit
%endif
#
Url: http://people.suug.ch/~tgr/libnl/
Source: http://people.suug.ch/~tgr/libnl/files/libnl-%version.tar.bz2
Source99: baselibs.conf
Patch0: libnl-1.1.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkgconfig >= 0.23
# Added for 12.1
Obsoletes: libnl < %version-%release
Provides: libnl = %version-%release
%description
This package contains a convenience library to simplify using the Linux
kernels netlink sockets interface for network manipulation.
%package -n %lname
Summary: Convenience library for working with Netlink sockets
Group: System/Libraries
%description -n %lname
The libnl suite is a collection of libraries providing APIs to
netlink protocol based Linux kernel interfaces.
%package devel
License: LGPL-2.1+
Summary: Convenience library for kernel netlink sockets
Group: Development/Libraries/Other
Requires: %name = %version-%release
# bug437293
%ifarch ppc64
Obsoletes: libnl-devel-64bit
%endif
#
Provides: libnl-devel = %release-%version
%description devel
This package contains a convenience library to simplify using the Linux
kernels netlink sockets interface for network manipulation.
%prep
%setup -q -n libnl-%version
%patch0 -p1
%build
%configure \
--prefix=%_prefix \
--libdir=/%_lib \
--includedir=%_includedir
make %{?_smp_mflags}
%install
%makeinstall
mkdir -p %buildroot/%_libdir/pkgconfig
mv %buildroot/%_lib/pkgconfig/* %buildroot/%_libdir/pkgconfig
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
/%_lib/libnl*.so.*
%doc COPYING ChangeLog
%files devel
%defattr(-,root,root,0755)
%_includedir/netlink/
/%_lib/libnl*.so
%_libdir/pkgconfig/*.pc
%changelog