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