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