FTBFS: added -Wno-error=misleading-indentation
[cdrkit.git] / cdrkit.spec
blob5cfa2628b1b6f060b29e0f0a2849dead475d8a4b
1 Summary: A collection of CD/DVD utilities
2 Name: cdrkit
3 Version: 1.1.11
4 Release: 31%{?dist}
5 License: GPLv2
6 Group: Applications/System
7 URL: http://cdrkit.org/
8 Source: http://cdrkit.org/releases/cdrkit-%{version}.tar.gz
10 Patch1: cdrkit-1.1.8-werror.patch
11 Patch2: cdrkit-1.1.9-efi-boot.patch
12 Patch4: cdrkit-1.1.9-no_mp3.patch
13 Patch5: cdrkit-1.1.9-buffer_overflow.patch
14 Patch6: cdrkit-1.1.10-build-fix.patch
15 Patch7: cdrkit-1.1.11-manpagefix.patch
16 Patch8: cdrkit-1.1.11-rootstat.patch
17 Patch9: cdrkit-1.1.11-usalinst.patch
18 Patch10: cdrkit-1.1.11-readsegfault.patch
19 Patch11: cdrkit-1.1.11-format.patch
20 Patch12: cdrkit-1.1.11-handler.patch
21 Patch13: cdrkit-1.1.11-dvdman.patch
22 Patch14: cdrkit-1.1.11-paranoiacdda.patch
23 Patch15: cdrkit-1.1.11-utf8.patch
24 Patch16: cdrkit-1.1.11-cmakewarn.patch
25 Patch17: cdrkit-1.1.11-memset.patch
26 Patch19: cdrkit-1.1.11-ppc64le_elfheader.patch
27 Patch20: cdrkit-1.1.11-werror_gcc5.patch
28 Patch21: cdrkit-1.1.11-devname.patch
30 BuildRequires: cmake libcap-devel zlib-devel perl file-devel bzip2-devel
32 %description
33 cdrkit is a collection of CD/DVD utilities.
35 %package -n wodim
36 Summary: A command line CD/DVD recording program
37 Group: Applications/Archiving
38 Obsoletes: dvdrecord <= 0:0.1.5
39 Provides: dvdrecord = 0:0.1.5.1
40 Obsoletes: cdrecord < 9:2.01-12
41 Provides: cdrecord = 9:2.01-12
42 Requires: libusal = %{version}-%{release}
43 Requires(preun): %{_sbindir}/alternatives coreutils
44 Requires(post): %{_sbindir}/alternatives coreutils
46 %description -n wodim
47 Wodim is an application for creating audio and data CDs. Wodim
48 works with many different brands of CD recorders, fully supports
49 multi-sessions and provides human-readable error messages.
51 %package -n genisoimage
52 Summary: Creates an image of an ISO9660 file-system
53 Group: Applications/System
54 Obsoletes: mkisofs < 9:2.01-12
55 Provides: mkisofs = 9:2.01-12
56 Requires: libusal = %{version}-%{release}
57 Requires(preun): %{_sbindir}/alternatives coreutils
58 Requires(post): %{_sbindir}/alternatives coreutils
60 %description -n genisoimage
61 The genisoimage program is used as a pre-mastering program; i.e., it
62 generates the ISO9660 file-system. Genisoimage takes a snapshot of
63 a given directory tree and generates a binary image of the tree
64 which will correspond to an ISO9660 file-system when written to
65 a block device. Genisoimage is used for writing CD-ROMs, and includes
66 support for creating boot-able El Torito CD-ROMs.
68 Install the genisoimage package if you need a program for writing
69 CD-ROMs.
71 %package -n dirsplit
72 Summary: Utility to split directories
73 Group: Applications/System
74 Requires: perl >= 4:5.8.1
75 Requires: genisoimage = %{version}-%{release}
77 %description -n dirsplit
78 This utility is used to split directories into chunks before burning.
79 Chunk size is usually set to fit to a CD/DVD.
81 %package -n icedax
82 Group: Applications/Multimedia
83 Summary: A utility for sampling/copying .wav files from digital audio CDs
84 Obsoletes: cdda2wav < 9:2.01-12
85 Provides: cdda2wav = 9:2.01-12
86 Requires: libusal = %{version}-%{release}
87 Requires(preun): %{_sbindir}/alternatives chkconfig coreutils
88 Requires(post): %{_sbindir}/alternatives chkconfig coreutils
89 Requires: vorbis-tools
90 Requires: cdparanoia
91 BuildRequires: cdparanoia-devel
93 %description -n icedax
94 Icedax is a sampling utility for CD-ROM drives that are capable of
95 providing a CD's audio data in digital form to your host. Audio data
96 read from the CD can be saved as .wav or .sun format sound files.
97 Recording formats include stereo/mono, 8/12/16 bits and different
98 rates. Icedax can also be used as a CD player.
100 %package -n libusal
101 Summary: Library to communicate with SCSI devices
102 Group: Development/Libraries
104 %description -n libusal
105 The libusal package contains C libraries that allows applications
106 to communicate with SCSI devices and is well suitable for writing
107 CD-R media.
109 %package -n libusal-devel
110 Summary: Development files for libusal
111 Group: Development/Libraries
112 Requires: libusal = %{version}-%{release}
114 %description -n libusal-devel
115 The libusal-devel package contains C libraries and header files
116 for developing applications that use libusal for communication with
117 SCSI devices.
119 %prep
120 %setup -q
121 %patch1 -p1 -b .werror
122 %patch2 -p1 -b .efi
123 %patch4 -p1 -b .no_mp3
124 %patch5 -p1 -b .buffer_overflow
125 %patch6 -p1 -b .build-fix
126 %patch7 -p1 -b .manpagefix
127 %patch8 -p1 -b .rootstat
128 %patch9 -p1 -b .usalinst
129 %patch10 -p1 -b .readsegfault
130 %patch11 -p1 -b .format
131 %patch12 -p1 -b .handler
132 %patch13 -p1 -b .dvdman
133 %patch14 -p1 -b .paranoiacdda
134 # not using -b since otherwise backup files would be included into rpm
135 %patch15 -p1
136 %patch16 -p1 -b .cmakewarn
137 %patch17 -p1 -b .edcspeed
138 %patch19 -p1 -b .elfheader
139 %patch20 -p1 -b .werror_gcc5
140 %patch21 -p1 -b .devname
142 # we do not want bundled paranoia library
143 rm -rf libparanoia
145 find . -type f -print0 | xargs -0 perl -pi -e 's#/usr/local/bin/perl#/usr/bin/perl#g'
146 find doc -type f -print0 | xargs -0 chmod a-x
149 %build
150 mkdir fedora
151 cd fedora
152 export CFLAGS="$RPM_OPT_FLAGS -Wall -Werror -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable -Wno-array-bounds -fno-strict-aliasing -Wno-logical-not-parentheses -Wno-error=misleading-indentation"
153 export CXXFLAGS="$CFLAGS"
154 export FFLAGS="$CFLAGS"
155 %cmake CMAKE_VERBOSE=1 \
156 -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
157 -DBUILD_SHARED_LIBS:BOOL=ON \
160 make VERBOSE=1 %{?_smp_mflags}
162 %install
163 cd fedora
164 make install DESTDIR=$RPM_BUILD_ROOT
165 perl -pi -e 's#^require v5.8.1;##g' $RPM_BUILD_ROOT%{_bindir}/dirsplit
166 ln -s genisoimage $RPM_BUILD_ROOT%{_bindir}/mkisofs
167 ln -s genisoimage $RPM_BUILD_ROOT%{_bindir}/mkhybrid
168 ln -s icedax $RPM_BUILD_ROOT%{_bindir}/cdda2wav
169 ln -s wodim $RPM_BUILD_ROOT%{_bindir}/cdrecord
170 ln -s wodim $RPM_BUILD_ROOT%{_bindir}/dvdrecord
172 #do not include empty fedora/* directories in debuginfo package
173 cd ..
174 rm -rf fedora
176 # missing man page. Do symlink like in debian
177 ln -sf wodim.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1/netscsid.1.gz
179 # we don't need cdda2mp3 since we don't have any mp3 {en,de}coder
180 rm $RPM_BUILD_ROOT%{_bindir}/cdda2mp3
182 %post -n wodim
183 link=`readlink %{_bindir}/cdrecord`
184 if [ "$link" == "%{_bindir}/wodim" ]; then
185 rm -f %{_bindir}/cdrecord
187 link=`readlink %{_bindir}/dvdrecord`
188 if [ "$link" == "wodim" ]; then
189 rm -f %{_bindir}/dvdrecord
192 %{_sbindir}/alternatives --install %{_bindir}/cdrecord cdrecord \
193 %{_bindir}/wodim 50 \
194 --slave %{_mandir}/man1/cdrecord.1.gz cdrecord-cdrecordman \
195 %{_mandir}/man1/wodim.1.gz \
196 --slave %{_bindir}/dvdrecord cdrecord-dvdrecord %{_bindir}/wodim \
197 --slave %{_mandir}/man1/dvdrecord.1.gz cdrecord-dvdrecordman \
198 %{_mandir}/man1/wodim.1.gz \
199 --slave %{_bindir}/readcd cdrecord-readcd %{_bindir}/readom \
200 --slave %{_mandir}/man1/readcd.1.gz cdrecord-readcdman \
201 %{_mandir}/man1/readom.1.gz
203 %preun -n wodim
204 if [ $1 = 0 ]; then
205 %{_sbindir}/alternatives --remove cdrecord %{_bindir}/wodim
208 %post -n genisoimage
209 link=`readlink %{_bindir}/mkisofs`
210 if [ "$link" == "genisoimage" ]; then
211 rm -f %{_bindir}/mkisofs
214 %{_sbindir}/alternatives --install %{_bindir}/mkisofs mkisofs \
215 %{_bindir}/genisoimage 50 \
216 --slave %{_mandir}/man1/mkisofs.1.gz mkisofs-mkisofsman \
217 %{_mandir}/man1/genisoimage.1.gz \
218 --slave %{_bindir}/mkhybrid mkisofs-mkhybrid %{_bindir}/genisoimage \
219 --slave %{_mandir}/man1/mkhybrid.1.gz mkisofs-mkhybridman \
220 %{_mandir}/man1/genisoimage.1.gz
222 %preun -n genisoimage
223 if [ $1 = 0 ]; then
224 %{_sbindir}/alternatives --remove mkisofs %{_bindir}/genisoimage
227 %post -n icedax
228 link=`readlink %{_bindir}/cdda2wav`
229 if [ "$link" == "icedax" ]; then
230 rm -f %{_bindir}/cdda2wav
232 %{_sbindir}/alternatives --install %{_bindir}/cdda2wav cdda2wav \
233 %{_bindir}/icedax 50 \
234 --slave %{_mandir}/man1/cdda2wav.1.gz cdda2wav-cdda2wavman \
235 %{_mandir}/man1/icedax.1.gz
237 %preun -n icedax
238 if [ $1 = 0 ]; then
239 %{_sbindir}/alternatives --remove cdda2wav %{_bindir}/icedax
242 %post -n libusal -p /sbin/ldconfig
244 %postun -n libusal -p /sbin/ldconfig
246 %files -n wodim
247 %doc Changelog COPYING FAQ FORK START
248 %doc doc/READMEs doc/wodim
249 %{_bindir}/devdump
250 %{_bindir}/wodim
251 %ghost %{_bindir}/cdrecord
252 %ghost %{_bindir}/dvdrecord
253 %{_bindir}/readom
254 %{_sbindir}/netscsid
255 %{_mandir}/man1/devdump.*
256 %{_mandir}/man1/wodim.*
257 %{_mandir}/man1/netscsid.*
258 %{_mandir}/man1/readom.*
260 %files -n icedax
261 %doc doc/icedax COPYING
262 %{_bindir}/icedax
263 %ghost %{_bindir}/cdda2wav
264 %{_bindir}/cdda2ogg
265 %{_mandir}/man1/icedax.*
266 %{_mandir}/man1/cdda2ogg.*
267 %{_mandir}/man1/list_audio_tracks.*
269 %files -n genisoimage
270 %doc doc/genisoimage COPYING
271 %{_bindir}/genisoimage
272 %ghost %{_bindir}/mkisofs
273 %ghost %{_bindir}/mkhybrid
274 %{_bindir}/isodebug
275 %{_bindir}/isodump
276 %{_bindir}/isoinfo
277 %{_bindir}/isovfy
278 %{_bindir}/pitchplay
279 %{_bindir}/readmult
280 %{_mandir}/man5/genisoimagerc.*
281 %{_mandir}/man1/genisoimage.*
282 %{_mandir}/man1/isodebug.*
283 %{_mandir}/man1/isodump.*
284 %{_mandir}/man1/isoinfo.*
285 %{_mandir}/man1/isovfy.*
286 %{_mandir}/man1/pitchplay.*
287 %{_mandir}/man1/readmult.*
289 %files -n dirsplit
290 %{_bindir}/dirsplit
291 %{_mandir}/man1/dirsplit.*
293 %files -n libusal
294 %doc doc/plattforms/README.linux Changelog COPYING FAQ FORK START
295 %{_libdir}/libusal.so.*
296 %{_libdir}/librols.so.*
298 %files -n libusal-devel
299 %doc COPYING
300 %{_libdir}/libusal.so
301 %{_libdir}/librols.so
302 %{_includedir}/usal
304 %changelog
305 * Tue Feb 16 2016 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.1.11-31
306 - FTBFS: added -Wno-error=misleading-indentation
308 * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.11-30
309 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
311 * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.11-29
312 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
314 * Fri May 29 2015 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.1.11-28
315 - libusal: added /dev/srN next to /dev/scdN path when scanning for devices
316 added cdrkit-1.1.11-devname.patch
317 bz#1053056
319 * Wed Feb 25 2015 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.1.11-27
320 - fixed FTBFS with gcc5, added cdrkit-1.1.11-werror_gcc5.patch
322 * Fri Nov 07 2014 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.1.11-26
323 - reverted back to cdda-paranoia, cdio has now incompatible GPLv3+ license
325 * Wed Nov 05 2014 Dan HorĂ¡k <dan[at]danny.cz> - 1.1.11-25
326 - fix build on ppc* (#1144072)
328 * Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.11-24
329 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
331 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.11-23
332 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
334 * Sat Aug 03 2013 Petr Pisar <ppisar@redhat.com> - 1.1.11-22
335 - Perl 5.18 rebuild
337 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.11-21
338 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
340 * Tue Jul 23 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.1.11-20
341 - do not include empty fedora/* directories in debuginfo package
343 * Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1.1.11-19
344 - Perl 5.18 rebuild
346 * Wed Jul 17 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.1.11-18
347 - ported from cdda-paranoia to libcdio-paranoia, modified paranoia-cdda.patch
348 - fixed bogus date in changelog
350 * Mon Feb 25 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.1.11-17
351 - modified the memset patch, memsetting the whole array
353 * Fri Feb 22 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.1.11-16
354 - changed or deleted faulty and unneeded memset's that caused build failure with gcc-4.8 -Werror
356 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.11-15
357 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
359 * Wed Oct 03 2012 Honza Horak <hhorak@redhat.com> - 1.1.11-14
360 - Add coreutils as preun/post requirements for wodim and genisoimage
361 Resolves: #862554
363 * Mon Aug 27 2012 Honza Horak <hhorak@redhat.com> - 1.1.11-13
364 - Add mkhybrid(1) as a symlink to genisoimage(1)
365 - Spec file cleanup
367 * Mon Jul 30 2012 Honza Horak <hhorak@redhat.com> - 1.1.11-12
368 - Use system cdparanoia instead of old bundled version
369 - Build libusal as a shared library
370 - Messages from rpmlint clean-up
372 * Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.11-11
373 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
375 * Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.11-10
376 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
378 * Wed Dec 07 2011 Honza Horak <hhorak@redhat.com> - 1.1.11-9
379 - Fix driver specification in man pages
380 (Resolves: #711623)
382 * Thu Jun 02 2011 Honza Horak <hhorak@redhat.com> - 1.1.11-8
383 - Fix segmentation fault when icedax exits while sleeping after ctrl-c
384 (Resolves: #709902)
386 * Tue May 17 2011 Honza Horak <hhorak@redhat.com> - 1.1.11-7
387 - Fix automatic formatting of DVD+RW if needed
388 (Resolves: #519465)
390 * Thu Mar 17 2011 Honza Horak <hhorak@redhat.com> - 1.1.11-6
391 - Added Provides: libusal-static for libusal-devel subpackage
392 (Resolves: #688347)
394 * Mon Mar 07 2011 Honza Horak <hhorak@redhat.com> - 1.1.11-5
395 - Fix segmentation fault in readom
396 (Resolves: #682591)
398 * Thu Feb 17 2011 Honza Horak <hhorak@redhat.com> - 1.1.11-4
399 - Library libusal is installed in order to be used by other apps
400 (Resolves: #588508)
401 https://bugzilla.redhat.com/show_bug.cgi?id=588508
403 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.11-3
404 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
406 * Mon Jan 31 2011 Honza Horak <hhorak@redhat.com> 1.1.11-2
407 - fixed man page missing arguments (Resolves: #647024)
408 https://bugzilla.redhat.com/show_bug.cgi?id=647024
409 - fixed erroneous "Unknown file type (unallocated)" warning
410 (Resolves: #174667)
411 https://bugzilla.redhat.com/show_bug.cgi?id=174667
413 * Mon Oct 18 2010 Nikola Pajkovsky <npajkovs@redhat.com> 1.1.11-1
414 - new upstream version 1.1.11
416 * Mon Jun 21 2010 Roman Rakus <rrakus@redhat.com> - 1.1.10-2
417 - Added missing manpage for netscsid (symlink to wodim manpage)
419 * Wed Jan 20 2010 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.10-1
420 - new upstream version 1.1.10
422 * Tue Aug 11 2009 Nikola Pajkovsky <npajkovs@redhat.com> 1.1.9-10
423 - fix #508449. fix string overflow breakage when using the -root
425 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.9-9
426 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
428 * Thu Jul 16 2009 Nikola Pajkovsky <npajkovs@redhat.com> 1.1.9-8
429 - fix buffer overflow
431 * Fri Jul 10 2009 Adam Jackson <ajax@redhat.com> 1.1.9-7
432 - Move dirsplit to a subpackage to isolate the perl dependency.
434 * Mon Jun 15 2009 Roman Rakus <rrakus@redhat.com> - 1.1.9-6
435 - rename functions as they conflict with glibc
436 - Don't push cdda2mp3 because we don't have any mp3 coder
437 Resolves: #505918
439 * Tue Jun 02 2009 Roman Rakus <rrakus@redhat.com> - 1.1.9-5
440 - Added Requires vorbis-tools in icedax (rhbz #503699)
442 * Wed Feb 25 2009 Peter Jones <pjones@redhat.com> - 1.1.9-4
443 - Add support for EFI boot images.
445 * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.9-3
446 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
448 * Thu Feb 12 2009 Roman Rakus <rrakus@redhat.com> - 1.1.9-2
449 - Use -fno-strict-aliasing to prevent strict_aliasing warnings/errors
451 * Mon Oct 27 2008 Roman Rakus <rrakus@redhat.com> - 1.1.9-1
452 - Bump to version 1.1.9
454 * Tue May 27 2008 Roman Rakus <rrakus@redhat.com> - 1.1.8-1
455 - Version 1.1.8 - old patches included
456 - added bzip2-devel to build requirements
457 - fixed #171510 - preserve directory permissions
459 * Wed Feb 27 2008 Harald Hoyer <harald@redhat.com> 1.1.6-11
460 - refined -Werror patch
462 * Mon Feb 25 2008 Harald Hoyer <harald@redhat.com> 1.1.6-10
463 - patched to compile with -Werror (rhbz#429385)
465 * Thu Feb 21 2008 Harald Hoyer <harald@redhat.com> 1.1.6-9
466 - fixed loop on error message for old dev syntax (rhbz#429386)
468 * Thu Feb 21 2008 Harald Hoyer <harald@redhat.com> 1.1.6-8
469 - added file-devel to build requirements
471 * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.6-7
472 - Autorebuild for GCC 4.3
474 * Tue Sep 25 2007 Harald Hoyer <harald@redhat.com> - 1.1.6-6
475 - fixed readcd man page symlink
477 * Fri Sep 21 2007 Harald Hoyer <harald@redhat.com> - 1.1.6-5
478 - fixed rhbz#255001 - icedax --devices segfaults
479 - fixed rhbz#249357 - Typo in wodim output
481 * Fri Sep 21 2007 Harald Hoyer <harald@redhat.com> - 1.1.6-4
482 - play stupid tricks, to let alternatives make the links and
483 rpm not removing them afterwards
484 - removed bogus warning for "." and ".."
486 * Thu Sep 20 2007 Harald Hoyer <harald@redhat.com> - 1.1.6-3
487 - fixed rhbz#248262
488 - switched to alternatives
490 * Fri Aug 17 2007 Harald Hoyer <harald@redhat.com> - 1.1.6-2
491 - changed license to GPLv2
493 * Wed Jun 20 2007 Harald Hoyer <harald@redhat.com> - 1.1.6-1
494 - version 1.1.6
495 - added readcd symlink
497 * Mon Apr 23 2007 Harald Hoyer <harald@redhat.com> - 1.1.2-4
498 - bump obsoletes/provides
500 * Tue Feb 27 2007 Harald Hoyer <harald@redhat.com> - 1.1.2-3
501 - applied specfile changes as in bug #224365
503 * Wed Jan 24 2007 Harald Hoyer <harald@redhat.com> - 1.1.2-1
504 - version 1.1.2