first draft for libnl 1.1
[libnl.git] / libnl.spec
1 Summary: Convenience library for kernel netlink sockets
2 Group: Development/Libraries
3 License: LGPL
4 Name: libnl
5 Version: 1.1
6 Release: 1%{?dist}
7 URL: http://people.suug.ch/~tgr/libnl/
8 Source: http://people.suug.ch/~tgr/libnl/files/libnl-%{version}.tar.gz
9 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
10 BuildRequires: doxygen
11 Patch1: libnl-1.0-pre5-static.patch
12 Patch2: libnl-1.0-pre5-debuginfo.patch
13 Patch3: libnl-1.0-pre8-use-vasprintf-retval.patch
14 Patch4: libnl-1.0-pre8-more-build-output.patch
15
16 %description
17 This package contains a convenience library to simplify
18 using the Linux kernel's netlink sockets interface for
19 network manipulation
20
21 %package devel
22 Summary: Libraries and headers for using libnl
23 Group: Development/Libraries
24 Requires: %{name} = %{version}-%{release}
25 Requires: kernel-headers
26
27 %description devel
28 This package contains various headers for using libnl
29
30
31 %prep
32 %setup -q -n %{name}-%{version}
33 %patch1 -p1 -b .build-static
34 %patch2 -p1 -b .debuginfo
35 %patch3 -p1 -b .use-vasprintf-retval
36 %patch4 -p1 -b .more-build-output
37
38 %build
39 %configure
40 make
41
42 %install
43 %{__rm} -rf $RPM_BUILD_ROOT
44 make install DESTDIR=$RPM_BUILD_ROOT
45
46 %clean
47 %{__rm} -rf $RPM_BUILD_ROOT
48
49 %post -p /sbin/ldconfig
50 %postun -p /sbin/ldconfig
51
52 %files
53 %defattr(-,root,root)
54 %{_libdir}/%{name}.so.*
55 %doc COPYING
56
57 %files devel
58 %defattr(-,root,root,0755)
59 %{_includedir}/netlink/
60 %doc doc/*
61 %{_libdir}/%{name}.so
62 %{_libdir}/%{name}.a
63 %{_libdir}/pkgconfig/%{name}-1.pc
64
65 %changelog
66 * Mon Feb 11 2008 Dan Williams <dcbw@redhat.com> - 1.1-1
67 - Update to version 1.1
68
69 * Tue Dec 18 2007 Dan Williams <dcbw@redhat.com> - 1.0-0.15.pre8.git20071218
70 - Handle removal of include/linux/ip_mp_alg.h in 2.6.24
71
72 * Tue Dec 18 2007 Dan Williams <dcbw@redhat.com> - 1.0-0.14.pre8.git20071217
73 - devel package should require kernel-headers
74
75 * Mon Dec 17 2007 Dan Williams <dcbw@redhat.com> - 1.0-0.13.pre8.git20071217
76 - Add dist tag to revision 
77
78 * Mon Dec 17 2007 Dan Williams <dcbw@redhat.com> - 1.0-0.12.pre8.git20071217
79 - Update to -pre8 + fixes (rh #401761)
80
81 * Mon Aug 14 2006 Peter Jones <pjones@redhat.com> - 1.0-0.10.pre5.4
82 - Fix nl_recv() for ppc64
83
84 * Mon Jul 31 2006 Jeremy Katz <katzj@redhat.com> - 1.0-0.10.pre5.3
85 - unbreak the pkgconfig file
86
87 * Wed Jul 26 2006 Matthias Clasen <mclasen@redhat.com> - 1.0-0.10.pre5.2
88 - Fix the pkgconfig file on 64-bit systems (#197176)
89
90 * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.0-0.10.pre5.1
91 - rebuild
92
93 * Thu Jun 15 2006 Peter Jones <pjones@redhat.com> 1.0-0.10.pre5
94 - Fix debuginfo generation.
95
96 * Fri May 26 2006 Jason Vas Dias <jvdias@redhat.com> 1.0-0.9.pre5
97 - Allow build to succeed with new gcc / glibc-kernheaders
98   (compile failed on __u64 redefinition on x86_64).
99 - Add a static %{_libdir}/libnl.a library to libnl-devel for
100   programs that might need to do a static link to libnl.
101   Added after consultation with Christopher Aillon.
102
103 * Tue Feb 12 2006 Christopher Aillon <caillon@redhat.com> 1.0-0.8.pre5
104 - Rebuild
105
106 * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> 1.0-0.7.pre5.1
107 - rebuilt for new gcc4.1 snapshot and glibc changes
108
109 * Mon Jan 16 2006 Christopher Aillon <caillon@redhat.com> 1.0-0.7.pre5
110 - Add patch to not chown files to root.root during make install; it
111   happens normally.
112
113 * Mon Jan  9 2006 Christopher Aillon <caillon@redhat.com> 1.0-0.6.pre5
114 - Correctly install the pkgconfig file
115
116 * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
117 - rebuilt
118
119 * Wed Nov  2 2005 Christopher Aillon <caillon@redhat.com> 1.0-0.5.pre5
120 - Fix 64bit LIBDIR issue; use $LIBDIR instead of $PREFIX/lib
121
122 * Wed Nov  2 2005 Christopher Aillon <caillon@redhat.com> 1.0-0.4.pre5
123 - Update to 1.0-pre5
124
125 * Tue Nov  1 2005 Christopher Aillon <caillon@redhat.com> 1.0-0.3.pre4
126 - Update to 1.0-pre4
127
128 * Tue Nov  1 2005 Christopher Aillon <caillon@redhat.com> 1.0-0.2.pre3
129 - Minor specfile cleanup
130
131 * Thu Oct 27 2005 Dan Williams <dcbw@redhat.com> 1.0-0.1.pre3
132 - Split into main and devel packages
133
134 * Thu Oct 27 2005 Dan Williams <dcbw@redhat.com> 1.0-0.0.pre3
135 - initial build