Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37044794
en ru br
ALT Linux repos
S:3.9.4-alt1

Group :: Sound
RPM: kde5-kid3

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%{expand: %(sed 's,^%%,%%global ,' /usr/lib/rpm/macros.d/ubt)}
%define ubt_id %__ubt_branch_id

%_K5if_ver_gteq %ubt_id M100
%def_enable obsolete_kde4
%else
%def_disable obsolete_kde4
%endif
%def_disable mp4

%define rname kid3
Name: kde5-%rname
Version: 3.9.4
Release: alt1
%K5init %{?_enable_obsolete_kde4:no_altplace}%{!?_enable_obsolete_kde4:altplace}

Group: Sound
Summary: ID3 tagger
License: GPL-2.0-or-later
Url: http://kid3.sourceforge.net/

Source: kid3-%{version}.tar
Source1: ru.po

# Automatically added by buildreq on Fri Nov 13 2015 (-bi)

# optimized out: cmake cmake-modules docbook-dtds docbook-style-xsl elfutils gtk-update-icon-cache id3lib kf5-kdoctools-devel libEGL-devel libGL-devel libavcodec-devel libavutil-devel libflac-devel libgpg-error libjson-c libogg-devel libopencore-amrnb0 libopencore-amrwb0 libp11-kit libqt5-core libqt5-dbus libqt5-gui libqt5-multimedia libqt5-network libqt5-printsupport libqt5-svg libqt5-test libqt5-widgets libqt5-x11extras libqt5-xml libstdc++-devel libxcbutil-keysyms perl-parent pkg-config python-base python3 python3-base qt5-base-devel qt5-tools ruby ruby-stdlibs xml-common xml-utils zlib-devel
#BuildRequires: extra-cmake-modules gcc-c++ id3lib-devel kf5-kauth-devel kf5-kbookmarks-devel kf5-kcodecs-devel kf5-kcompletion-devel kf5-kconfig-devel kf5-kconfigwidgets-devel kf5-kcoreaddons-devel kf5-kdelibs4support kf5-kdoctools kf5-kdoctools-devel-static kf5-kio-devel kf5-kitemviews-devel kf5-kjobwidgets-devel kf5-kservice-devel kf5-kwidgetsaddons-devel kf5-kxmlgui-devel kf5-solid-devel libavdevice-devel libavformat-devel libavresample-devel libchromaprint-devel libflac++-devel libreadline-devel libswscale-devel libtag-devel libvorbis-devel python-module-google qt5-multimedia-devel qt5-tools-devel rpm-build-python3 rpm-build-ruby xsltproc
BuildRequires(pre): rpm-build-kf5 rpm-build-ubt
BuildRequires: cmake extra-cmake-modules
BuildRequires: gettext-tools
BuildRequires: gcc-c++ glib2-devel libreadline-devel /usr/bin/xsltproc
BuildRequires: libavdevice-devel libavformat-devel libswscale-devel
# libavresample-devel
BuildRequires: libchromaprint-devel
BuildRequires: id3lib-devel libtag-devel
BuildRequires: libflac++-devel libvorbis-devel
%if_enabled mp4
BuildRequires: libmpeg4ip-devel
%endif
BuildRequires: qt5-base-devel qt5-multimedia-devel qt5-tools-devel qt5-phonon-devel
BuildRequires: kf5-kio-devel
BuildRequires: kf5-kdoctools kf5-kdoctools-devel
BuildRequires: kf5-kauth-devel kf5-kbookmarks-devel kf5-kcodecs-devel kf5-kcompletion-devel kf5-kconfig-devel
BuildRequires: kf5-kconfigwidgets-devel kf5-kcoreaddons-devel kf5-solid-devel kf5-kxmlgui-devel
BuildRequires: kf5-kdelibs4support kf5-kdoctools kf5-kdoctools-devel-static
BuildRequires: kf5-kio-devel kf5-kitemviews-devel kf5-kjobwidgets-devel kf5-kservice-devel kf5-kwidgetsaddons-devel


%description
Kid3 - Efficient Audio Tagger

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, APE, MP4/AAC, MP2, Speex,
 TrueAudio, WavPack, WMA, WAV, AIFF files and tracker modules.
- 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 tags from the contents of tag fields
- Generate filenames from tags
- Rename directories from tags
- Generate playlist files
- Automatic case conversion and string translation
- Import and export album data
- Import from gnudb.org, TrackType.org, MusicBrainz, Discogs, Amazon

Authors: Urs Fleisch

%package common
Summary: Common empty package for %name
Group: System/Configuration/Other
BuildArch: noarch
Requires: kf5-filesystem
%description common
Common empty package for %name

%package core
Summary: Core files needed for %name
Group: System/Libraries
Requires: %name-common = %EVR
%description core
Core files needed for %name

%package -n %rname-ui-kde5
Summary: ID3 tagger KDE5 UI
Group: Sound
Provides: %rname = %version-%release
Provides: kde5-kid3 = %EVR
Obsoletes: kde5-kid3 < %EVR
%if_enabled obsolete_kde4
Provides: kid3-ui-kde4 = %version-%release
Obsoletes: kid3-ui-kde4 < %version-%release
%endif
Requires: %name-core = %EVR
%description -n %rname-ui-kde5
Package contains KDE5 UI.
%{description}

%package -n %rname-ui-qt5
Summary: ID3 tagger Qt5 UI
Group: Sound
%if_enabled obsolete_kde4
Provides: kid3-ui-qt4 = %version-%release
Obsoletes: kid3-ui-qt4 < %version-%release
%else
Conflicts: kid3-ui-qt4
%endif
Requires: %name-core = %EVR
%description -n %rname-ui-qt5
Package contains Qt5 UI.
%{description}

%package -n %rname-ui-cli5
Summary: ID3 tagger CLI UI
Group: Sound
%if_enabled obsolete_kde4
Provides: kid3-ui-cli = %version-%release
Obsoletes: kid3-ui-cli < %version-%release
%endif
Requires: %name-core = %EVR
%description -n %rname-ui-cli5
Package contains command line UI.
%{description}


%package -n libkid3-core5
Summary: %name library
Group: System/Libraries
Requires: %name-common = %EVR
%description -n libkid3-core5
%name library.

%package -n libkid3-gui5
Summary: %name library
Group: System/Libraries
Requires: %name-common = %EVR
%description -n libkid3-gui5
%name library.


%prep
%setup -q -n %rname-%version

#tmp_file=`mktemp`

#msgcat --use-first translations/po/ru/kid3_qt.po %SOURCE1 >"$tmp_file"
#cat "$tmp_file" >translations/po/ru/kid3_qt.po
#rm -f "$tmp_file"

find -type f -name CMakeLists.txt | \
while read f ; do
   for l in kid3-gui kid3-core ; do
sed -i "s|${l}|${l}5|" $f
   done
done

# setup soname

for d in core gui ; do
   echo "set_target_properties(kid3-${d}5 PROPERTIES SOVERSION \${CPACK_PACKAGE_VERSION_MAJOR} VERSION \${KID3_VERSION})" >> src/${d}/CMakeLists.txt
done


%build
%K5cmake \
   -DWITH_APPS="cli;qt;kde" \
   -DWITH_BINDIR=%_K5bin \
   -DWITH_LIBDIR=%_lib \
   -DWITH_DATAROOTDIR=%_datadir \
   -DWITH_PLUGINSDIR=%_libdir/kid3-kf5/plugins \
   -DWITH_QMLDIR=%_datadir/kid3-kf5/qml \
   -DWITH_TRANSLATIONSDIR=share/kid3-kf5/translations \
   -DWITH_DOCDIR=%_docdir/%name \
   -DWITH_QT4:BOOL=OFF \
   -DWITH_QT5:BOOL=ON \
   -DWITH_FFMPEG=ON \
   -DWITH_TAGLIB:BOOL=ON \
   -DWITH_ID3LIB:BOOL=ON \
   -DWITH_VORBIS:BOOL=ON \
%if_enabled mp4
   -DWITH_MP4V2:BOOL=ON \
%endif
   -DWITH_FLAC:BOOL=ON \
   -DWITH_CHROMAPRINT=ON \
   -DWITH_DBUS=ON \
   -DWITH_QML=OFF \
   #
%K5make


%install
%K5install
%find_lang --with-kde --with-qt %rname

%files common -f %rname.lang
%dir %_datadir/kid3-kf5/
%dir %_datadir/kid3-kf5/translations

%files core
%_libdir/kid3-kf5/plugins/lib*.so

%files -n %rname-ui-kde5
%doc AUTHORS NEWS README ChangeLog
%_K5bin/%rname
%_K5xmlgui/kid3/
%_K5xdgapp/*.kid3.desktop
%_K5icon/hicolor/*/apps/kid3.*
%if_enabled obsolete_kde4
%_datadir/metainfo/*.kid3.*
%endif

%files -n %rname-ui-qt5
%doc AUTHORS NEWS README ChangeLog
%_K5bin/%rname-qt
%doc %_docdir/kde5-kid3/
%_iconsdir/*/*/apps/kid3-qt.*
%_desktopdir/*.kid3-qt.desktop
%if_enabled obsolete_kde4
%_datadir/metainfo/*.kid3-qt.*
%endif

%files -n %rname-ui-cli5
%doc AUTHORS NEWS README ChangeLog
%_K5bin/%rname-cli

%files -n libkid3-core5
%_libdir/libkid3-core5.so.*

%files -n libkid3-gui5
%_libdir/libkid3-gui5.so.*

#%files devel

#%_K5link/lib*.so
#%_K5dbus_iface/*id3*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin