~ubuntu-branches/ubuntu/gutsy/kid3/gutsy

« back to all changes in this revision

Viewing changes to kid3.spec

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2007-07-01 00:31:03 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070701003103-2qownnv49a7jdqm3
Tags: 0.9-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
2
# spec file for package kid3
3
3
#
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
5
4
 
6
5
Name:         kid3
7
6
License:      GPL
8
7
Group:        Applications/Multimedia
9
8
Summary:      Efficient ID3 tag editor
10
 
Version:      0.8.1
 
9
Version:      0.9
11
10
Release:      1%{?dist}
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)
15
 
Prefix:       /opt/kde3
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)
23
25
 
24
26
%description
25
27
With Kid3 you can:
26
28
 
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
31
33
- Edit FLAC 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
34
37
  set together.
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
 
44
 
 
45
This package uses KDE libraries, if you do not use KDE you should use kid3-qt.
41
46
 
42
47
Authors: Urs Fleisch
43
48
 
45
50
%prep
46
51
[ ${RPM_BUILD_ROOT} != "/" ] && rm -rf ${RPM_BUILD_ROOT}
47
52
%setup -q
48
 
sed -i -e 's/\r//' LICENSE
 
53
sed -i -e 's|/lib /usr/lib\b|/%{_lib} %{_libdir}|g' configure # lib64 rpaths
49
54
 
50
55
%build
51
 
./configure --disable-debug --prefix=%{prefix}
 
56
./configure --disable-debug --prefix=%{_kid3_kde_prefix}
52
57
make
53
58
 
 
59
cd kid3-qt; \
 
60
./configure --prefix=%{_kid3_qt_prefix}; \
 
61
cd ..
 
62
make -C kid3-qt
 
63
 
54
64
%install
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 "{}" \;
 
69
 
 
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 "{}" \;
60
76
 
61
77
%clean
62
78
[ -d  ${RPM_BUILD_ROOT} -a "${RPM_BUILD_ROOT}" != "/" ] && rm -rf  ${RPM_BUILD_ROOT}
63
79
 
64
80
%files -f master.list
65
 
%defattr(-,root,root)
66
 
%doc AUTHORS COPYING INSTALL LICENSE README ChangeLog
 
81
%defattr(-,root,root,-)
 
82
%doc AUTHORS ChangeLog COPYING LICENSE README
 
83
 
 
84
 
 
85
%package qt
 
86
Group:        Applications/Multimedia
 
87
Summary:      Efficient ID3 tag editor
 
88
Prefix:       %{_kid3_qt_prefix}
 
89
 
 
90
%description qt
 
91
With Kid3 you can:
 
92
 
 
93
- Edit ID3v1.1 tags
 
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
 
97
- Edit FLAC 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
 
101
  set together.
 
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
 
108
 
 
109
This package does not use KDE libraries, if you use KDE you should use kid3.
 
110
 
 
111
Authors: Urs Fleisch
 
112
 
 
113
%files qt -f master-qt.list
 
114
%defattr(-,root,root,-)
 
115
%doc AUTHORS ChangeLog COPYING LICENSE README