]> git.pld-linux.org Git - packages/cdrdao.git/blob - cdrdao.spec
ca1e68d79e006e9c11b674023a58e77f0d1903b5
[packages/cdrdao.git] / cdrdao.spec
1 #
2 # Conditional build:
3 %bcond_without  gnome   # without gcdmaster
4 #
5 Summary:        Tools for burning CDRs in Disk At Once mode
6 Summary(pl):    Narzêdzia do wypalania p³yt w trybie Disk At Once
7 Summary(pt_BR): Cdrdao - Escreve CD-Rs de áudio em modo "disk-at-once"
8 Name:           cdrdao
9 Version:        1.1.8
10 Release:        1
11 License:        GPL v2+
12 Group:          Applications/System
13 Source0:        http://dl.sourceforge.net/cdrdao/%{name}-%{version}.tar.gz
14 # Source0-md5:  10cfd445fa628fb32dacf02e555fdbba
15 Source1:        %{name}.desktop
16 Source2:        http://cdrdao.sourceforge.net/cdrdao-1.1.5.drivers
17 # Source2-md5:  36921e93683e10103d2f88b2a2411fe8
18 Patch0:         %{name}-nolibs.patch
19 Patch1:         %{name}-pccts-antlr.patch
20 URL:            http://cdrdao.sourceforge.net/
21 BuildRequires:  autoconf
22 BuildRequires:  automake
23 BuildRequires:  cdrtools-devel >= 3:2.01a25
24 %{?with_gnome:BuildRequires:    libgnomeuimm-devel >= 2.0.0}
25 %{?with_gnome:BuildRequires:    gtkmm-devel >= 2.2.8}
26 BuildRequires:  lame-libs-devel >= 3.92
27 BuildRequires:  libstdc++-devel
28 BuildRequires:  pccts >= 1.33MR33-8
29 BuildRequires:  sed >= 4.0
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 Cdrdao records audio and data CD-Rs in Disk At Once mode. This mode
34 gives much better control over contents of CD.
35
36 %description -l pl
37 Cdrdao zapisuje p³ytki audio i z danymi w trybie Disk At Once. W tym
38 trybie masz znacznie wiêksz± kontrolê nad zawarto¶ci± p³ytki.
39
40 %description -l pt_BR
41 Escreve CD-Rs de áudio em modo "disk-at-once" (DAO) permitindo
42 controle sobre pre-gaps (tamanho reduzido a 0, dados não zerados de
43 áudio) e informações de sub-canais como códigos ISRC. Todos os dados
44 que são escritos no disco devem ser especificados através de um
45 arquivo texto. Dados de áudio também podem estar no formato WAVE ou
46 raw.
47
48 %package gcdmaster
49 Summary:        GNOME frontend to cdrdao for composing audio CDs
50 Summary(pl):    Frontend GNOME do cdrdao do sk³adania p³yt CD-Audio
51 Group:          X11/Applications
52 Requires:       %{name} = %{version}-%{release}
53
54 %description gcdmaster
55 gcdmaster allows the creation of toc-files for cdrdao and can control
56 the recording process. Its main application is the composition of
57 audio CDs from one or more audio files. It supports PQ-channel
58 editing, entry of meta data like ISRC codes/CD-TEXT and non
59 destructive cut of the audio data.
60
61 %description gcdmaster -l pl
62 gcdmaster pozwala na tworzenie plików toc dla cdrdao oraz mo¿e
63 kontrolowaæ proces nagrywania. G³ównym celem jest sk³adanie p³yt
64 CD-Audio z jednego lub wiêcej plików z d¼wiêkiem. Obs³uguje edycjê
65 kana³u PQ, wpisy meta-danych takich jak kody ISRC/CD-TEXT oraz
66 niedestruktywne ciêcie danych audio.
67
68 %prep
69 %setup -q
70 %patch0 -p1
71 %patch1 -p1
72
73 sed -i -e 's#/usr/src/linux/include##g' scsilib/DEFAULT*/Defaults.linux
74 %if %{without gnome}
75 sed -i -e 's/^en_xdao=yes$/en_xdao=no/' configure.in
76 %endif
77
78 %build
79 %{__aclocal}
80 %{__autoconf}
81 %{__autoheader}
82 %{__automake}
83 %configure \
84         --with-pcctsbin=%{_bindir} \
85         --with-pcctsinc=/usr/lib/pccts/h \
86         --with-scglib-inc=/usr/include/schily \
87         --with-scglib-lib=/usr/lib 
88
89 %{__make}
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_datadir}/%{name}}
94
95 %{__make} install \
96         DESTDIR=$RPM_BUILD_ROOT
97
98 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/gcdmaster.desktop
99 install xdao/stock/gcdmaster.png $RPM_BUILD_ROOT%{_pixmapsdir}
100 install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/%{name}/drivers
101
102 %clean
103 rm -rf $RPM_BUILD_ROOT
104
105 %files
106 %defattr(644,root,root,755)
107 %doc CREDITS README README.PlexDAE 
108 %attr(755,root,root) %{_bindir}/cdrdao
109 %attr(755,root,root) %{_bindir}/toc2*
110 %attr(755,root,root) %{_bindir}/cue2toc
111 %{_datadir}/%{name}
112 %{_mandir}/man1/cdrdao.1*
113 %{_mandir}/man1/cue2toc.1*
114
115 %if %{with gnome}
116 %files gcdmaster
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_bindir}/gcdmaster
119 %{_desktopdir}/gcdmaster.desktop
120 %{_pixmapsdir}/*
121 %{_mandir}/man1/gcdmaster.*
122 %endif
This page took 0.123982 seconds and 2 git commands to generate.