Summary:	A Free, Cross-Platform Digital Audio Editor
Summary(ja): 	フリーでクロスプラットフォームなオーディオエディタ
Name:		audacity
Version:	2.2.2
Release: 	1%{?_dist_release}
# https://www.fosshub.com/Audacity.html
Source0:	audacity-minsrc-%{version}.tar.xz
License:	GPL
Group:		Applications/Multimedia
URL:		https://www.audacityteam.org/
Vendor:		Project Vine
Distribution:	Vine Linux


BuildRequires: wxGTK3-devel
#BuildRequires:	libmad-devel
BuildRequires: libsndfile-devel, libogg-devel
BuildRequires: flac-devel, libid3tag-devel, expat-devel
BuildRequires: libsamplerate-devel, libvorbis-devel
BuildRequires: soundtouch-devel
BuildRequires: alsa-lib-devel
BuildRequires: cmake
BuildRoot:	%{_tmppath}/%{name}-%{version}-root


%description
Audacity is a free, easy-to-use audio editor and recorder for 
Windows, Mac OS X, GNU/Linux, and other operating systems. 
You can use Audacity to:

    * Record live audio.
    * Convert tapes and records into digital recordings or CDs.
    * Edit Ogg Vorbis, MP3, and WAV sound files.
    * Cut, copy, splice, and mix sounds together.
    * Change the speed or pitch of a recording.
    * And more! See the complete list on official web page.

%description -l ja
Audacityは、Windows、Mac OS X、GNU/Linux、その他のオペレーティング
システム上で動作する、フリーで使いやすいオーディオエディタ兼レコー
ダーです。あなたはAudacityを次のように使うことができます。

    * 生の音を録音。
    * テープやレコードの音をデジタルレコーディング又はCDの音に変換。
    * Ogg Vorbis、MP3、 WAVサウンドファイルの編集。
    * 切り取り、コピー、分割、そして音をミックス。
    * 録音した音のスピードやピッチを変化させます。
    * その他いろいろ。詳細はウェブページをご覧ください。


%prep
%setup -q -n %{name}-minsrc-%{version}-rc1


%build
%configure --with-wx-config=%{_bindir}/wx-config-3.0 \
           --without-libmad \
           --without-ffmpeg \
           --enable-dynamic-loading
%{__make} %{?_smp_mflags}


%install
%{__rm} -rf ${RPM_BUILD_ROOT}
%{__make} install DESTDIR=${RPM_BUILD_ROOT}

# remove duplicated documents.
%{__rm} -rf ${RPM_BUILD_ROOT}/%{_datadir}/doc/audacity/LICENSE.txt
%{__rm} -rf ${RPM_BUILD_ROOT}/%{_datadir}/doc/audacity/README.txt

%find_lang %{name}


%clean
%{__rm} -rf ${RPM_BUILD_ROOT}


%files -f %{name}.lang
%defattr(-,root,root)
%license LICENSE*
%doc README*
%{_bindir}/audacity
%{_datadir}/audacity
%{_datadir}/applications/audacity.desktop
%{_datadir}/icons/hicolor/16x16/apps/audacity.png
%{_datadir}/icons/hicolor/22x22/apps/audacity.png
%{_datadir}/icons/hicolor/24x24/apps/audacity.png
%{_datadir}/icons/hicolor/32x32/apps/audacity.png
%{_datadir}/icons/hicolor/48x48/apps/audacity.png
%{_datadir}/icons/hicolor/scalable/apps/audacity.svg
%{_datadir}/mime/packages/audacity.xml
%{_datadir}/appdata/audacity.appdata.xml
%{_datadir}/pixmaps/audacity.xpm
%{_datadir}/pixmaps/audacity16.xpm
%{_datadir}/pixmaps/audacity32.xpm
%{_datadir}/pixmaps/gnome-mime-application-x-audacity-project.xpm
%{_mandir}/man1/audacity.1*

%changelog
* Sun Oct 06 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.2.2-1
- new usprtream release.
- 2.2.2 is not newest (2.3.x requires wxGTK-3.1.x (not stable)).

* Sun Jul 10 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.1.2-2
- build with new toolchain.

* Tue May 24 2016 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.1.2-1
- new usprtream release
- changed BuildRequires: wxGTK-devel to wxGTK3-devel
- fixed %%files

* Thu May 05 2016 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.0.5-3
- rebuilt with soundtouch-1.9.2

* Sun May 04 2014 Toshiahru Kudoh <toshi.kd2@gmail.com> - 2.0.5-2
- rebuilt with new toolchain

* Sun Jan 12 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.0.5-1
- new usprtream release

* Sun Sep 15 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.0.4-1
- new usprtream release

* Sat Feb 09 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.0.3-1
- new usprtream release
- changed source archive type to xz
- added BuildRequires: cmake

* Sat Aug 25 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.0.2-1
- new usprtream release

* Wed Jul 11 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.0.0-2
- changed BuildRequires: wx-gtk2-devel to wxGTK-devel

* Fri Jun 08 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.0.0-1
- new usprtream release
- added BuildRequires: soundtouch-devel

* Tue Feb 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.3.14-1.beta1
- new upstream release

* Thu May 20 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.3.12-1.beta1
- new upstream release
- spec in utf-8
- add configure option --without-libmad & --without-ffmpeg (nonfree)
- drop BuildRequires: libmad-devel (nonfree)
- add BuildRequires: expat-devel, libsamplerate-devel, libvorbis-devel

* Wed Jan  2 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.3.4-0vl0.0beta1
- new upstream release.
- build with wx-gtk2-2.8.6.
- drop patch0.

* Tue May 29 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.3.3-0vl0.0beta1
- initial build for Vine Linux