From 2d3b500003fddf412f28061b42e99157579583e1 Mon Sep 17 00:00:00 2001 From: Arron Wang Date: Mon, 21 Oct 2013 11:04:18 +0800 Subject: [PATCH] Add packaging directory Change-Id: I6e0505cfcae0df47c1f1571ea8a7667107fa5ec6 --- .gbs.conf | 3 ++ packaging/libnl3.changes | 1 + packaging/libnl3.manifest | 5 +++ packaging/libnl3.spec | 79 +++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 88 insertions(+) create mode 100644 .gbs.conf create mode 100644 packaging/libnl3.changes create mode 100644 packaging/libnl3.manifest create mode 100644 packaging/libnl3.spec diff --git a/.gbs.conf b/.gbs.conf new file mode 100644 index 0000000..99e7cc8 --- /dev/null +++ b/.gbs.conf @@ -0,0 +1,3 @@ +[general] +upstream_branch = upstream +upstream_tag = upstream/${upstreamversion} diff --git a/packaging/libnl3.changes b/packaging/libnl3.changes new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/packaging/libnl3.changes @@ -0,0 +1 @@ + diff --git a/packaging/libnl3.manifest b/packaging/libnl3.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/libnl3.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/libnl3.spec b/packaging/libnl3.spec new file mode 100644 index 0000000..167e4f2 --- /dev/null +++ b/packaging/libnl3.spec @@ -0,0 +1,79 @@ +Name: libnl3 +Summary: Library for netlink sockets +Version: 3.2.22 +Release: 1 +Group: System/Network +License: LGPL-2.1 +Source0: %{name}-%{version}.tar.gz +Source1001: libnl3.manifest +BuildRequires: bison +BuildRequires: flex + +%description +This is a library for applications dealing with netlink sockets. +The library provides an interface for raw netlink messaging and various +netlink family specific interfaces. + +%package devel +Summary: Development library and headers for libnl3 +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +This is a library for applications dealing with netlink sockets. +The library provides an interface for raw netlink messaging and various +netlink family specific interfaces. +This package contains all files that are needed to build applications using +libnl3. + +%package cli +Summary: Command line interface utils for libnl3 +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description cli +This package contains various libnl3 utils and additional +libraries on which they depend + +%prep +%setup -q +cp %{SOURCE1001} . + + +%build +chmod +x autogen.sh +%autogen.sh +%configure + +make -j1 + +%install +%make_install +rm -f %{buildroot}/etc/libnl/pktloc + +%post -p /sbin/ldconfig +%post cli -p /sbin/ldconfig +%postun -p /sbin/ldconfig +%postun cli -p /sbin/ldconfig + +%files +%manifest %{name}.manifest +%defattr(-,root,root,-) +%license COPYING +%{_libdir}/libnl*.so.* +%exclude %{_libdir}/libnl-cli*.so.* +%config(noreplace) %{_sysconfdir}/* + +%files devel +%manifest %{name}.manifest +%defattr(-,root,root,-) +%{_includedir}/* +%{_libdir}/pkgconfig/* +%{_libdir}/libnl*.so + +%files cli +%defattr(-,root,root,-) +%{_libdir}/libnl-cli*.so.* +%{_libdir}/libnl/ +%{_sbindir}/* +%{_mandir}/man8/* -- 2.7.4