rpm: package libraries in -libs package
There are need for both compiling (where main package is unwanted) and using (where devel package is unnecessary).
This commit is contained in:
parent
516815a266
commit
20cb2103e5
@ -13,6 +13,7 @@ License: GPL
|
|||||||
URL: http://www.qubes-os.org
|
URL: http://www.qubes-os.org
|
||||||
|
|
||||||
Requires: udev
|
Requires: udev
|
||||||
|
Requires: %{name}-libs
|
||||||
BuildRequires: qubes-libvchan-devel
|
BuildRequires: qubes-libvchan-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -21,10 +22,18 @@ Common Linux files for Qubes Dom0 and VM
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Development headers for qubes-utils
|
Summary: Development headers for qubes-utils
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
|
Requires: %{name}-libs
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Development header and files for qubes-utils
|
Development header and files for qubes-utils
|
||||||
|
|
||||||
|
%package libs
|
||||||
|
Summary: Qubes utils libraries
|
||||||
|
Release: 1%{?dist}
|
||||||
|
|
||||||
|
%description libs
|
||||||
|
Libraries for qubes-utils
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
|
||||||
|
|
||||||
@ -49,6 +58,9 @@ if [ $1 -eq 0 ]; then
|
|||||||
/bin/systemctl disable qubes-meminfo-writer.service > /dev/null 2>&1
|
/bin/systemctl disable qubes-meminfo-writer.service > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%post libs -p /sbin/ldconfig
|
||||||
|
%postun libs -p /sbin/ldconfig
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
@ -60,6 +72,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_unitdir}/qubes-meminfo-writer.service
|
%{_unitdir}/qubes-meminfo-writer.service
|
||||||
%{_unitdir}/qubes-meminfo-writer-dom0.service
|
%{_unitdir}/qubes-meminfo-writer-dom0.service
|
||||||
|
|
||||||
|
%files libs
|
||||||
|
%{_libdir}/libqrexec-utils.so.1
|
||||||
|
%{_libdir}/libqubes-rpc-filecopy.so.1
|
||||||
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -68,8 +84,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
/usr/include/qrexec.h
|
/usr/include/qrexec.h
|
||||||
%{_libdir}/libqrexec-utils.so
|
%{_libdir}/libqrexec-utils.so
|
||||||
%{_libdir}/libqubes-rpc-filecopy.so
|
%{_libdir}/libqubes-rpc-filecopy.so
|
||||||
%{_libdir}/libqrexec-utils.so.1
|
|
||||||
%{_libdir}/libqubes-rpc-filecopy.so.1
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user