From 11edf3df8be46b9f2568b4f457aea1d2cb61233c Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: May 15 2013 06:14:42 +0000 Subject: import libnl-1.1.4-1.el7.src.rpm --- diff --git a/.libnl.metadata b/.libnl.metadata new file mode 100644 index 0000000..135b55a --- /dev/null +++ b/.libnl.metadata @@ -0,0 +1 @@ +5068165a0a2952706cd802a7a2934dd13ec12429 SOURCES/libnl-1.1.4.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/libnl-1.0-pre8-more-build-output.patch b/SOURCES/libnl-1.0-pre8-more-build-output.patch new file mode 100644 index 0000000..d0357e5 --- /dev/null +++ b/SOURCES/libnl-1.0-pre8-more-build-output.patch @@ -0,0 +1,71 @@ +diff -up libnl-1.0-pre8/src/Makefile.more-build-output libnl-1.0-pre8/src/Makefile +--- libnl-1.0-pre8/src/Makefile.more-build-output 2007-12-03 14:25:29.000000000 -0500 ++++ libnl-1.0-pre8/src/Makefile 2007-12-03 14:25:38.000000000 -0500 +@@ -22,19 +22,15 @@ all: $(TOOLS) + $(TOOLS): utils.o + + nl-%: nl-%.c +- @echo " LD $@"; \ + $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) + + genl-%: genl-%.c +- @echo " LD $@"; \ + $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) + + nf-%: nf-%.c +- @echo " LD $@"; \ + $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) + + clean: +- @echo " CLEAN src"; \ + rm -f $(TOOLS) utils.o + + distclean: clean +diff -up libnl-1.0-pre8/Makefile.rules.more-build-output libnl-1.0-pre8/Makefile.rules +--- libnl-1.0-pre8/Makefile.rules.more-build-output 2007-11-21 12:25:39.000000000 -0500 ++++ libnl-1.0-pre8/Makefile.rules 2007-12-03 14:24:22.000000000 -0500 +@@ -13,11 +13,9 @@ + .SUFFIXES: .d .c + + %.o: %.c +- @echo " CC $<"; \ + $(CC) $(CFLAGS) -c -o $@ $< + + %.d: %.c +- @echo " DEP $<"; \ + $(CC) $(DEPFLAGS) $< > $@.tmp; \ + sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.tmp > $@; \ + rm -f $@.tmp +diff -up libnl-1.0-pre8/lib/Makefile.more-build-output libnl-1.0-pre8/lib/Makefile +--- libnl-1.0-pre8/lib/Makefile.more-build-output 2007-12-03 14:24:22.000000000 -0500 ++++ libnl-1.0-pre8/lib/Makefile 2007-12-03 14:24:22.000000000 -0500 +@@ -42,29 +42,22 @@ export + + + all: +- @echo " MAKE $(OUT_SLIB)"; \ + $(MAKE) $(OUT_SLIB); \ + $(MAKE) $(OUT_AR) + + $(OUT_SLIB): ../Makefile.opts $(OBJ) +- @echo " LD $(OUT_SLIB)"; \ + $(CC) -shared -Wl,-soname,libnl.so.1 -o $(OUT_SLIB) $(OBJ) $(LIBNL_LIB) -lc +- @echo " LN $(OUT_SLIB) $(LN1_SLIB)"; \ + rm -f $(LN1_SLIB) ; $(LN) -s $(OUT_SLIB) $(LN1_SLIB) +- @echo " LN $(LN1_SLIB) $(LN_SLIB)"; \ + rm -f $(LN_SLIB) ; $(LN) -s $(LN1_SLIB) $(LN_SLIB) + + $(OUT_AR): ../Makefile.opts $(OBJ) +- @echo " AR $(OUT_AR)"; \ + $(AR) crus $(OUT_AR) $(OBJ) + + clean: +- @echo " CLEAN lib"; \ + $(RM) -f $(OBJ) $(OUT_SLIB) $(LN_SLIB) $(LN1_SLIB); \ + $(RM) -f $(DEPS) $(OUT_SLIB) $(LN_SLIB) $(LN1_SLIB) + + distclean: +- @echo " DISTCLEAN lib"; \ + $(RM) -f $(DEPS) + + install: diff --git a/SOURCES/libnl-1.1-doc-inlinesrc.patch b/SOURCES/libnl-1.1-doc-inlinesrc.patch new file mode 100644 index 0000000..7cd7ffd --- /dev/null +++ b/SOURCES/libnl-1.1-doc-inlinesrc.patch @@ -0,0 +1,12 @@ +diff -up libnl-1.1/doc/Doxyfile.in.srclink libnl-1.1/doc/Doxyfile.in +--- libnl-1.1/doc/Doxyfile.in.srclink 2008-06-24 16:37:11.000000000 +0900 ++++ libnl-1.1/doc/Doxyfile.in 2008-06-24 16:37:39.000000000 +0900 +@@ -580,7 +580,7 @@ SOURCE_BROWSER = YES + # Setting the INLINE_SOURCES tag to YES will include the body + # of functions and classes directly in the documentation. + +-INLINE_SOURCES = NO ++INLINE_SOURCES = YES + + # Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct + # doxygen to hide any special comment blocks from generated source code diff --git a/SPECS/libnl.spec b/SPECS/libnl.spec new file mode 100644 index 0000000..13cfeaa --- /dev/null +++ b/SPECS/libnl.spec @@ -0,0 +1,195 @@ +Summary: Convenience library for kernel netlink sockets +Group: Development/Libraries +License: LGPLv2 +Name: libnl +Version: 1.1.4 +Release: 1%{?dist} +URL: http://www.infradead.org/~tgr/libnl/ +Source: http://www.infradead.org/~tgr/libnl/files/libnl-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildRequires: doxygen +Patch0: libnl-1.0-pre8-more-build-output.patch +Patch1: libnl-1.1-doc-inlinesrc.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} +Requires: kernel-headers + +%description devel +This package contains various headers for using libnl + + +%prep +%setup -q -n %{name}-%{version} +%patch0 -p1 -b .more-build-output +%patch1 -p1 -b .doc-inlinesrc + +# a quick hack to make doxygen stripping builddir from html outputs. +sed -i.org -e "s,^STRIP_FROM_PATH.*,STRIP_FROM_PATH = `pwd`," doc/Doxyfile.in + +%build +%configure +make +make gendoc + +%install +%{__rm} -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +rm $RPM_BUILD_ROOT%{_libdir}/libnl.a + +mkdir $RPM_BUILD_ROOT/%{_lib} +mv $RPM_BUILD_ROOT%{_libdir}/libnl.so.* $RPM_BUILD_ROOT/%{_lib} +for l in $RPM_BUILD_ROOT%{_libdir}/libnl.so; do + ln -sf $(echo %{_libdir} | \ + sed 's,\(^/\|\)[^/][^/]*,..,g')/%{_lib}/$(readlink $l) $l +done + +%clean +%{__rm} -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +/%{_lib}/%{name}.so.* +%doc COPYING + +%files devel +%defattr(-,root,root,0755) +%{_includedir}/netlink/ +%doc doc/html +%{_libdir}/%{name}.so +%{_libdir}/pkgconfig/%{name}-1.pc + +%changelog +* Tue May 07 2013 Thomas Graf - 1.1.4-1 +- Update to latest stable release 1.1.4 + +* Thu Feb 14 2013 Fedora Release Engineering - 1.1-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jul 19 2012 Fedora Release Engineering - 1.1-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 1.1-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Mar 21 2011 Dan Williams - 1.1-14 +- Fix portmap position calculation (rh #677526) (rh #677725) +- Make port allocation threadsafe (rh #677527) (rh #677724) + +* Tue Feb 08 2011 Fedora Release Engineering - 1.1-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon May 24 2010 Tom "spot" Callaway - 1.1-12 +- disable static by default (if you really want static lib, --enable-static) + +* Thu May 13 2010 Dan Williams - 1.1-11 +- Update source link for package review (rh #592042) + +* Fri Feb 26 2010 Dennis Gilmore - 1.1-10 +- add patch for alignment issues + +* Tue Dec 22 2009 John W. Linville - 1.1-9 +- Install libnl into /%{_lib} instead of %{_libdir} + +* Fri Jul 24 2009 Fedora Release Engineering - 1.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu May 14 2009 Peter Jones - 1.1-7 +- Don't present "extern inline nl_object_priv();" to consumers in the headers. + +* Wed Feb 25 2009 Fedora Release Engineering - 1.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Jun 27 2008 Dan Williams - 1.1-5 +- Build documentation in -devel package (rh #452646) + +* Thu May 29 2008 Tom "spot" Callaway - 1.1-4 +- fix license tag + +* Fri Feb 22 2008 Dan Williams - 1.1-3 +- Include limits.h to fix gcc 4.3 rebuild issues (rh #434055) + +* Mon Feb 18 2008 Fedora Release Engineering - 1.1-2 +- Autorebuild for GCC 4.3 + +* Wed Jan 23 2008 Dan Williams - 1.1-1 +- Update to version 1.1 + +* Tue Dec 18 2007 Dan Williams - 1.0-0.15.pre8.git20071218 +- Handle removal of include/linux/ip_mp_alg.h in 2.6.24 + +* Tue Dec 18 2007 Dan Williams - 1.0-0.14.pre8.git20071217 +- devel package should require kernel-headers + +* Mon Dec 17 2007 Dan Williams - 1.0-0.13.pre8.git20071217 +- Add dist tag to revision + +* Mon Dec 17 2007 Dan Williams - 1.0-0.12.pre8.git20071217 +- Update to -pre8 + fixes (rh #401761) + +* Mon Aug 14 2006 Peter Jones - 1.0-0.10.pre5.4 +- Fix nl_recv() for ppc64 + +* Mon Jul 31 2006 Jeremy Katz - 1.0-0.10.pre5.3 +- unbreak the pkgconfig file + +* Wed Jul 26 2006 Matthias Clasen - 1.0-0.10.pre5.2 +- Fix the pkgconfig file on 64-bit systems (#197176) + +* Wed Jul 12 2006 Jesse Keating - 1.0-0.10.pre5.1 +- rebuild + +* Thu Jun 15 2006 Peter Jones 1.0-0.10.pre5 +- Fix debuginfo generation. + +* Fri May 26 2006 Jason Vas Dias 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 1.0-0.8.pre5 +- Rebuild + +* Tue Feb 07 2006 Jesse Keating 1.0-0.7.pre5.1 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Mon Jan 16 2006 Christopher Aillon 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 1.0-0.6.pre5 +- Correctly install the pkgconfig file + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Wed Nov 2 2005 Christopher Aillon 1.0-0.5.pre5 +- Fix 64bit LIBDIR issue; use $LIBDIR instead of $PREFIX/lib + +* Wed Nov 2 2005 Christopher Aillon 1.0-0.4.pre5 +- Update to 1.0-pre5 + +* Tue Nov 1 2005 Christopher Aillon 1.0-0.3.pre4 +- Update to 1.0-pre4 + +* Tue Nov 1 2005 Christopher Aillon 1.0-0.2.pre3 +- Minor specfile cleanup + +* Thu Oct 27 2005 Dan Williams 1.0-0.1.pre3 +- Split into main and devel packages + +* Thu Oct 27 2005 Dan Williams 1.0-0.0.pre3 +- initial build