From 66ed248d259bee790e28ce8e834d235ff6cfc90c01ac7aa023ada8e14f25cd25 Mon Sep 17 00:00:00 2001 From: Nirmoy Das Date: Fri, 25 Aug 2017 10:24:55 +0000 Subject: [PATCH] Accepting request 517867 from home:mvarlese:branches:network - Split libs into a subpackage to provide multiple installable versions on same sytem - Split libs into a subpackage to provide multiple installable versions on same sytem OBS-URL: https://build.opensuse.org/request/show/517867 OBS-URL: https://build.opensuse.org/package/show/network/dpdk?expand=0&rev=56 --- dpdk-thunderx.changes | 5 +++++ dpdk-thunderx.spec | 20 +++++++++++++++++--- dpdk.changes | 5 +++++ dpdk.spec | 20 +++++++++++++++++--- 4 files changed, 44 insertions(+), 6 deletions(-) diff --git a/dpdk-thunderx.changes b/dpdk-thunderx.changes index 4308a6c..cdd0096 100644 --- a/dpdk-thunderx.changes +++ b/dpdk-thunderx.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Aug 18 14:44:37 UTC 2017 - marco.varlese@suse.com + +- Split libs into a subpackage to provide multiple installable versions on same sytem + ------------------------------------------------------------------- Tue Jul 18 11:26:36 CEST 2017 - ndas@suse.de diff --git a/dpdk-thunderx.spec b/dpdk-thunderx.spec index bdad6a4..c9338a8 100644 --- a/dpdk-thunderx.spec +++ b/dpdk-thunderx.spec @@ -40,6 +40,9 @@ %bcond_without examples # Add option to build without tools %bcond_without tools + +%define lname libdpdk-16_11-2 + # Do NOT edit this auto generated file! Edit dpdk.spec instead # and run 'pre_checkin.sh' before committing Name: dpdk-thunderx @@ -83,7 +86,7 @@ fast packet processing in the user space. %package devel Summary: Data Plane Development Kit development files (thunderx) Group: Development/Libraries/C and C++ -Requires: %{name} = %{version} +Requires: %{lname} = %{version} Provides: dpdk-any-devel = %{version} Conflicts: otherproviders(dpdk-any-devel) @@ -91,6 +94,15 @@ Conflicts: otherproviders(dpdk-any-devel) This package contains the headers and other files needed for developing applications with the Data Plane Development Kit. +%package -n %{lname} +Summary: Data Plane Development Kit runtime libraries (thunderx) +Group: Development/Libraries/C and C++ +Provides: %{lname}-any = %{version} + +%description -n %{lname} +This package contains the runtime libraries needed for 3rd party application +to use the Data Plane Development Kit. + %package doc Summary: Data Plane Development Kit API documentation (thunderx) Group: System/Libraries @@ -316,8 +328,8 @@ ln -s %{_sbindir}/dpdk-devbind %{buildroot}%{_sbindir}/dpdk_nic_bind %post devel -p /sbin/ldconfig %postun devel -p /sbin/ldconfig -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%post -n %{lname} -p /sbin/ldconfig +%postun -n %{lname} -p /sbin/ldconfig %files %defattr(-,root,root) @@ -327,6 +339,8 @@ ln -s %{_sbindir}/dpdk-devbind %{buildroot}%{_sbindir}/dpdk_nic_bind %{_bindir}/dpdk_proc_info %{_bindir}/dpdk-pdump +%files -n %{lname} +%defattr(-,root,root) %if %{with shared} %dir %{_libdir}/dpdk-pmds diff --git a/dpdk.changes b/dpdk.changes index 4308a6c..cdd0096 100644 --- a/dpdk.changes +++ b/dpdk.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Aug 18 14:44:37 UTC 2017 - marco.varlese@suse.com + +- Split libs into a subpackage to provide multiple installable versions on same sytem + ------------------------------------------------------------------- Tue Jul 18 11:26:36 CEST 2017 - ndas@suse.de diff --git a/dpdk.spec b/dpdk.spec index 8fdea8f..974ec69 100644 --- a/dpdk.spec +++ b/dpdk.spec @@ -40,6 +40,9 @@ %bcond_without examples # Add option to build without tools %bcond_without tools + +%define lname libdpdk-16_11-2 + Name: dpdk Version: 16.11.2 Release: 0 @@ -81,7 +84,7 @@ fast packet processing in the user space. %package devel Summary: Data Plane Development Kit development files Group: Development/Libraries/C and C++ -Requires: %{name} = %{version} +Requires: %{lname} = %{version} Provides: dpdk-any-devel = %{version} Conflicts: otherproviders(dpdk-any-devel) @@ -89,6 +92,15 @@ Conflicts: otherproviders(dpdk-any-devel) This package contains the headers and other files needed for developing applications with the Data Plane Development Kit. +%package -n %{lname} +Summary: Data Plane Development Kit runtime libraries +Group: Development/Libraries/C and C++ +Provides: %{lname}-any = %{version} + +%description -n %{lname} +This package contains the runtime libraries needed for 3rd party application +to use the Data Plane Development Kit. + %package doc Summary: Data Plane Development Kit API documentation Group: System/Libraries @@ -314,8 +326,8 @@ ln -s %{_sbindir}/dpdk-devbind %{buildroot}%{_sbindir}/dpdk_nic_bind %post devel -p /sbin/ldconfig %postun devel -p /sbin/ldconfig -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%post -n %{lname} -p /sbin/ldconfig +%postun -n %{lname} -p /sbin/ldconfig %files %defattr(-,root,root) @@ -325,6 +337,8 @@ ln -s %{_sbindir}/dpdk-devbind %{buildroot}%{_sbindir}/dpdk_nic_bind %{_bindir}/dpdk_proc_info %{_bindir}/dpdk-pdump +%files -n %{lname} +%defattr(-,root,root) %if %{with shared} %dir %{_libdir}/dpdk-pmds