]> git.pld-linux.org Git - packages/cdrdao.git/blame - cdrdao.spec
- glibc.patch added; stolen from -> http://bugs.gentoo.org/270414
[packages/cdrdao.git] / cdrdao.spec
CommitLineData
f968dc9b 1#
0c90a6ad 2# Conditional build:
edb48fe0 3%bcond_without gnome # don't build gcdmaster
5fc1f28f
PS
4%bcond_without mp3 # without MP3 support
5%bcond_without ogg # without Ogg support
0c90a6ad 6#
256b3456 7Summary: Tools for burning CDRs in Disk At Once mode
95810d61
ER
8Summary(pl.UTF-8): Narzędzia do wypalania płyt w trybie Disk At Once
9Summary(pt_BR.UTF-8): Cdrdao - Escreve CD-Rs de áudio em modo "disk-at-once"
256b3456 10Name: cdrdao
6e84798f 11Version: 1.2.2
76c415b3 12Release: 2
e8e855b8 13License: GPL v2+
8705e3b4 14Group: Applications/System
6e84798f
JR
15Source0: http://dl.sourceforge.net/cdrdao/%{name}-%{version}.tar.bz2
16# Source0-md5: f0cbf36907406cb4f4c568f9e6669a34
9eb39d7b 17Source1: %{name}.desktop
b9b3e393
AM
18# http://cdrdao.sourceforge.net/drives.html#dt
19Source2: %{name}.drivers
e384d826
JB
20Patch0: %{name}-nolibs.patch
21Patch1: %{name}-pccts-antlr.patch
462c5e59 22Patch2: %{name}-gcc4.patch
76c415b3 23Patch3: %{name}-sigc.patch
e2b44308 24Patch4: %{name}-glibc.patch
4fe02a67 25URL: http://cdrdao.sourceforge.net/
8705e3b4 26BuildRequires: autoconf
dc9d9a8e 27BuildRequires: automake
e8e855b8 28BuildRequires: cdrtools-devel >= 3:2.01a25
7a0e7237 29%{?with_gnome:BuildRequires: gtkmm-devel >= 2.4.0}
5fc1f28f
PS
30%{?with_mp3:BuildRequires: lame-libs-devel >= 3.92}
31%if %{with mp3} || %{with ogg}
983d2b91 32BuildRequires: libao-devel >= 0.8
5fc1f28f
PS
33%endif
34%{?with_mp3:BuildRequires: libmad-devel >= 0.15.1b-4}
7a0e7237 35%{?with_gnome:BuildRequires: libgnomeuimm-devel >= 2.6.0}
983d2b91 36BuildRequires: libmad-devel >= 0.15.1b-4
7a0e7237 37%{?with_gnome:BuildRequires: libsigc++-devel >= 2.0.0}
256b3456 38BuildRequires: libstdc++-devel
edb48fe0 39%{?with_ogg:BuildRequires: libvorbis-devel >= 1:1.0}
745b8c6f 40BuildRequires: pccts >= 1.33MR33-8
ba4994ee 41BuildRequires: pkgconfig
edb48fe0 42BuildRequires: rpmbuild(macros) >= 1.311
e384d826 43BuildRequires: sed >= 4.0
256b3456 44BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
46%description
70702a34 47Cdrdao records audio and data CD-Rs in Disk At Once mode. This mode
48gives much better control over contents of CD.
256b3456 49
de5089de
JR
50%description -l pl.UTF-8
51Cdrdao zapisuje płytki audio i z danymi w trybie Disk At Once. W tym
52trybie masz znacznie większą kontrolę nad zawartością płytki.
256b3456 53
de5089de
JR
54%description -l pt_BR.UTF-8
55Escreve CD-Rs de áudio em modo "disk-at-once" (DAO) permitindo
56controle sobre pre-gaps (tamanho reduzido a 0, dados não zerados de
57áudio) e informações de sub-canais como códigos ISRC. Todos os dados
58que são escritos no disco devem ser especificados através de um
59arquivo texto. Dados de áudio também podem estar no formato WAVE ou
dddc7e90 60raw.
61
0c90a6ad
JB
62%package gcdmaster
63Summary: GNOME frontend to cdrdao for composing audio CDs
95810d61 64Summary(pl.UTF-8): Frontend GNOME do cdrdao do składania płyt CD-Audio
0c90a6ad 65Group: X11/Applications
e384d826 66Requires: %{name} = %{version}-%{release}
edb48fe0 67Requires(post,postun): shared-mime-info
0c90a6ad
JB
68
69%description gcdmaster
70gcdmaster allows the creation of toc-files for cdrdao and can control
71the recording process. Its main application is the composition of
72audio CDs from one or more audio files. It supports PQ-channel
73editing, entry of meta data like ISRC codes/CD-TEXT and non
74destructive cut of the audio data.
75
de5089de
JR
76%description gcdmaster -l pl.UTF-8
77gcdmaster pozwala na tworzenie plików toc dla cdrdao oraz może
78kontrolować proces nagrywania. Głównym celem jest składanie płyt
79CD-Audio z jednego lub więcej plików z dźwiękiem. Obsługuje edycję
80kanału PQ, wpisy meta-danych takich jak kody ISRC/CD-TEXT oraz
81niedestruktywne cięcie danych audio.
0c90a6ad 82
256b3456 83%prep
0c90a6ad 84%setup -q
e384d826
JB
85%patch0 -p1
86%patch1 -p1
462c5e59 87%patch2 -p1
76c415b3 88%patch3 -p0
e2b44308 89%patch4 -p1
256b3456 90
e384d826 91sed -i -e 's#/usr/src/linux/include##g' scsilib/DEFAULT*/Defaults.linux
c7e666b4 92%if !%{with gnome}
983d2b91 93sed -i -e 's/^en_xdao=yes$/en_xdao=no/' configure.ac
e8e855b8 94%endif
e384d826
JB
95
96%build
97%{__aclocal}
52aade01 98%{__autoconf}
e384d826
JB
99%{__autoheader}
100%{__automake}
983d2b91 101PKG_CONFIG=%{_bindir}/pkg-config \
0c90a6ad 102%configure \
256b3456 103 --with-pcctsbin=%{_bindir} \
5fc1f28f
PS
104 --with-pcctsinc=%{_libdir}/pccts/h \
105 --with-scglib-inc=%{_includedir}/schily \
106 --with-scglib-lib=%{_libdir} \
107 --with%{!?with_gnome:out}-xdao \
108 --with%{!?with_mp3:out}-mp3-support \
109 --with%{!?with_ogg:out}-ogg-support
0c90a6ad 110
5ee4d1a8 111%{__make} \
112 CC="%{__cc}" \
113 COPTOPT="%{rpmcflags}"
256b3456 114
115%install
116rm -rf $RPM_BUILD_ROOT
326527c9 117install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_datadir}/%{name}}
256b3456 118
021fe1d6 119%{__make} install \
256b3456 120 DESTDIR=$RPM_BUILD_ROOT
121
326527c9 122install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/%{name}/drivers
9eb39d7b 123
f3103b26 124%if %{with gnome}
edb48fe0 125rm -r $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info}
f3103b26 126%endif
edb48fe0 127
256b3456 128%clean
129rm -rf $RPM_BUILD_ROOT
130
edb48fe0
JB
131%post gcdmaster
132%update_mime_database
133
134%postun gcdmaster
135%update_mime_database
136
256b3456 137%files
138%defattr(644,root,root,755)
e8e855b8 139%doc CREDITS README README.PlexDAE
46d90d67 140%attr(755,root,root) %{_bindir}/cdrdao
122ec909 141%attr(755,root,root) %{_bindir}/toc2*
e8e855b8 142%attr(755,root,root) %{_bindir}/cue2toc
326527c9 143%{_datadir}/%{name}
e8e855b8
AF
144%{_mandir}/man1/cdrdao.1*
145%{_mandir}/man1/cue2toc.1*
0c90a6ad 146
e8e855b8 147%if %{with gnome}
0c90a6ad
JB
148%files gcdmaster
149%defattr(644,root,root,755)
46d90d67 150%attr(755,root,root) %{_bindir}/gcdmaster
edb48fe0
JB
151%{_datadir}/gcdmaster
152%{_datadir}/mime/packages/gcdmaster.xml
9eb39d7b 153%{_desktopdir}/gcdmaster.desktop
a1d468c2 154%{_pixmapsdir}/*
edb48fe0 155%{_mandir}/man1/gcdmaster.1*
0c90a6ad 156%endif
This page took 0.084408 seconds and 4 git commands to generate.