]> git.pld-linux.org Git - packages/poldek.git/commitdiff
- rpm.org does not support R(trigger*) and multiple triggers for the same prog
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 11 Oct 2020 23:16:23 +0000 (01:16 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 11 Oct 2020 23:16:23 +0000 (01:16 +0200)
pm-hooks.patch
poldek.spec

index 193addf60df0197ecf6f08223aaa4d2fac1d30d2..7029b59bf762c745c58d32e8b160ab0026b2853a 100644 (file)
@@ -27,12 +27,12 @@ but implement as "pm command" hack for now
 --- poldek-0.30.1/conf/poldek.conf~    2015-05-31 18:25:35.000000000 +0300
 +++ poldek-0.30.1/conf/poldek.conf     2015-05-31 18:26:28.410188923 +0300
 @@ -56,7 +56,7 @@
- #exclude path =
-
+ #exclude path = 
  # Full path name to a PM (rpm for now) binary.
 -#pm command = /bin/rpm
 +pm command = /usr/lib/poldek/pm-command.sh
-
  # Full path name to sudo binary.
  #sudo command = /usr/bin/sudo
 --- poldek-0.30.1/conf/Makefile.am     2015-05-31 18:28:29.319806773 +0300
index 2f23bb306b2c722b8312bc85d000e35fa014014b..ef86d5ab391548a958102ba6d4284022482dfebb 100644 (file)
@@ -102,8 +102,8 @@ BuildRequires:      rpm-static
 BuildRequires: zlib-static
 BuildRequires: zstd-static
 %endif
-Requires(triggerpostun):       awk
-Requires(triggerpostun):       sed >= 4.0
+Requires(postun):      awk
+Requires(postun):      sed >= 4.0
 %if %{with rpm4}
 Requires:      %{db_pkg} >= %{ver_db_devel}
 %else
@@ -455,7 +455,7 @@ fi
 %post  libs -p /sbin/ldconfig
 %postun        libs -p /sbin/ldconfig
 
-%triggerpostun -- poldek < 0.30-0.20080225.00.1
+%triggerpostun -- poldek < 0.30.1-8
 if ! grep -q '^%%includedir repos.d' %{_sysconfdir}/%{name}/poldek.conf; then
        %{__sed} -i -e '/^%%include source.conf/{
                a
@@ -479,7 +479,6 @@ if [ -f %{_sysconfdir}/%{name}/pld-multilib-source.conf.rpmsave ]; then
 fi
 %endif
 
-%triggerpostun -- poldek < 0.30.1-3
 if [ -f %{_sysconfdir}/%{name}/repos.d/pld-multilib.conf.rpmsave ]; then
        %{__mv} -f %{_sysconfdir}/%{name}/repos.d/pld-%{ftp_alt_arch}.conf{,.rpmnew}
        %{__mv} -v %{_sysconfdir}/%{name}/repos.d/pld-multilib.conf.rpmsave %{_sysconfdir}/%{name}/repos.d/pld-%{ftp_alt_arch}.conf
@@ -489,7 +488,6 @@ if [ -f %{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}-multilib.conf.rpmsave ]; then
        %{__mv} -v %{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}-multilib.conf.rpmsave %{_sysconfdir}/%{name}/repos.d/pld-%{SNAP}-%{ftp_alt_arch}.conf
 fi
 
-%triggerpostun -- %{name} < 0.30.1-8
 if [ $1 -le 1 ]; then
        # revert change on  --downgrade
        %{__sed} -i -re 's,^pm command = %{pkglibexecdir}/pm-command.sh,#&,' %{_sysconfdir}/%{name}/%{name}.conf
This page took 0.128285 seconds and 4 git commands to generate.