Comply to Fedora static package policies

- Move static libraries to -devel, there's no point in having them
  in a "runtime" package anyway
- Add dpdk-static = %{version}-%{release} provide to -devel
- Have the main package always own the private library directory though
This commit is contained in:
Panu Matilainen 2015-01-28 11:18:01 +02:00
parent 27aaece3a8
commit 38bb65f078

View File

@ -41,6 +41,7 @@ fast packet processing in the user space.
%package devel %package devel
Summary: Data Plane Development Kit development files Summary: Data Plane Development Kit development files
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
Provides: %{name}-static = %{version}-%{release}
%description devel %description devel
This package contains the headers and other files needed for developing This package contains the headers and other files needed for developing
@ -139,7 +140,7 @@ install -m 644 ${comblib} %{buildroot}/%{_libdir}/%{name}-%{version}/${comblib}
%files %files
# BSD # BSD
%{_bindir}/* %{_bindir}/*
%{_libdir}/%{name}-%{version} %dir %{_libdir}/%{name}-%{version}
%files doc %files doc
#BSD #BSD
@ -150,8 +151,12 @@ install -m 644 ${comblib} %{buildroot}/%{_libdir}/%{name}-%{version}/${comblib}
%{_includedir}/* %{_includedir}/*
%{sdkdir} %{sdkdir}
%{_sysconfdir}/profile.d/dpdk-sdk-*.* %{_sysconfdir}/profile.d/dpdk-sdk-*.*
%{_libdir}/%{name}-%{version}/*.a
%changelog %changelog
* Wed Jan 27 2015 Panu Matilainen <pmatilai@redhat.com> - 1.7.0-7
- Policy compliance: move static libraries to -devel, provide dpdk-static
* Wed Jan 27 2015 Panu Matilainen <pmatilai@redhat.com> - 1.7.0-6 * Wed Jan 27 2015 Panu Matilainen <pmatilai@redhat.com> - 1.7.0-6
- Avoid variable expansion in the spec here-documents during build - Avoid variable expansion in the spec here-documents during build
- Drop now unnecessary debug flags patch - Drop now unnecessary debug flags patch