Sophie

Sophie

distrib > Mageia > 8 > x86_64 > by-pkgid > d88ce9a2fb3cf0bc91f6a2ecada6b4f9 > files > 24

cdrkit-1.1.11-15.mga8.src.rpm

# "fix" underlinking:
%define _disable_ld_no_undefined 1

%define major 0
%define libname %mklibname usal %major
%define devname %mklibname -d usal

Summary:	A command line CD/DVD-Recorder
Name:		cdrkit
Version:	1.1.11
Release:	%mkrel 15
License:	GPLv2+
Group:		Archiving/Cd burning
URL:		http://cdrkit.org/
Source:		http://cdrkit.org/releases/%{name}-%{version}.tar.gz
Patch1: cdrkit-1.1.8-werror.patch
Patch2: cdrkit-1.1.9-efi-boot.patch
Patch4: cdrkit-1.1.9-no_mp3.patch
Patch5: cdrkit-1.1.9-buffer_overflow.patch
Patch6: cdrkit-1.1.10-build-fix.patch
Patch7: cdrkit-1.1.11-manpagefix.patch
Patch8: cdrkit-1.1.11-rootstat.patch
Patch9: cdrkit-1.1.11-usalinst.patch
Patch10: cdrkit-1.1.11-readsegfault.patch
Patch11: cdrkit-1.1.11-format.patch
Patch12: cdrkit-1.1.11-handler.patch
Patch13: cdrkit-1.1.11-dvdman.patch
Patch14: cdrkit-1.1.11-paranoiacdda.patch
Patch15: cdrkit-1.1.11-utf8.patch
Patch16: cdrkit-1.1.11-cmakewarn.patch
Patch17: cdrkit-1.1.11-memset.patch
Patch19: cdrkit-1.1.11-ppc64le_elfheader.patch
Patch20: cdrkit-1.1.11-werror_gcc5.patch
Patch21: cdrkit-1.1.11-devname.patch
Patch22: cdrkit-1.1.11-sysmacros.patch
Patch23: cdrkit-1.1.11-gcc10.patch
Patch50:		cdrkit-1.1.9-wformat-error.patch
BuildRequires:	cmake
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libcap)
BuildRequires:	magic-devel
BuildRequires: cdparanoia-devel
Requires(pre):	rpm-helper
Requires(postun): rpm-helper
Requires(postun): update-alternatives
Requires(post): update-alternatives
Provides:	cdrecord

%package icedax
Summary:	CD-Audio to .wav converter
Group:		Sound/Utilities
Provides:	cdrecord-cdda2wav
Requires(pre):	rpm-helper
Requires(post): update-alternatives
Requires(postun): rpm-helper
Requires(postun): update-alternatives

%package genisoimage
Group:		Archiving/Cd burning
Provides:	mkisofs
Summary:	Creates an image of an ISO9660 filesystem
Requires(post): update-alternatives
Requires(postun): update-alternatives
Provides: genisoimage

%package isotools
Group:		Archiving/Cd burning
Provides:	cdrecord-isotools
Summary:	Collection of ISO files related tools
Requires(pre):	rpm-helper
Requires(postun): rpm-helper

%description
wodim allows you to create CDs and DVDs on a CD-Recorder or DVD-Recorder
(SCSI/ATAPI). It supports data, audio, mixed, multi-session, CD+, DVD,
DVD-Video discs etc.

%description icedax
icedax reads audio CDs, outputting a wav file.

%description genisoimage
genisoimage is used to create ISO 9660 file system images for creating
CD-ROMs. Now includes support for making bootable "El Torito" CD-ROMs.

%description isotools
This package is a collection of ISO 9660 commands to dump and test images:
isodebug, isodump, isoinfo, isovfy, devdump.

%package -n %libname
Summary: Library to communicate with SCSI devices
Group: Development/C

%description -n %libname
The libusal package contains C libraries that allows applications
to communicate with SCSI devices and is well suitable for writing
CD-R media.

%package -n %devname
Summary: Development files for libusal
Group: Development/C
Requires: %libname = %{version}-%{release}

%description -n %devname
The libusal-devel package contains C libraries and header files
for developing applications that use libusal for communication with
SCSI devices.
 
%prep
%setup -q 
%autopatch -p1

# make sure cmake is used
rm -rf Makefile

%build
%cmake
%cmake_build

%install
perl -pi -e 's!local/bin/perl!bin/perl!' ./doc/icedax/tracknames.pl
%cmake_install

%pre
%_pre_groupadd cdwriter

%postun
%_postun_groupdel cdwriter
if [ "$1" = "0" ]; then
  update-alternatives --remove cdrecord %{_bindir}/wodim
  update-alternatives --remove readcd %{_bindir}/readom
fi

%pre icedax
%_pre_groupadd cdwriter

%post icedax
update-alternatives --install %{_bindir}/cdda2wav cdda2wav %{_bindir}/icedax 10 \
    --slave %_mandir/man1/cdda2wav.1%{_extension} cdda2wav.1%{_extension} %_mandir/man1/icedax.1%{_extension}

%postun icedax
%_postun_groupdel cdwriter
if [ "$1" = "0" ]; then
  update-alternatives --remove cdda2wav %{_bindir}/icedax
fi

%pre isotools
%_pre_groupadd cdwriter

%postun isotools
%_postun_groupdel cdwriter

%post
update-alternatives --install %{_bindir}/cdrecord cdrecord %{_bindir}/wodim 10 \
    --slave %_mandir/man1/cdrecord.1%{_extension} cdrecord.1%{_extension} %_mandir/man1/wodim.1%{_extension}
update-alternatives --install %{_bindir}/readcd readcd %{_bindir}/readom 10 \
    --slave %_mandir/man1/readcd.1%{_extension} readcd.1%{_extension} %_mandir/man1/readom.1%{_extension}

%post genisoimage
update-alternatives --install %{_bindir}/mkisofs mkisofs %{_bindir}/genisoimage 10 \
    --slave %_mandir/man1/mkisofs.1%{_extension} mkisofs.1%{_extension} %_mandir/man1/genisoimage.1%{_extension}
update-alternatives --install %{_bindir}/mkhybrid mkhybrid %{_bindir}/genisoimage 10 \
    --slave %_mandir/man1/mkhybrid.1%{_extension} mkhybrid.1%{_extension} %_mandir/man1/genisoimage.1%{_extension}

%postun genisoimage
if [ "$1" = "0" ]; then
  update-alternatives --remove mkisofs %{_bindir}/genisoimage
  update-alternatives --remove mkhybrid %{_bindir}/genisoimage
fi

%files
%doc FAQ TODO FORK VERSION START ABOUT doc/DOC-OVERVIEW doc/PORTABILITY doc/READMEs doc/WHY doc/plattforms doc/wodim/
%{_bindir}/wodim
%{_bindir}/readom
%{_sbindir}/netscsid
%{_mandir}/man1/wodim.1.*
%{_mandir}/man1/list_audio_tracks.1.*
%{_mandir}/man1/readom.1.*

%files isotools
%{_bindir}/devdump
%{_bindir}/isodebug
%{_bindir}/isodump
%{_bindir}/isoinfo
%{_bindir}/isovfy
%{_mandir}/man1/devdump.1.*
%{_mandir}/man1/isodump.1.*
%{_mandir}/man1/isoinfo.1.*
%{_mandir}/man1/isovfy.1.*
%{_mandir}/man1/isodebug.1.*

%files genisoimage
%{_bindir}/genisoimage
%{_bindir}/dirsplit
%{_mandir}/man1/genisoimage.1.*
%{_mandir}/man5/genisoimagerc.5.*
%{_mandir}/man1/dirsplit.1.*

%files icedax
%{_bindir}/icedax
%{_bindir}/cdda2mp3
%{_bindir}/cdda2ogg
%{_bindir}/pitchplay
%{_bindir}/readmult
%{_mandir}/man1/readmult.1.*
%{_mandir}/man1/cdda2ogg.1.*
%{_mandir}/man1/icedax.1.*
%{_mandir}/man1/pitchplay.1.*

%files -n %libname
%doc doc/plattforms/README.linux Changelog COPYING FAQ FORK START
%{_libdir}/libusal.so.*
%{_libdir}/librols.so.*

%files -n %devname
%doc COPYING
%{_libdir}/libusal.so
%{_libdir}/librols.so
%{_includedir}/usal


%changelog
* Tue Jun 30 2020 joequant <joequant> 1.1.11-15.mga8
+ Revision: 1600646
- bump
- fix gcc10 build

* Fri May 01 2020 wally <wally> 1.1.11-14.mga8
+ Revision: 1577590
- use %%cmake_build and make sure cmake is used like we want

* Fri May 01 2020 ovitters <ovitters> 1.1.11-13.mga8
+ Revision: 1577567
- rebuild to test package builds with cmake_install without a cmake_build

* Wed Feb 12 2020 umeabot <umeabot> 1.1.11-12.mga8
+ Revision: 1511205
- Mageia 8 Mass Rebuild
+ wally <wally>
- replace deprecated %%makeinstall_std

* Sat Sep 22 2018 umeabot <umeabot> 1.1.11-11.mga7
+ Revision: 1296041
- Mageia 7 Mass Rebuild

* Tue Sep 05 2017 tv <tv> 1.1.11-10.mga7
+ Revision: 1151439
- add build fix from FC
- provides genisoimage

* Sun Apr 17 2016 tv <tv> 1.1.11-9.mga6
+ Revision: 1003220
- add patches from FC (efi boot, ...)
- introdce libusal
- use FC fixes for cmake + BR cdparanoia-devel

* Tue Feb 09 2016 umeabot <umeabot> 1.1.11-8.mga6
+ Revision: 952585
- Mageia 6 Mass Rebuild

* Fri Apr 03 2015 luigiwalser <luigiwalser> 1.1.11-7.mga5
+ Revision: 819672
- add missing requires for scriplets

* Wed Oct 15 2014 umeabot <umeabot> 1.1.11-6.mga5
+ Revision: 749683
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 1.1.11-5.mga5
+ Revision: 678341
- Mageia 5 Mass Rebuild

* Fri Oct 18 2013 umeabot <umeabot> 1.1.11-4.mga4
+ Revision: 503309
- Mageia 4 Mass Rebuild

* Fri Jan 11 2013 umeabot <umeabot> 1.1.11-3.mga3
+ Revision: 347538
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Fri Nov 16 2012 zezinho <zezinho> 1.1.11-2.mga3
+ Revision: 318977
- change group
- spec cleanup

* Mon Jan 31 2011 alien <alien> 1.1.11-1.mga1
+ Revision: 45409
- Clean up old cdrecord obsoletes
- Remove BuildRoot
- imported package cdrkit