Own the generated files (as %ghosts)
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1486468 At least for this package. For other packages, see https://lists.fedoraproject.org/archives/list/packaging@lists.fedoraproject.org/thread/Q3OC2JTNSTBJ55PI47BB3NNR2C56K33V/
This commit is contained in:
parent
da05922d10
commit
45f0aeefcf
@ -1,7 +1,7 @@
|
|||||||
Summary: Shared MIME information database
|
Summary: Shared MIME information database
|
||||||
Name: shared-mime-info
|
Name: shared-mime-info
|
||||||
Version: 2.0
|
Version: 2.0
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://freedesktop.org/Software/shared-mime-info
|
URL: http://freedesktop.org/Software/shared-mime-info
|
||||||
Source0: https://gitlab.freedesktop.org/xdg/shared-mime-info/uploads/0440063a2e6823a4b1a6fb2f2af8350f/shared-mime-info-2.0.tar.xz
|
Source0: https://gitlab.freedesktop.org/xdg/shared-mime-info/uploads/0440063a2e6823a4b1a6fb2f2af8350f/shared-mime-info-2.0.tar.xz
|
||||||
@ -46,7 +46,9 @@ mv xdgmime-*/ xdgmime/
|
|||||||
cd ./xdgmime/
|
cd ./xdgmime/
|
||||||
make
|
make
|
||||||
cd ..
|
cd ..
|
||||||
%meson -Dupdate-mimedb=false -Dxdg-mime-path=./xdgmime/
|
# the updated mimedb is later owned as %%ghost to ensure proper file-ownership
|
||||||
|
# it also asserts it is possible to build it
|
||||||
|
%meson -Dupdate-mimedb=true -Dxdg-mime-path=./xdgmime/
|
||||||
%meson_build
|
%meson_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -96,6 +98,10 @@ update-mime-database -n %{_datadir}/mime &> /dev/null ||:
|
|||||||
%{_datadir}/gettext/its/shared-mime-info.loc
|
%{_datadir}/gettext/its/shared-mime-info.loc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Nov 8 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0-5
|
||||||
|
- Own the generated files (as %%ghosts)
|
||||||
|
- Fixes: rhbz#1486468
|
||||||
|
|
||||||
* Tue Aug 25 2020 Bastien Nocera <bnocera@redhat.com> - 2.0-4
|
* Tue Aug 25 2020 Bastien Nocera <bnocera@redhat.com> - 2.0-4
|
||||||
+ shared-mime-info-2.0-4
|
+ shared-mime-info-2.0-4
|
||||||
- Remove GNOME specific defaults apps list, move to gnome-desktop3
|
- Remove GNOME specific defaults apps list, move to gnome-desktop3
|
||||||
|
Loading…
Reference in New Issue
Block a user