From 03f793e715dd91264a5b193d5ac1b5f0059bd293 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Fri, 5 Jan 2024 17:46:43 +0100 Subject: [PATCH] automatic update by autodist [release 1.2-1mamba;Thu Oct 03 2013] --- README.md | 2 + shared-mime-info.spec | 125 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 127 insertions(+) create mode 100644 shared-mime-info.spec diff --git a/README.md b/README.md index 93cddae..fe198bc 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # shared-mime-info +A database of common MIME types and the update-mime-database tool. + diff --git a/shared-mime-info.spec b/shared-mime-info.spec new file mode 100644 index 0000000..2987a23 --- /dev/null +++ b/shared-mime-info.spec @@ -0,0 +1,125 @@ +Name: shared-mime-info +Version: 1.2 +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 +URL: http://freedesktop.org/wiki/Software/shared-mime-info +Source: http://freedesktop.org/%7Ehadess/shared-mime-info-%{version}.tar.xz +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libglib-devel +BuildRequires: libxml2-devel +## AUTOBUILDREQ-END +BuildRequires: perl-devel +BuildRequires: perl-XML-Parser +BuildRequires: gettext-devel +BuildRequires: pkgconfig +BuildRequires: libxml2-utils +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +A database of common MIME types and the update-mime-database tool. + +%prep +%setup -q + +%build +%configure +%make -j1 + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +# 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 +update-mime-database %{_datadir}/mime >/dev/null 2>&1 : +exit 0 + +%postun +/sbin/ldconfig +update-mime-database %{_datadir}/mime >/dev/null 2>&1 +exit 0 + +%files -f %{name}.lang +%defattr(-,root,root) +%{_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 + +%changelog +* Thu Oct 03 2013 Automatic Build System 1.2-1mamba +- automatic update by autodist + +* Mon Feb 18 2013 Automatic Build System 1.1-1mamba +- automatic version update by autodist + +* Mon Feb 04 2013 Davide Madrisan 1.0-2mamba +- make the post and postun scripts dash-compliant + +* Sun Aug 12 2012 Automatic Build System 1.0-1mamba +- automatic version update by autodist + +* Mon Nov 14 2011 Automatic Build System 0.91-1mamba +- update to 0.91 + +* Thu Dec 09 2010 Automatic Build System 0.90-1mamba +- automatic update by autodist + +* Sat Nov 06 2010 Silvan Calarco 0.80-2mamba +- added postplug one-shot script to remove old broken package with --noscripts + +* Fri Oct 08 2010 Automatic Build System 0.80-1mamba +- automatic update by autodist + +* Sat Mar 20 2010 Davide Madrisan 0.71-3mamba +- fixed %postun script +- own %{_datadir}/mime + +* Wed Feb 03 2010 Silvan Calarco 0.71-2mamba +- launch update-mime-database after package installation + +* Wed Feb 03 2010 Automatic Build System 0.71-1mamba +- automatic update by autodist + +* Fri Oct 09 2009 Automatic Build System 0.70-1mamba +- automatic update by autodist + +* Sun Mar 01 2009 Silvan Calarco 0.60-1mamba +- automatic update by autodist + +* Thu Nov 06 2008 Silvan Calarco 0.51-1mamba +- update to 0.51 + +* Thu Jul 17 2008 gil 0.40-1mamba +- update to 0.40 + +* Wed Dec 26 2007 Silvan Calarco 0.23-1mamba +- update to 0.23 + +* Wed Sep 05 2007 Aleph0 0.22-1mamba +- update to 0.22 + +* Tue May 29 2007 Silvan Calarco 0.21-1mamba +- package created by autospec