import UBI shared-mime-info-1.9-4.el8

This commit is contained in:
eabdullin 2024-05-22 13:44:33 +00:00
parent f913678ff1
commit 8c54a7926b
2 changed files with 49 additions and 2 deletions

View File

@ -0,0 +1,41 @@
diff -up shared-mime-info-1.9/freedesktop.org.xml.in.2 shared-mime-info-1.9/freedesktop.org.xml.in
--- shared-mime-info-1.9/freedesktop.org.xml.in.2 2023-12-08 10:47:31.309147409 +0100
+++ shared-mime-info-1.9/freedesktop.org.xml.in 2023-12-08 10:47:34.293185260 +0100
@@ -1919,14 +1919,10 @@ command to generate the output files.
<generic-icon name="application-x-executable"/>
<magic priority="40">
<match type="string" value="\177ELF" offset="0">
- <match type="byte" value="1" offset="5">
- <match type="little16" value="2" offset="16"/>
- </match>
+ <match type="byte" value="1" offset="5"/>
</match>
<match type="string" value="\177ELF" offset="0">
- <match type="byte" value="2" offset="5">
- <match type="big16" value="2" offset="16"/>
- </match>
+ <match type="byte" value="2" offset="5"/>
</match>
<match type="string" value="MZ" offset="0"/>
<match type="little16" value="0x521c" offset="0"/>
@@ -3459,20 +3455,9 @@ command to generate the output files.
<mime-type type="application/x-sharedlib">
<_comment>shared library</_comment>
<magic priority="50">
- <match type="string" value="\177ELF" offset="0">
- <match type="byte" value="1" offset="5">
- <match type="little16" value="3" offset="16"/>
- </match>
- </match>
- <match type="string" value="\177ELF" offset="0">
- <match type="byte" value="2" offset="5">
- <match type="big16" value="3" offset="16"/>
- </match>
- </match>
<match type="little16" value="0603" offset="0">
<match type="little16" mask="030000" value="020000" offset="22"/>
</match>
- <match type="string" mask="0xffffffff000000000000000000000000ff" value="\177ELF \003" offset="0"/>
</magic>
<glob pattern="*.so"/>
</mime-type>

View File

@ -1,7 +1,7 @@
Summary: Shared MIME information database
Name: shared-mime-info
Version: 1.9
Release: 3%{?dist}
Release: 4%{?dist}
License: GPLv2+
Group: System Environment/Base
URL: http://freedesktop.org/Software/shared-mime-info
@ -20,6 +20,9 @@ Source4: eog-defaults.list
# Work-around for https://bugs.freedesktop.org/show_bug.cgi?id=40354
Patch0: 0001-Remove-sub-classing-from-OO.o-mime-types.patch
# https://issues.redhat.com/browse/RHEL-5727
Patch1: 0002-Fix-detection-of-executable-files.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libxml2-devel
BuildRequires: glib2-devel
@ -42,7 +45,7 @@ a file. This is generally done by examining the file's name or contents,
and looking up the correct MIME type in a database.
%prep
%autosetup
%autosetup -S gendiff
%build
%configure --disable-silent-rules --disable-update-mimedb
@ -99,6 +102,9 @@ update-mime-database -n %{_datadir}/mime &> /dev/null ||:
%{_mandir}/man*/*
%changelog
* Fri Dec 08 2023 Milan Crha <mcrha@redhat.com> - 1.9-4
- Resolves: RHEL-5727 (Fix detection of executable files)
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild