update to 2.0 [release 2.0-1mamba;Wed May 27 2020]

This commit is contained in:
Silvan Calarco 2024-01-05 17:46:44 +01:00
parent ae8f2992a1
commit 851aea24fa

View File

@ -1,6 +1,6 @@
%define gitver %(echo %version | tr . -)
Name: shared-mime-info
Version: 1.15
Version: 2.0
Release: 1mamba
Summary: A database of common MIME types and the update-mime-database tool
Group: System/Tools
@ -8,7 +8,7 @@ Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://freedesktop.org/wiki/Software/shared-mime-info
Source: https://gitlab.freedesktop.org/xdg/shared-mime-info.git/Release-%{gitver}/shared-mime-info-%{version}.tar.bz2
Source: https://gitlab.freedesktop.org/xdg/shared-mime-info.git/%{version}/shared-mime-info-%{version}.tar.bz2
#Source: http://freedesktop.org/%7Ehadess/shared-mime-info-%{version}.tar.xz
License: GPL
## AUTOBUILDREQ-BEGIN
@ -26,17 +26,19 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
A database of common MIME types and the update-mime-database tool.
%debug_package
%prep
%setup -q
./autogen.sh
%build
%configure
%make -j1
%meson
%meson_build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%meson_install
# postplug one-shot update script to remove old package with wrong script
install -d %{buildroot}%{_sysconfdir}/postplug/updates.d
@ -62,16 +64,19 @@ exit 0
%files -f %{name}.lang
%defattr(-,root,root)
%{_sysconfdir}/postplug/updates.d/shared-mime-info-remove-broken-001.upd
%{_bindir}/update-mime-database
%dir %{_datadir}/mime
%{_datadir}/mime/*
%{_datadir}/pkgconfig/*.pc
%{_mandir}/man1/update-mime-database.*
%doc COPYING README
#
%{_sysconfdir}/postplug/updates.d/shared-mime-info-remove-broken-001.upd
%{_libdir}/pkgconfig/shared-mime-info.pc
%{_datadir}/gettext/its/shared-mime-info.*
%doc COPYING
%changelog
* Wed May 27 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0-1mamba
- update to 2.0
* Thu Oct 31 2019 Automatic Build System <autodist@mambasoft.it> 1.15-1mamba
- automatic version update by autodist