]> git.pld-linux.org Git - packages/audacity.git/blob - audacity.spec
- one more config.sub
[packages/audacity.git] / audacity.spec
1 #
2 # Conditional build:
3 %bcond_with     gtk1    # use wxGTK instead of wxGTK2
4 #
5 Summary:        Audacity - manipulate digital audio waveforms
6 Summary(pl):    Audacity - narzêdzie do obróbki plików d¼wiêkowych
7 Summary(ru):    Êðîññïëàòôîðìåííûé çâóêîâîé ðåäàêòîð
8 Name:           audacity
9 Version:        1.2.3
10 Release:        1
11 License:        GPL
12 Vendor:         Dominic Mazzoni <dominic@minorninth.com>
13 Group:          X11/Applications/Sound
14 Source0:        http://dl.sourceforge.net/audacity/%{name}-src-%{version}.tar.gz
15 # Source0-md5:  dbfc1b401420aa694753d35acb5a8a28
16 Source1:        %{name}.desktop
17 Source2:        %{name}-icon.png
18 Patch0:         %{name}-system-expat.patch
19 Patch1:         %{name}-not_require_lame-libs-devel.patch
20 Patch2:         %{name}-opt.patch
21 URL:            http://audacity.sourceforge.net/
22 BuildRequires:  autoconf
23 BuildRequires:  expat-devel
24 BuildRequires:  fftw-devel >= 2.1.4
25 BuildRequires:  flac-devel
26 BuildRequires:  gettext-devel
27 BuildRequires:  libid3tag-devel >= 0.15.0b-2
28 BuildRequires:  libjpeg-devel
29 BuildRequires:  libmad-devel >= 0.14.2b-4
30 BuildRequires:  libsamplerate-devel
31 BuildRequires:  libsndfile-devel
32 BuildRequires:  libstdc++-devel
33 BuildRequires:  libvorbis-devel >= 1:1.0
34 %{?with_gtk1:BuildRequires:     wxGTK-devel >= 2.4.0}
35 %{?!with_gtk1:BuildRequires:    wxGTK2-devel >= 2.4.0}
36 BuildRequires:  zip
37 Requires:       lame-libs
38 Requires:       libid3tag >= 0.15.0b-2
39 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41 %description
42 Audacity is a program that lets you manipulate digital audio
43 waveforms. It imports many sound file formats, including WAV, AIFF,
44 AU, IRCAM, MP3, and Ogg Vorbis. It supports all common editing
45 operations such as Cut, Copy, and Paste, plus it will mix tracks and
46 let you apply plug-in effects to any part of a sound.
47
48 %description -l pl
49 Audacity to program obs³uguj±cy ró¿ne formaty plików audio. Obs³uguje
50 WAV, AIFF, AU, IRCAM, MP3, oraz Ogg Vorbis. Program ten umo¿liwia
51 wykonywanie podstawowych czynno¶ci edycyjnych takich jak kasowanie,
52 wstawianie i miksowanie ¶cie¿ki d¼wiêkowej. Umo¿liwia tak¿e
53 wykonywanie dowolnych innych operacji poprzez system wtyczek.
54
55 %description -l ru
56 Audacity - ýòî çâóêîâîé ðåäàêòîð, ïîçâîëÿþùèé ðàáîòàòü ñ ôàéëàìè â
57 ôîðìàòàõ WAV, AIFF, AU, IRCAM, MP3 è Ogg Vorbis. Â íåì ðåàëèçîâàíû âñå
58 îñíîâíûå îïåðàöèè, òàêèå êàê óäàëåíèå, êîïèðîâàíèå, âñòàâêà,
59 ìèêøèðîâàíèå òðåêîâ è ïðèìåíåíèå ýôôåêòîâ, îôîðìëåííûõ â âèäå
60 ïëàãèíîâ, ê ëþáîé ÷àñòè çâóêîâîãî ôàéëà.
61
62 %prep
63 %setup -q -n %{name}-src-%{version}
64 %patch0 -p1
65 %patch1 -p1
66 %patch2 -p1
67
68 %build
69 cp -f /usr/share/automake/config.sub .
70 cp -f /usr/share/automake/config.sub lib-src/soundtouch/config
71 %{__autoconf}
72 export WX_CONFIG="`which wxgtk%{!?_with_gtk1:2}-2.4-config`"
73 %configure \
74         --with-help \
75         --with-id3tag=system \
76         --with-libmad=system \
77         --with-libsamplerate=system \
78         --with-libsndfile=system \
79         --with-libflac=system \
80         --with-vorbis=system
81
82 %{__make} \
83         CCC="%{__cxx} -fno-rtti" \
84         OPTFLAGS="%{rpmcflags}"
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
89
90 %{__make} install \
91         DESTDIR=$RPM_BUILD_ROOT \
92         INSTALL_PATH=$RPM_BUILD_ROOT
93
94 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
95 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
96
97 %find_lang %{name}
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %files -f %{name}.lang
103 %defattr(644,root,root,755)
104 %doc README.txt
105 %attr(755,root,root) %{_bindir}/audacity
106 %{_datadir}/%{name}
107 %{_mandir}/man1/*.1*
108 %{_desktopdir}/*
109 %{_pixmapsdir}/*
This page took 0.25565 seconds and 4 git commands to generate.