2
2
# spec file for package kid3
4
# neededforbuild aaa_base aaa_dir base bash cpp glibc glibc-devel grep gzip less man sh-utils binutils fileutils gdb id3lib id3lib-devel gpp gcc make perl qt qt-devel qt-devel-doc qt3-devel-tools rpm gettext kdelib kdelibs-devel libxslt libvorbis-devel libogg-devel flac-devel libtunepimp-devel
8
7
Group: Applications/Multimedia
9
8
Summary: Efficient ID3 tag editor
12
11
URL: http://kid3.sourceforge.net/
13
Source0: http://download.sourceforge.net/kid3/%{name}-%{version}.tar.gz
12
Source0: http://downloads.sourceforge.net/kid3/%{name}-%{version}.tar.gz
14
13
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
16
#BuildRequires: kdelibs-devel
17
#BuildRequires: id3lib-devel
18
#BuildRequires: flac-devel
19
#BuildRequires: libtunepimp-devel
20
#BuildRequires: taglib-devel
21
#BuildRequires: desktop-file-utils
22
#BuildRequires: perl(File::Spec)
14
# If these two prefixes overlap, generation of master.list and master-qt.list
15
# will not work and you have to list the %files explicitly.
16
%define _kid3_kde_prefix /opt/kde3
17
%define _kid3_qt_prefix /usr
18
Prefix: %{_kid3_kde_prefix}
19
BuildRequires: kdelibs-devel
20
BuildRequires: id3lib-devel
21
BuildRequires: taglib-devel >= 1.4
22
BuildRequires: flac-devel
23
BuildRequires: libtunepimp-devel
24
BuildRequires: perl(File::Spec)
27
29
- Edit ID3v1.1 tags
28
- Edit all ID3v2.3 frames
29
- Convert between ID3v1.1 and ID3v2.3 tags
30
- Edit all ID3v2.3 and ID3v2.4 frames
31
- Convert between ID3v1.1, ID3v2.3 and ID3v2.4 tags
30
32
- Edit Ogg/Vorbis tags
34
- Edit APE tags in MPC files
32
35
- Edit tags of multiple files, e.g. the artist, album, year and genre
33
36
of all files of an album typically have the same values and can be
36
39
- Generate filenames from tags
37
40
- Generate playlist files
38
41
- Automatic case conversion and string translation
39
- Import of album data from freedb.org, MusicBrainz and other data sources
40
- Export of album data in various formats
42
- Import and export album data
43
- Import from gnudb.org, TrackType.org, MusicBrainz, Discogs
45
This package uses KDE libraries, if you do not use KDE you should use kid3-qt.
42
47
Authors: Urs Fleisch
46
51
[ ${RPM_BUILD_ROOT} != "/" ] && rm -rf ${RPM_BUILD_ROOT}
48
sed -i -e 's/\r//' LICENSE
53
sed -i -e 's|/lib /usr/lib\b|/%{_lib} %{_libdir}|g' configure # lib64 rpaths
51
./configure --disable-debug --prefix=%{prefix}
56
./configure --disable-debug --prefix=%{_kid3_kde_prefix}
60
./configure --prefix=%{_kid3_qt_prefix}; \
55
65
make DESTDIR=$RPM_BUILD_ROOT install
56
find $RPM_BUILD_ROOT -type f -o -type l | sed "s|^$RPM_BUILD_ROOT||" >master.list
66
find $RPM_BUILD_ROOT%{_kid3_kde_prefix} -type f -o -type l | sed "s|^$RPM_BUILD_ROOT||" >master.list
57
67
mkdir -p ${RPM_BUILD_ROOT}/%{_defaultdocdir}
58
strip $RPM_BUILD_ROOT%_bindir/*
59
find $RPM_BUILD_ROOT%_prefix -type f -o -name "*.so" -exec strip "{}" \;
68
find $RPM_BUILD_ROOT%{_kid3_kde_prefix} -type f -o -name "*.so" -exec strip "{}" \;
70
# qmake generates wrong relative paths if the build and prefix are below /usr.
71
# This fixes the case for prefix /usr
72
find kid3-qt -name Makefile -exec sed -i 's|$(INSTALL_ROOT)\(../\)\{6,7\}|$(INSTALL_ROOT)/usr/|g' {} \;
73
make -C kid3-qt install INSTALL_ROOT=$RPM_BUILD_ROOT
74
find $RPM_BUILD_ROOT%{_kid3_qt_prefix} -type f -o -type l | sed "s|^$RPM_BUILD_ROOT||" >master-qt.list
75
find $RPM_BUILD_ROOT%{_kid3_qt_prefix} -type f -o -name "*.so" -exec strip "{}" \;
62
78
[ -d ${RPM_BUILD_ROOT} -a "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
64
80
%files -f master.list
66
%doc AUTHORS COPYING INSTALL LICENSE README ChangeLog
81
%defattr(-,root,root,-)
82
%doc AUTHORS ChangeLog COPYING LICENSE README
86
Group: Applications/Multimedia
87
Summary: Efficient ID3 tag editor
88
Prefix: %{_kid3_qt_prefix}
94
- Edit all ID3v2.3 and ID3v2.4 frames
95
- Convert between ID3v1.1, ID3v2.3 and ID3v2.4 tags
96
- Edit Ogg/Vorbis tags
98
- Edit APE tags in MPC files
99
- Edit tags of multiple files, e.g. the artist, album, year and genre
100
of all files of an album typically have the same values and can be
102
- Generate tags from filenames
103
- Generate filenames from tags
104
- Generate playlist files
105
- Automatic case conversion and string translation
106
- Import and export album data
107
- Import from gnudb.org, TrackType.org, MusicBrainz, Discogs
109
This package does not use KDE libraries, if you use KDE you should use kid3.
113
%files qt -f master-qt.list
114
%defattr(-,root,root,-)
115
%doc AUTHORS ChangeLog COPYING LICENSE README