From d37674e79d46ba2cbeeef1d6a1ab18c2fe5cc15b Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Jan 25 2023 12:41:52 +0000 Subject: cups.spec: Uses better sed and note what has to be migrated --- diff --git a/cups.spec b/cups.spec index 2c079b0..65d048f 100644 --- a/cups.spec +++ b/cups.spec @@ -439,8 +439,6 @@ s:.*\('%{_datadir}'/\)\([^/_]\+\)\(.*\.po$\):%lang(\2) \1\2\3: ' > %{name}.lang %post -%systemd_post %{name}.path %{name}.socket %{name}.service - # remove this after F36 is EOL # - previously the file was empty by default, so check whether the directive exists # and if not, add the directive+value @@ -460,8 +458,11 @@ grep '^\s*DigestOptions' %{_sysconfdir}/cups/client.conf &> /dev/null || echo 'D # the ending tag, print the whole pattern buffer. The buffer is checked for AuthType and Require directives. # If they already exist, we don't add anything. cupsd.conf.rpmsave is created as a backup. sed -ne '/^\s*/ { :loop; /<\/Location>/ ! {N; b loop}; p }' %{_sysconfdir}/cups/cupsd.conf \ -| grep -E '^\s*(AuthType|Require)' &> /dev/null || cp %{_sysconfdir}/cups/cupsd.conf{,.rpmsave} && \ -sed -i '/^\s*/a\ AuthType Default\n Require user @SYSTEM' %{_sysconfdir}/cups/cupsd.conf +| grep -E '^\s*(AuthType|Require)' &> /dev/null || \ +sed -i.rpmsave '/^\s*/a\ AuthType Default\n Require user @SYSTEM' %{_sysconfdir}/cups/cupsd.conf + +# required for systemd units +%systemd_post %{name}.path %{name}.socket %{name}.service %post client %if %{use_alternatives} diff --git a/leapp_upgrades b/leapp_upgrades new file mode 100644 index 0000000..53f934c --- /dev/null +++ b/leapp_upgrades @@ -0,0 +1,6 @@ +Changes in specific releases which need a migration +=================================================== + +CUPS 2.5 + +- CUPS-Get-Document needs Auth - a new scope in cupsd.conf will have to be migrated - commit https://github.com/OpenPrinting/cups/commit/a0c8b9c9556882f00c68b9727a95a1b6d1452913