File thunar-plugin-media-tags.spec of Package thunar-plugin-media-tags

#
# spec file for package thunar-plugin-media-tags
#
# 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/
#


%define thunar_version 1.2.0
%define plugin_name thunar-media-tags-plugin

Name:           thunar-plugin-media-tags
Url:            http://thunar.xfce.org/pwiki/projects/thunar-media-tags-plugin
Version:        0.2.1
Release:        0
Source0:        http://archive.xfce.org/src/thunar-plugins/thunar-media-tags-plugin/0.2/%{plugin_name}-%{version}.tar.bz2
Summary:        Thunar Plugin for Editing Media File Metadata and Renaming Based on Metadata
License:        GPL-2.0+
Group:          System/GUI/XFCE
BuildRequires:  intltool
BuildRequires:  thunar-devel >= %{thunar_version}
BuildRequires:  pkgconfig(exo-1)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(taglib)
BuildRequires:  pkgconfig(thunarx-2)
Requires:       thunar >= %{thunar_version}
Recommends:     %{name}-lang = %{version}
Provides:       %{plugin_name} = %{version}
Obsoletes:      %{plugin_name} < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The Thunar Media Tags Plugin enables editing media file metadata from within
the Thunar file properties dialog and allows for bulk renaming based on
metadata.

%lang_package

%prep
%setup -q -n %{plugin_name}-%{version}

%build
%configure --disable-static
make %{?_smp_mflags} V=1

%install
%make_install

rm -rf %{buildroot}%{_libdir}/thunarx-2/thunar-media-tags-plugin.la

# remove unsupported locales
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}

%find_lang %{plugin_name} %{?no_lang_C}

%clean
rm -rf "%{buildroot}"

%files
%defattr(-,root,root)
%{_libdir}/thunarx-2/thunar-media-tags-plugin.so

%files lang -f %{plugin_name}.lang

%changelog
openSUSE Build Service is sponsored by