LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File kid3.spec of Package kid3 (Project KDE:Extra)

# spec file for package kid3
# Copyright (c) 2011 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:           kid3
Version:        2.1
Release:        0
License:        GPL-2.0+
Summary:        Efficient ID3 Tag Editor
Url:            http://kid3.sourceforge.net/
Group:          Productivity/Multimedia/Sound/Utilities
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRequires:  flac-devel
BuildRequires:  id3lib-devel
BuildRequires:  libkde4-devel
BuildRequires:  libogg-devel
BuildRequires:  libtunepimp-devel
BuildRequires:  libvorbis-devel
BuildRequires:  taglib-devel
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
Recommends:     %{name}-lang = %{version}
# kid3 and kid3-qt can exist together on a system but the user will have two packages with the same functionality.
Provides:       kid3-qt = %{version}
Obsoletes:      kid3-qt < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

With Kid3 you can:
  * Edit ID3v1.1 tags
  * Edit all ID3v2.3 and ID3v2.4 frames
  * Convert between ID3v1.1, ID3v2.3 and ID3v2.4 tags
  * Edit tags in MP3, Ogg/Vorbis, FLAC, MPC, MP4/AAC, MP2, Speex,
    TrueAudio, WavPack, WMA, WAV and AIFF files
  * Edit tags of multiple files, e.g. the artist, album, year and
    genre of all files of an album typically have the same values and can
    be set together.
  * Generate tags from filenames
  * Generate filenames from tags
  * Rename and create directories from tags
  * Generate playlist files
  * Automatically convert upper and lower case and replace strings
  * Import from gnudb.org, TrackType.org, MusicBrainz, Discogs, Amazon
    and other sources of album data
  * Export tags as CSV, HTML, playlists, Kover XML and in other formats


%setup -q

# Disable build with chromaprint that would require ffmpeg
%cmake_kde4 -d build -- -DWITH_MP4V2=OFF -DWITH_CHROMAPRINT:BOOL=OFF

cd build
cd ..

install -Dpm 0644 deb/kid3.1 %{buildroot}%{_mandir}/man1/kid3.1


%find_lang %{name}

rm -rf %{buildroot}

%doc %{_kde4_htmldir}/en/kid3/

%files lang -f %{name}.lang
%exclude %{_kde4_htmldir}/en/kid3/