[libmnl] Initial import (#732159)

Hushan Jia hushan at fedoraproject.org
Wed Aug 24 14:23:38 UTC 2011


commit 59badce730b39d7fdf11c140f89be3be3f87aca5
Author: Hushan Jia <hushan.jia at gmail.com>
Date:   Wed Aug 24 22:22:46 2011 +0800

    Initial import (#732159)

 libmnl.spec |   76 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources     |    1 +
 2 files changed, 77 insertions(+), 0 deletions(-)
---
diff --git a/libmnl.spec b/libmnl.spec
new file mode 100644
index 0000000..39becee
--- /dev/null
+++ b/libmnl.spec
@@ -0,0 +1,76 @@
+Name:           libmnl
+Version:        1.0.1
+Release:        4%{?dist}
+Summary:        A minimalistic Netlink library
+
+Group:          System Environment/Libraries
+License:        LGPLv2+
+URL:            http://netfilter.org/projects/libmnl
+Source0:        http://netfilter.org/projects/libmnl/files/%{name}-%{version}.tar.bz2
+
+%description
+libmnl is a minimalistic user-space library oriented to Netlink developers.
+There are a lot of common tasks in parsing, validating, constructing of both
+the Netlink header and TLVs that are repetitive and easy to get wrong.
+This library aims to provide simple helpers that allows you to re-use code and
+to avoid re-inventing the wheel.
+
+
+%package        devel
+Summary:        Development files for %{name}
+Group:          Development/Libraries
+Requires:       %{name}%{_isa} = %{version}-%{release}
+
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%prep
+%setup -q
+
+
+%build
+%configure --disable-static
+make CFLAGS="%{optflags}" %{?_smp_mflags}
+
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+find examples '(' -name 'Makefile.am' -o -name 'Makefile.in' ')' -exec rm -f {} ';'
+find examples -type d -name '.deps' -prune -exec rm -rf {} ';'
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%doc COPYING README
+%{_libdir}/*.so.*
+
+%files devel
+%doc COPYING
+%doc examples
+%{_includedir}/*
+%{_libdir}/pkgconfig/*.pc
+%{_libdir}/*.so
+
+
+%changelog
+* Wed Aug 24 2011 Hushan Jia <hushan.jia at gmail.com> 1.0.1-4
+- fix require of devel package
+- add example source files to docs
+
+* Wed Aug 24 2011 Hushan Jia <hushan.jia at gmail.com> 1.0.1-3
+- remove unnecessary buildroot and defattr tags
+- remove unnecessary build requires
+
+* Sat Aug 20 2011 Hushan Jia <hushan.jia at gmail.com> 1.0.1-2
+- use upstream released source tarball
+
+* Sat Aug 20 2011 Hushan Jia <hushan.jia at gmail.com> 1.0.1-1
+- initial packaging
+
diff --git a/sources b/sources
index e69de29..7892b79 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e936236bb57a2375afa4e70e75dc3ba9  libmnl-1.0.1.tar.bz2


More information about the scm-commits mailing list