7ec89f4
Summary: Convenience library for kernel netlink sockets
15e0cec
Group: Development/Libraries
f8b2e7c
License: LGPLv2
15e0cec
Name: libnl
Thomas Graf 626d0f6
Version: 1.1.4
4b7956b
Release: 2%{?dist}
cfe19b7
URL: http://www.infradead.org/~tgr/libnl/
cfe19b7
Source: http://www.infradead.org/~tgr/libnl/files/libnl-%{version}.tar.gz
15e0cec
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
15e0cec
BuildRequires: doxygen
Thomas Graf 626d0f6
Patch0: libnl-1.0-pre8-more-build-output.patch
Thomas Graf 626d0f6
Patch1: libnl-1.1-doc-inlinesrc.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}
fe5935a
Requires: kernel-headers
7ec89f4
7ec89f4
%description devel
7ec89f4
This package contains various headers for using libnl
7ec89f4
7ec89f4
15e0cec
%prep
fb839a0
%setup -q -n %{name}-%{version}
Thomas Graf 626d0f6
%patch0 -p1 -b .more-build-output
Thomas Graf 626d0f6
%patch1 -p1 -b .doc-inlinesrc
da3a17f
da3a17f
# a quick hack to make doxygen stripping builddir from html outputs.
da3a17f
sed -i.org -e "s,^STRIP_FROM_PATH.*,STRIP_FROM_PATH = `pwd`," doc/Doxyfile.in
15e0cec
15e0cec
%build
15e0cec
%configure
15e0cec
make
da3a17f
make gendoc
15e0cec
15e0cec
%install
813a793
%{__rm} -rf $RPM_BUILD_ROOT
15e0cec
make install DESTDIR=$RPM_BUILD_ROOT
15e0cec
Thomas Graf 626d0f6
rm $RPM_BUILD_ROOT%{_libdir}/libnl.a
Thomas Graf 626d0f6
dc4f1d8
mkdir $RPM_BUILD_ROOT/%{_lib}
dc4f1d8
mv $RPM_BUILD_ROOT%{_libdir}/libnl.so.* $RPM_BUILD_ROOT/%{_lib}
dc4f1d8
for l in $RPM_BUILD_ROOT%{_libdir}/libnl.so; do
dc4f1d8
    ln -sf $(echo %{_libdir} | \
dc4f1d8
        sed 's,\(^/\|\)[^/][^/]*,..,g')/%{_lib}/$(readlink $l) $l
dc4f1d8
done
dc4f1d8
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)
dc4f1d8
/%{_lib}/%{name}.so.*
7ec89f4
%doc COPYING
7ec89f4
7ec89f4
%files devel
7ec89f4
%defattr(-,root,root,0755)
15e0cec
%{_includedir}/netlink/
da3a17f
%doc doc/html
7ec89f4
%{_libdir}/%{name}.so
7ec89f4
%{_libdir}/pkgconfig/%{name}-1.pc
15e0cec
15e0cec
%changelog
4b7956b
* Sat Jul 13 2013 Karsten Hopp <karsten@redhat.com> 1.1.4-2
4b7956b
- rebuild to fix dependencies on PPC
4b7956b
Thomas Graf 626d0f6
* Tue May 07 2013 Thomas Graf <tgraf@redhat.com> - 1.1.4-1
Thomas Graf 626d0f6
- Update to latest stable release 1.1.4
Thomas Graf 626d0f6
b748867
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-17
b748867
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b748867
88d7cc0
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-16
88d7cc0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
88d7cc0
913ccb6
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-15
913ccb6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
913ccb6
ffdf3b8
* Mon Mar 21 2011 Dan Williams <dcbw@redhat.com> - 1.1-14
ffdf3b8
- Fix portmap position calculation (rh #677526) (rh #677725)
ffdf3b8
- Make port allocation threadsafe (rh #677527) (rh #677724)
ffdf3b8
3f736a4
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-13
3f736a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3f736a4
3489a47
* Mon May 24 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1-12
3489a47
- disable static by default (if you really want static lib, --enable-static)
3489a47
686f172
* Thu May 13 2010 Dan Williams <dcbw@redhat.com> - 1.1-11
4dd9a99
- Update source link for package review (rh #592042)
cfe19b7
686f172
* Fri Feb 26 2010 Dennis Gilmore <dennis@ausil.us> - 1.1-10
686f172
- add patch for alignment issues
686f172
dc4f1d8
* Tue Dec 22 2009 John W. Linville <linville@redhat.com> - 1.1-9
dc4f1d8
- Install libnl into /%{_lib} instead of %{_libdir}
dc4f1d8
0502033
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-8
0502033
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0502033
965b082
* Thu May 14 2009 Peter Jones <pjones@redhat.com> - 1.1-7
965b082
- Don't present "extern inline nl_object_priv();" to consumers in the headers.
965b082
10e2c62
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-6
10e2c62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
10e2c62
da3a17f
* Fri Jun 27 2008 Dan Williams <dcbw@redhat.com> - 1.1-5
da3a17f
- Build documentation in -devel package (rh #452646)
da3a17f
f8b2e7c
* Thu May 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1-4
f8b2e7c
- fix license tag
f8b2e7c
2f1e629
* Fri Feb 22 2008 Dan Williams <dcbw@redhat.com> - 1.1-3
2f1e629
- Include limits.h to fix gcc 4.3 rebuild issues (rh #434055)
2f1e629
f009e03
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1-2
f009e03
- Autorebuild for GCC 4.3
f009e03
fb839a0
* Wed Jan 23 2008 Dan Williams <dcbw@redhat.com> - 1.1-1
fb839a0
- Update to version 1.1
fb839a0
7ba7c4e
* Tue Dec 18 2007 Dan Williams <dcbw@redhat.com> - 1.0-0.15.pre8.git20071218
7ba7c4e
- Handle removal of include/linux/ip_mp_alg.h in 2.6.24
7ba7c4e
fe5935a
* Tue Dec 18 2007 Dan Williams <dcbw@redhat.com> - 1.0-0.14.pre8.git20071217
fe5935a
- devel package should require kernel-headers
fe5935a
a3bce15
* Mon Dec 17 2007 Dan Williams <dcbw@redhat.com> - 1.0-0.13.pre8.git20071217
a3bce15
- Add dist tag to revision 
a3bce15
460b6e9
* Mon Dec 17 2007 Dan Williams <dcbw@redhat.com> - 1.0-0.12.pre8.git20071217
a3bce15
- Update to -pre8 + fixes (rh #401761)
460b6e9
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