87eacc0
%define preversion pre8
15e0cec
7ec89f4
Summary: Convenience library for kernel netlink sockets
15e0cec
Group: Development/Libraries
15e0cec
License: LGPL
15e0cec
Name: libnl
15e0cec
Version: 1.0
87eacc0
Release: 0.13.%{preversion}.git20071217%{?dist}
15e0cec
URL: http://people.suug.ch/~tgr/libnl/
87eacc0
#Source: http://people.suug.ch/~tgr/libnl/files/libnl-%{version}-%{preversion}.tar.gz
87eacc0
Source: libnl.git20071217.tar.bz2
15e0cec
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
15e0cec
BuildRequires: doxygen
87eacc0
Patch1: libnl-1.0-pre5-static.patch
87eacc0
Patch2: libnl-1.0-pre5-debuginfo.patch
87eacc0
Patch3: libnl-1.0-pre8-use-vasprintf-retval.patch
87eacc0
Patch4: libnl-1.0-pre8-more-build-output.patch
15e0cec
15e0cec
%description
15e0cec
This package contains a convenience library to simplify
7ec89f4
using the Linux kernel's netlink sockets interface for
15e0cec
network manipulation
15e0cec
7ec89f4
%package devel
7ec89f4
Summary: Libraries and headers for using libnl
7ec89f4
Group: Development/Libraries
7ec89f4
Requires: %{name} = %{version}-%{release}
7ec89f4
7ec89f4
%description devel
7ec89f4
This package contains various headers for using libnl
7ec89f4
7ec89f4
15e0cec
%prep
87eacc0
%setup -q -n libnl.git20071217
87eacc0
%patch1 -p1 -b .build-static
87eacc0
%patch2 -p1 -b .debuginfo
87eacc0
%patch3 -p1 -b .use-vasprintf-retval
87eacc0
%patch4 -p1 -b .more-build-output
15e0cec
15e0cec
%build
15e0cec
%configure
15e0cec
make
15e0cec
15e0cec
%install
813a793
%{__rm} -rf $RPM_BUILD_ROOT
15e0cec
make install DESTDIR=$RPM_BUILD_ROOT
15e0cec
15e0cec
%clean
813a793
%{__rm} -rf $RPM_BUILD_ROOT
15e0cec
15e0cec
%post -p /sbin/ldconfig
15e0cec
%postun -p /sbin/ldconfig
15e0cec
15e0cec
%files
15e0cec
%defattr(-,root,root)
7ec89f4
%{_libdir}/%{name}.so.*
7ec89f4
%doc COPYING
7ec89f4
7ec89f4
%files devel
7ec89f4
%defattr(-,root,root,0755)
15e0cec
%{_includedir}/netlink/
7ec89f4
%doc doc/*
7ec89f4
%{_libdir}/%{name}.so
jvdias 3315cf8
%{_libdir}/%{name}.a
7ec89f4
%{_libdir}/pkgconfig/%{name}-1.pc
15e0cec
15e0cec
%changelog
87eacc0
* Mon Dec 17 2007 Dan Williams <dcbw@redhat.com> - 1.0-0.13.pre8.git20071217
87eacc0
- Add dist tag to revision 
87eacc0
87eacc0
* Mon Dec 17 2007 Dan Williams <dcbw@redhat.com> - 1.0-0.12.pre8.git20071217
87eacc0
- Update to -pre8 + fixes (rh #401761)
87eacc0
a31e162
* Mon Aug 14 2006 Peter Jones <pjones@redhat.com> - 1.0-0.10.pre5.4
a31e162
- Fix nl_recv() for ppc64
a31e162
2c50eaf
* Mon Jul 31 2006 Jeremy Katz <katzj@redhat.com> - 1.0-0.10.pre5.3
2c50eaf
- unbreak the pkgconfig file
2c50eaf
93a6bb4
* Wed Jul 26 2006 Matthias Clasen <mclasen@redhat.com> - 1.0-0.10.pre5.2
93a6bb4
- Fix the pkgconfig file on 64-bit systems (#197176)
93a6bb4
23d8729
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.0-0.10.pre5.1
23d8729
- rebuild
23d8729
70745c7
* Thu Jun 15 2006 Peter Jones <pjones@redhat.com> 1.0-0.10.pre5
70745c7
- Fix debuginfo generation.
70745c7
jvdias 3315cf8
* Fri May 26 2006 Jason Vas Dias <jvdias@redhat.com> 1.0-0.9.pre5
jvdias 4d0653b
- Allow build to succeed with new gcc / glibc-kernheaders
jvdias 4d0653b
  (compile failed on __u64 redefinition on x86_64).
jvdias 3315cf8
- Add a static %{_libdir}/libnl.a library to libnl-devel for
jvdias 3315cf8
  programs that might need to do a static link to libnl.
jvdias 3315cf8
  Added after consultation with Christopher Aillon.
jvdias 3315cf8
6640ca0
* Tue Feb 12 2006 Christopher Aillon <caillon@redhat.com> 1.0-0.8.pre5
6640ca0
- Rebuild
6640ca0
6640ca0
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> 1.0-0.7.pre5.1
9f67838
- rebuilt for new gcc4.1 snapshot and glibc changes
9f67838
c5a7edc
* Mon Jan 16 2006 Christopher Aillon <caillon@redhat.com> 1.0-0.7.pre5
c5a7edc
- Add patch to not chown files to root.root during make install; it
c5a7edc
  happens normally.
c5a7edc
ca46ae0
* Mon Jan  9 2006 Christopher Aillon <caillon@redhat.com> 1.0-0.6.pre5
ca46ae0
- Correctly install the pkgconfig file
ca46ae0
eaeadc9
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
eaeadc9
- rebuilt
eaeadc9
82d1fdd
* Wed Nov  2 2005 Christopher Aillon <caillon@redhat.com> 1.0-0.5.pre5
82d1fdd
- Fix 64bit LIBDIR issue; use $LIBDIR instead of $PREFIX/lib
82d1fdd
eff3bf8
* Wed Nov  2 2005 Christopher Aillon <caillon@redhat.com> 1.0-0.4.pre5
eff3bf8
- Update to 1.0-pre5
eff3bf8
392ae04
* Tue Nov  1 2005 Christopher Aillon <caillon@redhat.com> 1.0-0.3.pre4
392ae04
- Update to 1.0-pre4
392ae04
813a793
* Tue Nov  1 2005 Christopher Aillon <caillon@redhat.com> 1.0-0.2.pre3
813a793
- Minor specfile cleanup
813a793
813a793
* Thu Oct 27 2005 Dan Williams <dcbw@redhat.com> 1.0-0.1.pre3
7ec89f4
- Split into main and devel packages
7ec89f4
813a793
* Thu Oct 27 2005 Dan Williams <dcbw@redhat.com> 1.0-0.0.pre3
15e0cec
- initial build