# # spec file for package shared-mime-info (Version 0.71) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: shared-mime-info BuildRequires: glib2-devel BuildRequires: intltool BuildRequires: libxml2-devel BuildRequires: translation-update-upstream Version: 0.71 Release: 1 Url: http://freedesktop.org/wiki/Software/shared-mime-info Group: System/X11/Utilities License: GPLv2+ Summary: Shared MIME Database Source: %{name}-%{version}.tar.bz2 Source1: mime-info-to-mime # needed by mime-info-to-mime: Requires: /bin/rm /bin/mkdir /usr/bin/fgrep # needed by update-mime-database PreReq: libxml2 glib2 Provides: %{name}-devel = %{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This package contains: - The freedesktop.org shared MIME database spec. - The merged GNOME and KDE databases, in the new format. - The update-mime-database command, used to install new MIME data. %prep %setup -q # Fix issue with locale arabic locale (fdo#26519) mv po/ara.po po/ar.po sed -i s/ara/ar/ po/LINGUAS translation-update-upstream %build %configure %__make %{?jobs:-j%jobs} %install %makeinstall install %{S:1} $RPM_BUILD_ROOT%{_bindir}/ %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %post usr/bin/update-mime-database usr/share/mime >/dev/null %files -f %{name}.lang %defattr (-, root, root) %doc COPYING ChangeLog NEWS README %{_bindir}/* %{_datadir}/mime/packages/*.xml %{_datadir}/pkgconfig/*.pc %ghost %{_datadir}/mime/[a-ms-vxX]* %{_mandir}/man?/*.* %changelog