2024-01-05 17:46:43 +01:00
|
|
|
%define gitver %(echo %version | tr . -)
|
2024-01-05 17:46:43 +01:00
|
|
|
Name: shared-mime-info
|
2024-01-05 17:46:45 +01:00
|
|
|
Version: 2.3
|
2024-01-05 17:46:43 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: A database of common MIME types and the update-mime-database tool
|
|
|
|
Group: System/Tools
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 17:46:44 +01:00
|
|
|
URL: https://freedesktop.org/wiki/Software/shared-mime-info/
|
2024-01-05 17:46:44 +01:00
|
|
|
Source: https://gitlab.freedesktop.org/xdg/shared-mime-info.git/%{version}/shared-mime-info-%{version}.tar.bz2
|
2024-01-05 17:46:43 +01:00
|
|
|
#Source: http://freedesktop.org/%7Ehadess/shared-mime-info-%{version}.tar.xz
|
2024-01-05 17:46:43 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-05 17:46:45 +01:00
|
|
|
BuildRequires: libgcc
|
2024-01-05 17:46:43 +01:00
|
|
|
BuildRequires: libglib-devel
|
2024-01-05 17:46:45 +01:00
|
|
|
BuildRequires: libstdc++6-devel
|
2024-01-05 17:46:43 +01:00
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
BuildRequires: perl-XML-Parser
|
|
|
|
BuildRequires: gettext-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: libxml2-utils
|
2024-01-05 17:46:44 +01:00
|
|
|
BuildRequires: itstool
|
2024-01-05 17:46:43 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
A database of common MIME types and the update-mime-database tool.
|
|
|
|
|
2024-01-05 17:46:44 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-05 17:46:43 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2024-01-05 17:46:44 +01:00
|
|
|
%meson
|
|
|
|
|
|
|
|
%meson_build
|
2024-01-05 17:46:43 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 17:46:44 +01:00
|
|
|
%meson_install
|
2024-01-05 17:46:43 +01:00
|
|
|
|
|
|
|
# postplug one-shot update script to remove old package with wrong script
|
|
|
|
install -d %{buildroot}%{_sysconfdir}/postplug/updates.d
|
|
|
|
cat > %{buildroot}%{_sysconfdir}/postplug/updates.d/shared-mime-info-remove-broken-001.upd << _EOF
|
|
|
|
rpm -e shared-mime-info-0.71 --noscripts
|
|
|
|
exit 0
|
|
|
|
_EOF
|
|
|
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
2024-01-05 17:46:44 +01:00
|
|
|
update-mime-database -n %{_datadir}/mime >/dev/null 2>&1 :
|
2024-01-05 17:46:43 +01:00
|
|
|
exit 0
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
2024-01-05 17:46:44 +01:00
|
|
|
update-mime-database -n %{_datadir}/mime >/dev/null 2>&1
|
2024-01-05 17:46:43 +01:00
|
|
|
exit 0
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-,root,root)
|
2024-01-05 17:46:44 +01:00
|
|
|
%{_sysconfdir}/postplug/updates.d/shared-mime-info-remove-broken-001.upd
|
2024-01-05 17:46:43 +01:00
|
|
|
%{_bindir}/update-mime-database
|
|
|
|
%dir %{_datadir}/mime
|
|
|
|
%{_datadir}/mime/*
|
2024-01-05 17:46:44 +01:00
|
|
|
%{_datadir}/pkgconfig/shared-mime-info.pc
|
2024-01-05 17:46:43 +01:00
|
|
|
%{_mandir}/man1/update-mime-database.*
|
2024-01-05 17:46:44 +01:00
|
|
|
%{_datadir}/gettext/its/shared-mime-info.*
|
|
|
|
%doc COPYING
|
2024-01-05 17:46:43 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 17:46:45 +01:00
|
|
|
* Sun Oct 08 2023 Automatic Build System <autodist@mambasoft.it> 2.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:46:44 +01:00
|
|
|
* Mon Mar 28 2022 Automatic Build System <autodist@mambasoft.it> 2.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:46:44 +01:00
|
|
|
* Tue Feb 23 2021 Automatic Build System <autodist@mambasoft.it> 2.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:46:44 +01:00
|
|
|
* Wed May 27 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0-1mamba
|
|
|
|
- update to 2.0
|
|
|
|
|
2024-01-05 17:46:44 +01:00
|
|
|
* Thu Oct 31 2019 Automatic Build System <autodist@mambasoft.it> 1.15-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:46:44 +01:00
|
|
|
* Wed Sep 25 2019 Automatic Build System <autodist@mambasoft.it> 1.14-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:46:44 +01:00
|
|
|
* Mon Sep 16 2019 Automatic Build System <autodist@mambasoft.it> 1.13.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:46:43 +01:00
|
|
|
* Fri Aug 02 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.12-1mamba
|
|
|
|
- update to 1.12
|
|
|
|
|
2024-01-05 17:46:43 +01:00
|
|
|
* Thu Aug 09 2018 Automatic Build System <autodist@mambasoft.it> 1.10-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:46:43 +01:00
|
|
|
* Mon Sep 25 2017 Automatic Build System <autodist@mambasoft.it> 1.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:46:43 +01:00
|
|
|
* Sun Feb 12 2017 Automatic Build System <autodist@mambasoft.it> 1.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:46:43 +01:00
|
|
|
* Wed Sep 14 2016 Automatic Build System <autodist@mambasoft.it> 1.7-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 17:46:43 +01:00
|
|
|
* Wed Apr 20 2016 Automatic Build System <autodist@mambasoft.it> 1.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:46:43 +01:00
|
|
|
* Sun Nov 08 2015 Automatic Build System <autodist@mambasoft.it> 1.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:46:43 +01:00
|
|
|
* Sun Feb 15 2015 Automatic Build System <autodist@mambasoft.it> 1.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 17:46:43 +01:00
|
|
|
* Sun May 25 2014 Automatic Build System <autodist@mambasoft.it> 1.3-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 17:46:43 +01:00
|
|
|
* Thu Oct 03 2013 Automatic Build System <autodist@mambasoft.it> 1.2-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Mon Feb 18 2013 Automatic Build System <autodist@mambasoft.it> 1.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Feb 04 2013 Davide Madrisan <davide.madrisan@gmail.com> 1.0-2mamba
|
|
|
|
- make the post and postun scripts dash-compliant
|
|
|
|
|
|
|
|
* Sun Aug 12 2012 Automatic Build System <autodist@mambasoft.it> 1.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Nov 14 2011 Automatic Build System <autodist@mambasoft.it> 0.91-1mamba
|
|
|
|
- update to 0.91
|
|
|
|
|
|
|
|
* Thu Dec 09 2010 Automatic Build System <autodist@mambasoft.it> 0.90-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sat Nov 06 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.80-2mamba
|
|
|
|
- added postplug one-shot script to remove old broken package with --noscripts
|
|
|
|
|
|
|
|
* Fri Oct 08 2010 Automatic Build System <autodist@mambasoft.it> 0.80-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sat Mar 20 2010 Davide Madrisan <davide.madrisan@gmail.com> 0.71-3mamba
|
|
|
|
- fixed %postun script
|
|
|
|
- own %{_datadir}/mime
|
|
|
|
|
|
|
|
* Wed Feb 03 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.71-2mamba
|
|
|
|
- launch update-mime-database after package installation
|
|
|
|
|
|
|
|
* Wed Feb 03 2010 Automatic Build System <autodist@mambasoft.it> 0.71-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Fri Oct 09 2009 Automatic Build System <autodist@mambasoft.it> 0.70-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sun Mar 01 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.60-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu Nov 06 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.51-1mamba
|
|
|
|
- update to 0.51
|
|
|
|
|
|
|
|
* Thu Jul 17 2008 gil <puntogil@libero.it> 0.40-1mamba
|
|
|
|
- update to 0.40
|
|
|
|
|
|
|
|
* Wed Dec 26 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 0.23-1mamba
|
|
|
|
- update to 0.23
|
|
|
|
|
|
|
|
* Wed Sep 05 2007 Aleph0 <aleph0@openmamba.org> 0.22-1mamba
|
|
|
|
- update to 0.22
|
|
|
|
|
|
|
|
* Tue May 29 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 0.21-1mamba
|
|
|
|
- package created by autospec
|