summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-06 14:01:51 -0800
committerJean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>2014-11-13 11:02:41 +0100
commit68ffbfcfa267299b981504e29aacd1f504ac0f2d (patch)
treef58ce3f191c3d3456d2a5f53d651b65bbd8f61aa
parent6d2d8679d6982319375c2d403a234036e4c98b8a (diff)
downloadshared-mime-info-68ffbfcfa267299b981504e29aacd1f504ac0f2d.tar.gz
shared-mime-info-68ffbfcfa267299b981504e29aacd1f504ac0f2d.tar.bz2
shared-mime-info-68ffbfcfa267299b981504e29aacd1f504ac0f2d.zip
add packaging
-rw-r--r--packaging/shared-mime-info.spec67
1 files changed, 67 insertions, 0 deletions
diff --git a/packaging/shared-mime-info.spec b/packaging/shared-mime-info.spec
new file mode 100644
index 0000000..de0d241
--- /dev/null
+++ b/packaging/shared-mime-info.spec
@@ -0,0 +1,67 @@
+Name: shared-mime-info
+Version: 1.0
+Release: 0
+License: GPL-2.0+
+Summary: Shared MIME Database
+Url: http://freedesktop.org/wiki/Software/shared-mime-info
+Group: System/X11/Utilities
+Source: http://people.freedesktop.org/~hadess/%{name}-%{version}.tar.xz
+Source1: mime-info-to-mime
+Source2: macros.shared-mime-info
+BuildRequires: intltool
+# needed for xmllint
+BuildRequires: libxml2-tools
+# Only needed because we don't (and won't) support building xz tarballs by default... See bnc#697467
+BuildRequires: xz
+BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(libxml-2.0)
+Requires: /usr/bin/fgrep
+# needed by mime-info-to-mime:
+Requires: /usr/bin/mkdir
+Requires: /usr/bin/rm
+# libgio-2_0-0 Requires: shared-mime-info, but this can't exist yet. We explicitly ignore this dependency here.
+#!BuildIgnore: shared-mime-info
+# needed by update-mime-database
+Provides: %{name}-devel = %{version}
+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
+
+%build
+%configure
+make
+
+%install
+%make_install
+install %{SOURCE1} %{buildroot}%{_bindir}/
+%find_lang %{name} %{?no_lang_C}
+# Install rpm macros
+install -D -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/rpm/macros.shared-mime-info
+
+%post
+%{_bindir}/update-mime-database %{_datadir}/mime || true
+
+%lang_package
+
+%docs_package
+
+%files
+%defattr (-, root, root)
+%doc COPYING
+%{_bindir}/*
+%{_datadir}/mime/packages/*.xml
+%{_datadir}/pkgconfig/*.pc
+%ghost %{_datadir}/mime/[a-ms-vxX]*
+%{_sysconfdir}/rpm/macros.shared-mime-info
+
+%changelog