This commit was generated by cvs2svn to compensate for changes in r786,
[libnl.git] / libnl.spec
diff --git a/libnl.spec b/libnl.spec
new file mode 100644 (file)
index 0000000..c4632c2
--- /dev/null
@@ -0,0 +1,138 @@
+%define preversion pre6
+
+Summary: Convenience library for kernel netlink sockets
+Group: Development/Libraries
+License: LGPL
+Name: libnl
+Version: 1.0
+Release: 0.11.%{preversion}
+URL: http://people.suug.ch/~tgr/libnl/
+Source: http://people.suug.ch/~tgr/libnl/files/libnl-%{version}-%{preversion}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildRequires: doxygen
+#Patch3: libnl-1.0-pre6-static.patch
+#Patch4: libnl-1.0-pre5-__u64_x86_64.patch
+#Patch5: libnl-1.0-pre6-debuginfo.patch
+
+%description
+This package contains a convenience library to simplify
+using the Linux kernel's netlink sockets interface for
+network manipulation
+
+%package devel
+Summary: Libraries and headers for using libnl
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+This package contains various headers for using libnl
+
+
+%prep
+%setup -q -n libnl-%{version}-%{preversion}
+#%patch3 -p1
+#%patch4 -p1
+#%patch5 -p1
+
+%build
+%configure
+make
+
+%install
+%{__rm} -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+%{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/pkgconfig/
+cat >libnl-1.pc <<EOF
+prefix=%{_prefix}
+exec_prefix=%{_prefix}
+libdir=%{_libdir}
+includedir=%{_includedir}
+
+Name: libnl
+Description: Convenience library for netlink sockets
+Version: %{version}-%{release}
+Libs: -L%{_libdir} -lnl
+Cflags:
+EOF
+
+%{__install} -m 644 libnl-1.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/
+
+%clean
+%{__rm} -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root)
+%{_libdir}/%{name}.so.*
+%doc COPYING
+
+%files devel
+%defattr(-,root,root,0755)
+%{_includedir}/netlink/
+%doc doc/*
+%{_libdir}/%{name}.so
+%{_libdir}/%{name}.a
+%{_libdir}/pkgconfig/%{name}-1.pc
+
+%changelog
+* Thu Jul 26 2007 Daniel Hokka Zakrisson <daniel@hozac.com> - 1.0-0.11.pre6
+- Upgrade to pre6
+
+* Mon Aug 14 2006 Peter Jones <pjones@redhat.com> - 1.0-0.10.pre5.4
+- Fix nl_recv() for ppc64
+
+* Mon Jul 31 2006 Jeremy Katz <katzj@redhat.com> - 1.0-0.10.pre5.3
+- unbreak the pkgconfig file
+
+* Wed Jul 26 2006 Matthias Clasen <mclasen@redhat.com> - 1.0-0.10.pre5.2
+- Fix the pkgconfig file on 64-bit systems (#197176)
+
+* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.0-0.10.pre5.1
+- rebuild
+
+* Thu Jun 15 2006 Peter Jones <pjones@redhat.com> 1.0-0.10.pre5
+- Fix debuginfo generation.
+
+* Fri May 26 2006 Jason Vas Dias <jvdias@redhat.com> 1.0-0.9.pre5
+- Allow build to succeed with new gcc / glibc-kernheaders
+  (compile failed on __u64 redefinition on x86_64).
+- Add a static %{_libdir}/libnl.a library to libnl-devel for
+  programs that might need to do a static link to libnl.
+  Added after consultation with Christopher Aillon.
+
+* Tue Feb 12 2006 Christopher Aillon <caillon@redhat.com> 1.0-0.8.pre5
+- Rebuild
+
+* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> 1.0-0.7.pre5.1
+- rebuilt for new gcc4.1 snapshot and glibc changes
+
+* Mon Jan 16 2006 Christopher Aillon <caillon@redhat.com> 1.0-0.7.pre5
+- Add patch to not chown files to root.root during make install; it
+  happens normally.
+
+* Mon Jan  9 2006 Christopher Aillon <caillon@redhat.com> 1.0-0.6.pre5
+- Correctly install the pkgconfig file
+
+* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
+- rebuilt
+
+* Wed Nov  2 2005 Christopher Aillon <caillon@redhat.com> 1.0-0.5.pre5
+- Fix 64bit LIBDIR issue; use $LIBDIR instead of $PREFIX/lib
+
+* Wed Nov  2 2005 Christopher Aillon <caillon@redhat.com> 1.0-0.4.pre5
+- Update to 1.0-pre5
+
+* Tue Nov  1 2005 Christopher Aillon <caillon@redhat.com> 1.0-0.3.pre4
+- Update to 1.0-pre4
+
+* Tue Nov  1 2005 Christopher Aillon <caillon@redhat.com> 1.0-0.2.pre3
+- Minor specfile cleanup
+
+* Thu Oct 27 2005 Dan Williams <dcbw@redhat.com> 1.0-0.1.pre3
+- Split into main and devel packages
+
+* Thu Oct 27 2005 Dan Williams <dcbw@redhat.com> 1.0-0.0.pre3
+- initial build