add packaging
authorAnas Nashif <anas.nashif@intel.com>
Sat, 17 Nov 2012 16:23:33 +0000 (08:23 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Sat, 17 Nov 2012 16:23:33 +0000 (08:23 -0800)
packaging/baselibs.conf [new file with mode: 0644]
packaging/libmnl.spec [new file with mode: 0644]

diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644 (file)
index 0000000..7f2c3db
--- /dev/null
@@ -0,0 +1 @@
+libmnl
diff --git a/packaging/libmnl.spec b/packaging/libmnl.spec
new file mode 100644 (file)
index 0000000..2a452ca
--- /dev/null
@@ -0,0 +1,64 @@
+Name:           libmnl
+Summary:        Minimalistic Netlink communication library
+License:        LGPL-2.1+
+Group:          Productivity/Networking/Security
+Version:        1.0.3
+Release:        0
+Url:            http://netfilter.org/projects/libmnl/
+
+#Git-Clone:    git://git.netfilter.org/libmnl
+Source:         ftp://ftp.netfilter.org/pub/libmnl/%name-%version.tar.bz2
+Source2:        ftp://ftp.netfilter.org/pub/libmnl/%name-%version.tar.bz2.sig
+Source9:        baselibs.conf
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+#git#BuildRequires:    autoconf, automake >= 1.6
+BuildRequires:  libtool
+BuildRequires:  pkgconfig >= 0.21
+
+%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
+Requires:       %lname = %version
+Summary:        Development files for libmnl
+Group:          Development/Libraries/C and C++
+
+%description devel
+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.
+
+%prep
+%setup -q
+
+%build
+if [ ! -e configure ]; then
+       autoreconf -fi;
+fi;
+%configure --includedir=%_includedir/%name-%version
+make %{?_smp_mflags}
+
+%install
+%make_install
+
+%post  -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root)
+%_libdir/libmnl.so.0*
+
+%files -n %name-devel
+%defattr(-,root,root)
+%_includedir/libmnl*
+%_libdir/libmnl.so
+%_libdir/pkgconfig/libmnl.pc
+
+%changelog