[packages/feedbackd] - proper post/postun scripts
qboosh
qboosh at pld-linux.org
Sat Jul 17 10:13:40 CEST 2021
commit 68ae894c52a60a1591e92b7818265cffb89a9456
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jul 17 10:16:59 2021 +0200
- proper post/postun scripts
feedbackd.spec | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/feedbackd.spec b/feedbackd.spec
index e23ded2..009134f 100644
--- a/feedbackd.spec
+++ b/feedbackd.spec
@@ -28,7 +28,9 @@ BuildRequires: pkgconfig
BuildRequires: rpm-build >= 4.6
BuildRequires: rpmbuild(macros) >= 1.736
BuildRequires: vala
+Requires(post,postun): glib2 >= 1:2.50.0
Requires: libfeedback = %{version}-%{release}
+Requires: libgudev >= 232
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -112,8 +114,14 @@ rm -rf $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post
+%glib_compile_schemas
+
+%postun
+%glib_compile_schemas
+
+%post -n libfeedback -p /sbin/ldconfig
+%postun -n libfeedback -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/feedbackd.git/commitdiff/68ae894c52a60a1591e92b7818265cffb89a9456
More information about the pld-cvs-commit
mailing list