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