2007-01-08 17:52:47 +01:00
|
|
|
#
|
2011-09-19 10:50:04 +02:00
|
|
|
# spec file for package shared-mime-info
|
2007-01-08 17:52:47 +01:00
|
|
|
#
|
2011-09-19 10:50:04 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-08 17:52:47 +01:00
|
|
|
#
|
2008-08-22 21:37:55 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-08 17:52:47 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-08-22 21:37:55 +02:00
|
|
|
|
2007-01-08 17:52:47 +01:00
|
|
|
Name: shared-mime-info
|
2011-09-19 10:50:04 +02:00
|
|
|
Version: 0.91
|
|
|
|
Release: 1
|
2007-12-18 18:56:38 +01:00
|
|
|
Url: http://freedesktop.org/wiki/Software/shared-mime-info
|
2007-01-08 17:52:47 +01:00
|
|
|
Group: System/X11/Utilities
|
2009-12-08 12:14:43 +01:00
|
|
|
License: GPLv2+
|
2007-01-08 17:52:47 +01:00
|
|
|
Summary: Shared MIME Database
|
2011-09-19 10:50:04 +02:00
|
|
|
Source: http://people.freedesktop.org/~hadess/%{name}-%{version}.tar.xz
|
2007-01-08 17:52:47 +01:00
|
|
|
Source1: mime-info-to-mime
|
2010-10-15 13:57:36 +02:00
|
|
|
Source2: macros.shared-mime-info
|
2011-09-19 10:50:04 +02:00
|
|
|
BuildRequires: glib2-devel
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: translation-update-upstream
|
|
|
|
# Only needed because we don't (and won't) support building xz tarballs by default... See bnc#697467
|
|
|
|
BuildRequires: xz
|
2007-01-08 17:52:47 +01:00
|
|
|
# needed by mime-info-to-mime:
|
|
|
|
Requires: /bin/rm /bin/mkdir /usr/bin/fgrep
|
2011-10-02 21:40:31 +02:00
|
|
|
# libgio-2_0-0 Requires: shared-mime-info, but this can't exist yet. We explicitly ignore this dependency here.
|
|
|
|
#!BuildIgnore: shared-mime-info
|
2007-01-08 17:52:47 +01:00
|
|
|
# needed by update-mime-database
|
2010-08-09 17:37:57 +02:00
|
|
|
PreReq: libxml2 libglib-2_0-0
|
2007-01-08 17:52:47 +01:00
|
|
|
Provides: %{name}-devel = %{version}-%{release}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2010-08-09 17:37:57 +02:00
|
|
|
This package contains:
|
|
|
|
|
|
|
|
- The freedesktop.org shared MIME database spec.
|
2007-01-08 17:52:47 +01:00
|
|
|
|
|
|
|
- The merged GNOME and KDE databases, in the new format.
|
|
|
|
|
|
|
|
- The update-mime-database command, used to install new MIME data.
|
|
|
|
|
|
|
|
%prep
|
2007-02-19 23:57:16 +01:00
|
|
|
%setup -q
|
2010-12-14 19:24:32 +01:00
|
|
|
translation-update-upstream
|
2007-01-08 17:52:47 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
2010-12-14 19:24:32 +01:00
|
|
|
make
|
2007-01-08 17:52:47 +01:00
|
|
|
|
|
|
|
%install
|
2007-02-19 23:57:16 +01:00
|
|
|
%makeinstall
|
2007-01-08 17:52:47 +01:00
|
|
|
install %{S:1} $RPM_BUILD_ROOT%{_bindir}/
|
|
|
|
%find_lang %{name}
|
2010-10-15 13:57:36 +02:00
|
|
|
# Install rpm macros
|
|
|
|
install -D -m644 %{S:2} %{buildroot}%{_sysconfdir}/rpm/macros.shared-mime-info
|
2007-01-08 17:52:47 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post
|
2010-10-15 13:57:36 +02:00
|
|
|
%{_bindir}/update-mime-database %{_datadir}/mime || true
|
2007-01-08 17:52:47 +01:00
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr (-, root, root)
|
|
|
|
%doc COPYING ChangeLog NEWS README
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_datadir}/mime/packages/*.xml
|
2007-02-19 23:57:16 +01:00
|
|
|
%{_datadir}/pkgconfig/*.pc
|
2008-08-22 21:37:55 +02:00
|
|
|
%ghost %{_datadir}/mime/[a-ms-vxX]*
|
2007-01-08 17:52:47 +01:00
|
|
|
%{_mandir}/man?/*.*
|
2010-10-15 13:57:36 +02:00
|
|
|
%{_sysconfdir}/rpm/macros.shared-mime-info
|
2007-01-08 17:52:47 +01:00
|
|
|
|
2007-02-19 23:57:16 +01:00
|
|
|
%changelog
|