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