File gnome-mime-data.spec of Package gnome-mime-data

#
# spec file for package gnome-mime-data
#
# Copyright (c) 2013 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/
#


Name:           gnome-mime-data
BuildRequires:  db-devel
BuildRequires:  gcc-c++
BuildRequires:  gnome-common
BuildRequires:  gtk2-devel
BuildRequires:  indent
BuildRequires:  intltool
BuildRequires:  libidl-devel
BuildRequires:  libxml2-devel
BuildRequires:  orbit2-devel
BuildRequires:  perl-XML-Parser
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
Provides:       %{name}-devel = %{version}-%{release}
Version:        2.18.0
Release:        0
Summary:        MIME Type and Application Database for the GNOME 2.x Desktop
License:        GPL-2.0+
Group:          System/GUI/GNOME
Source:         http://download.gnome.org/sources/%{name}/2.18/%{name}-%{version}.tar.bz2
Patch:          mozilla-call.dif
Patch1:         %{name}-2.4.3-apps.patch
Patch2:         gnome-mime-data-more-apps.patch
Patch3:         gnome-mime-data-realplay.patch
Patch4:         gnome-mime-data-ooo.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
This module contains the base MIME and application database for GNOME.
It is meant to be accessed through the MIME functions in GNOMEVFS.



%prep
%setup -q 
translation-update-upstream
%patch
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build
%configure
make %{?jobs:-j%jobs}

%install
%makeinstall
# Change sr@Latn to sr@latin
mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_datadir}/application-registry
%{_datadir}/mime-info
%{_datadir}/pkgconfig/gnome-mime-data-2.0.pc
%config %{_sysconfdir}/gnome-vfs-mime-magic

%changelog
openSUSE Build Service is sponsored by