https://bugzilla.redhat.com/show_bug.cgi?id=1497687



--- Comment #3 from Robert-André Mauchin <zebo...@gmail.com> ---
 - You must include *both* Obsoletes and Provides so that we provide a correct
upgrade path. See
https://fedoraproject.org/wiki/Packaging:Guidelines#Renaming.2FReplacing_Existing_Packages

Provides: portpub-local%{?_isa} = %{version}-%{release}
Obsoletes: portpub-local <= 0-0.2


Provides: portpub-relay%{?_isa} = %{version}-%{release}
Obsoletes: portpub-relay <= 0-0.2


 - Also this package install user unit files, they must be handled by systemd
scriplets, see https://fedoraproject.org/wiki/Packaging:Scriptlets#Systemd

   First add the folldwing BR and macro:

%{?systemd_requires}
BuildRequires: systemd

   Then add the scriplet for the unit files and user unit files:

%post local
%systemd_post %{name}-local@.service
%systemd_user_post %{name}-local@.service

%preun local
%systemd_preun %{name}-local@.service
%systemd_user_preun %{name}-local@.service

%postun local
%systemd_postun_with_restart %{name}-local@.service

%post relay
%systemd_post %{name}-relay@.service
%systemd_user_post %{name}-relay@.service

%preun relay
%systemd_preun %{name}-relay@.service
%systemd_user_preun %{name}-relay@.service

%postun relay
%systemd_postun_with_restart %{name}-relay@.service

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- package-review@lists.fedoraproject.org
To unsubscribe send an email to package-review-le...@lists.fedoraproject.org

Reply via email to