File easytag.spec of Package easytag

#
# spec file for package easytag
#
# 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:           easytag
Version:        2.1.8
Release:        0
Summary:        GTK+ tag editor for audio files
License:        GPL-2.0+
Group:          Productivity/Multimedia/Sound/Utilities
Url:            http://projects.gnome.org/easytag/
Source:         http://ftp.acc.umu.se/pub/GNOME/sources/easytag/2.1/easytag-2.1.8.tar.xz
# PATCH-FIX-UPSTREAM easytag-mixed-declarations.patch dimstar@opensuse.org -- Fix mixed declarations build failure. Taken from git.
Patch0:         easytag-mixed-declarations.patch
# PATCH-FIX-UPSTREAM easytag-nodatetime.patch bgo#695322 dimstar@opensuse.org -- Do not add __DATE__ and __TIME__ into the binaries.
Patch1:         easytag-nodatetime.patch
# PATCH-FIX-UPSTREAM easytag-remove-deprecated-x-directory.patch amigadave@amigadave.com -- Remove deprecated x-directory/normal from .desktop
Patch2:         easytag-remove-deprecated-x-directory.patch
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  id3lib-devel
BuildRequires:  intltool >= 0.50.0
BuildRequires:  pkg-config >= 0.24
BuildRequires:  pkgconfig(flac) >= 1.1.4
BuildRequires:  pkgconfig(gio-2.0) >= 2.32.0
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(id3tag)
BuildRequires:  pkgconfig(ogg) >= 1.0
BuildRequires:  pkgconfig(speex)
BuildRequires:  pkgconfig(taglib_c) >= 1.6.0
BuildRequires:  pkgconfig(vorbis) >= 1.0.1
BuildRequires:  pkgconfig(vorbisfile)
BuildRequires:  pkgconfig(wavpack) >= 4.40
BuildRequires:  update-desktop-files
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
EasyTAG is a utility for viewing and editing tags for MP3, MP2, MP4/AAC, FLAC, Ogg Vorbis,
MusePack, Monkey's Audio and WavPack files.

Its simple and nice GTK+ interface makes tagging easier.

%lang_package
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
%configure
make %{?_smp_mflags}

%install
%make_install
%suse_update_desktop_file %{name}
%find_lang %{name}
# We take the HACKERS and AUTHORS file to the standard package doc
rm -rf %{buildroot}%{_datadir}/doc

%post
%desktop_database_post

%postun
%desktop_database_postun

%files
%defattr(-,root,root)
%doc ChangeLog README COPYING HACKING THANKS TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_datadir}/icons/hicolor/*/apps/%{name}.*

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by