File libnl.spec of Package libnl
#
# spec file for package libnl (Version 1.1)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: libnl
Summary: Convenience library for kernel netlink sockets
Group: Development/Libraries/Other
License: LGPL v2.1 or later
Version: 1.1
Release: 52
# 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
Patch0: libnl-1.1.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains a convenience library to simplify using the Linux
kernels netlink sockets interface for network manipulation.
Authors:
--------
Thomas Graf <tgraf@suug.ch>
%package devel
License: LGPL v2.1 or later
Summary: Convenience library for kernel netlink sockets
Group: Development/Libraries/Other
Requires: %{name} = %{version}-%{release}
# bug437293
%ifarch ppc64
Obsoletes: libnl-devel-64bit
%endif
#
%description devel
This package contains a convenience library to simplify using the Linux
kernels netlink sockets interface for network manipulation.
Authors:
--------
Thomas Graf <tgraf@suug.ch>
%prep
%setup -q -n libnl-%{version}
%patch0 -p1
%build
#%configure
CFLAGS="$RPM_OPT_FLAGS" \
./configure \
--prefix=%{_prefix} \
--libdir=/%_lib \
--includedir=%{_includedir}
make
%install
%makeinstall
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/pkgconfig
mv $RPM_BUILD_ROOT/%_lib/pkgconfig/* $RPM_BUILD_ROOT/%{_libdir}/pkgconfig
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
/%_lib/%{name}.so.*
%doc COPYING ChangeLog
%files devel
%defattr(-,root,root,0755)
%{_includedir}/netlink/
/%_lib/%{name}.so
%{_libdir}/pkgconfig/%{name}-1.pc
%changelog
* Fri Jun 12 2009 coolo@novell.com
- fix build with glibc 2.10
* Thu Feb 05 2009 bphilips@suse.de
- baselibs.conf: create -32bit packages. Required to compile Intel
WiMax tools.
* Wed Jan 07 2009 olh@suse.de
- obsolete old -XXbit packages (bnc#437293)
* Tue Nov 11 2008 jpr@novell.com
- Add baselibs.conf (bnc#443023)
* Thu Oct 02 2008 maw@suse.de
- Install libraries in %%_lib, not %%{_libdir} (bnc#428433).
* Fri Feb 01 2008 coolo@suse.de
- update to 1.1:
o patches went upstream
o Generic netlink support
o Route Addition/Deletion
o Fixed reference counting while objects stay in caches.
... tons of other fixes
* Fri Jan 25 2008 adrian@suse.de
- fix changelog entries order
* Wed Oct 03 2007 maw@suse.de
- Apply libnl.route.metric-overflow.patch with -p1.
* Sat Aug 25 2007 olh@suse.de
- remove incomplete copies of kernel headers
linux/types.h were needed
* Fri Aug 24 2007 olh@suse.de
- include linux/types.h
do not redefine typedefs
use stddef.h offsetof
fix out of bounds access in route metric functions
fix incorrect char usage in nl_str2af
remove compiler warnings by checking vasprintf return value
* Wed Aug 22 2007 dmueller@suse.de
- fix accesses of free'd memory which crash NetworkManager-kde
* Wed Aug 22 2007 dmueller@suse.de
- update to 1.0-pre6:
* fixes write after delete crashes
* fixes realloc() handling
* fixes format string warnings
* fixes invalid free in nl_addr_parse for AF_UNSPEC addresses
* fixes double nlmsg_free() in nl_recvmsgs() while receiving
a multipart message and the read was interrupted.
* Mon Feb 20 2006 ro@suse.de
- fix build on ia64, ppc64, s390x
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Nov 15 2005 yxu@suse.de
- fixed conflicting type definition
* Fri Nov 04 2005 rml@suse.de
- Update to 1.0-pre5
* Mon Oct 31 2005 gekker@suse.de
- Initial import into autobuild Version 1.0-pre3
- Patch makefile