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
This commit is contained in:
Nirmoy Das 2017-08-25 10:24:55 +00:00 committed by Git OBS Bridge
parent f690468140
commit 66ed248d25
4 changed files with 44 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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