blob: 449ddcc55977b6702ee9f6534a5b831d8a6bf0e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
|
%define major 3
%define libname %mklibname k3b %major
%define oldlibname %mklibname k3b 2
%define k3b_18n_version 1.0.5
Name: kde3-k3b
Summary: CD-Burner for KDE
Version: 3.5.12
Release: %mkrel 1
License: GPL
Group: Archiving/Cd burning
Source0: http://jaist.dl.sourceforge.net/sourceforge/k3b/k3b-%{version}.tar.bz2
Source1: http://jaist.dl.sourceforge.net/sourceforge/k3b/k3b-i18n-%{k3b_18n_version}.tar.bz2
Patch0: kde-3.5.10-acinclude.patch
#Patch1: fix_autotools.patch
#Patch2: new-ffmpeg.diff
Patch3: iso-level-3.patch
Patch4: verify-reload-fix.patch
#Patch5: no-suid-warning.patch
#Patch6: fix-k3bjobhandler_install.patch
Patch7: kdebase-3.5.12-move-xdg-menu-dir.patch
Patch8: kdebase-3.5.12-config.patch
URL: http://www.k3b.org/
Provides: k3b = %version-%release
Requires: cdrecord
Requires: mkisofs
Requires: cdrdao
Requires: sox
Requires: vcdimager
Requires: normalize
Requires: kdebase-progs
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: kde3-macros
%if %mdkversion < 201000
BuildRequires: autoconf <= 1:2.63
%else
BuildRequires: autoconf >= 1:2.65
%endif
BuildRequires: automake >= 1.6.1
BuildRequires: libcdda-devel
BuildRequires: kdelibs-devel
BuildRequires: jpeg-devel
BuildRequires: png-devel
BuildRequires: X11-devel
BuildRequires: mad-devel
BuildRequires: arts-devel
BuildRequires: libart_lgpl-devel
BuildRequires: fam-devel
BuildRequires: audiofile-devel
BuildRequires: alsa-lib-devel
BuildRequires: libvorbis-devel
BuildRequires: nas-devel
BuildRequires: libflac++-devel
BuildRequires: libflac-devel
BuildRequires: id3lib-devel
BuildRequires: taglib-devel
BuildRequires: musicbrainz-devel
BuildRequires: ffmpeg-devel
BuildRequires: libsndfile-devel
BuildRequires: libmpcdec-devel
BuildRequires: libsamplerate-devel
BuildRequires: libdbus-qt-1-devel
BuildRequires: GL-devel
BuildRequires: hal-devel
BuildRequires: libdvdread-devel
BuildRequires: desktop-file-utils
Obsoletes: k3b < 1.95
Requires: %libname = %version-%release
%description
K3b is CD-writing software which intends to be feature-rich and
provide an easily usable interface. Features include burning
audio CDs from .WAV and .MP3 audio files, configuring external
programs and configuring devices.
%if %mdkversion < 200900
%post
%update_menus
%endif
%if %mdkversion < 200900
%postun
%clean_menus
%endif
%files -f k3b.lang
%defattr (-,root,root)
%dir %_kde3_docdir/HTML/*/k3b
%doc %_kde3_docdir/HTML/*/k3b/*
%_kde3_libdir/kde3/*
%_kde3_bindir/*
%_kde3_datadir/applications/kde/*
%_kde3_appsdir/konqueror/servicemenus/*
%_kde3_datadir/mimelnk/application/*
%dir %_kde3_appsdir/k3b/
%_kde3_appsdir/k3b/*
%_kde3_datadir/sounds/*.wav
%_kde3_datadir/applnk/.hidden/*.desktop
%_kde3_iconsdir/*/*/*/*
%_kde3_appsdir/konqsidebartng/virtual_folders/services/videodvd.desktop
%_kde3_datadir/services/kfile_k3b.desktop
%_kde3_datadir/services/videodvd.protocol
#------------------------------------------------------------------
%package -n %libname
Group: System/Libraries
Summary: Libraries for %name
Provides: libk3b = %version-%release
Conflicts: k3b <= 0.9-3mdk
Obsoletes: %oldlibname
Obsoletes: %mklibname k3b 3 < %version-%release
Obsoletes: %mklibname kde3-k3b 3 < %version-%release
%description -n %libname
The libraries from %name package
%if %mdkversion < 200900
%post -n %libname -p /sbin/ldconfig
%endif
%if %mdkversion < 200900
%postun -n %libname -p /sbin/ldconfig
%endif
%files -n %libname
%defattr(-,root,root)
%_kde3_libdir/libk3b.la
%_kde3_libdir/libk3b.so.%{major}*
%_kde3_libdir/libk3bdevice.so.*
%_kde3_libdir/libk3bdevice.la
#------------------------------------------------------------------
%package devel
Group: Development/Other
Summary: Libraries for %name
Requires: %libname = %version-%release
Provides: kde3-k3b-devel = %{version}-%{release}
Obsoletes: %oldlibname-devel
Obsoletes: %libname-devel
Conflicts: k3b <= 0.9-3mdk
%description devel
Development libraries from %name
%files devel
%defattr (-,root,root)
%_kde3_includedir/*
%_kde3_libdir/*.so
#------------------------------------------------------------------
%prep
%setup -q -c -n k3b
%setup -q -T -D -c -a 1 -n k3b
cd %_builddir/k3b/k3b-%version
%if %mdkversion >= 201000
%patch0 -p1
#%patch1 -p1
%endif
#%patch2 -p1
%patch3 -p1
%patch4 -p1
#%patch5 -p1
#%patch6 -p1
%patch7 -p0
%patch8 -p0
cd %_builddir/k3b/k3b-i18n-%{k3b_18n_version}
%if %mdkversion >= 201000
%patch0 -p1
#%patch1 -p1
%endif
cd %_builddir/k3b
%build
export QTDIR=%qt3dir
PATH=%{qt3dir}/bin:%{_kde3_bindir}:$PATH; export PATH;
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/kde3/lib/
cd %_builddir/k3b/k3b-%version
make -f admin/Makefile.common
%configure_kde3 \
--without-cdrecord-suid-root \
--with-k3bsetup=no
%make
cd -
cd %_builddir/k3b/k3b-i18n-%{k3b_18n_version}
make -f admin/Makefile.common
CFLAGS="${CFLAGS} %optflags"
CXXFLAGS="${CXXFLAGS} %optflags"
export CFLAGS CXXFLAGS
%configure_kde3
# Necessary to regenerate po file !!!! Otherwise it's not generated
make clean
find -name *.gmo | xargs rm -f
%make
cd -
%install
rm -rf %buildroot
mkdir -p %buildroot/%_kde3_datadir/applnk/Multimedia
cd %_builddir/k3b/k3b-%{version}
%makeinstall_std
cd -
cd %_builddir/k3b/k3b-i18n-%{k3b_18n_version}
%makeinstall_std
cd -
install -d %buildroot/%_kde3_datadir/applications/kde/
desktop-file-install --vendor='' \
--dir %buildroot/%_kde3_datadir/applications/kde/ \
--remove-key='Encoding' \
--remove-category='Application' \
--remove-category='AudioVideo' \
--add-category='Utility' \
%buildroot/%_kde3_datadir/applications/kde/k3b.desktop
%find_lang k3b k3b k3bsetup libk3b libk3bdevice
%clean
rm -rf %buildroot
|