%define name gwc %define gwc_version 0.21 %define gwc_subversion 08 %define release %mkrel 3 Name: %{name} Version: %{gwc_version}.%{gwc_subversion} Release: %{release} Summary: Audio restoration application License: GPL Group: Sound URL: http://gwc.sourceforge.net/ Source0: http://downloads.sourceforge.net/gwc/%{name}-%{gwc_version}-%{gwc_subversion}.tar.bz2 Source1: %{name}_16.png Source2: %{name}_32.png Source3: %{name}_48.png Patch0: %{name}-0.21.08-fix-makefiles.patch BuildRequires: fftw-devel BuildRequires: sndfile-devel BuildRequires: db1-devel BuildRequires: gnomeui2-devel BuildRoot: %{_tmppath}/%{name}-%{version} %description Gnome Wave Cleaner (GWC), is a tool for cleaning up noisey audio files, in preparation for burning to CD's. The typical application is to record the audio from vinyl LP's, 45's, 78's, etc to a hard disk as a 16bit,stereo,44.1khz wave formated file, and the use GWC to apply denoising and declicking algorithms. %prep %setup -q -n %{name}-%{gwc_version}-%{gwc_subversion} %patch0 -p 1 %build %configure2_5x %make %install rm -rf %{buildroot} %makeinstall_std mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/applications # Icons mkdir -p ${RPM_BUILD_ROOT}{%_miconsdir,%_iconsdir,%_liconsdir} install -m644 %{SOURCE1} -D %{buildroot}%{_miconsdir}/%{name}.png install -m644 %{SOURCE2} -D %{buildroot}%{_iconsdir}/%{name}.png install -m644 %{SOURCE3} -D %{buildroot}%{_liconsdir}/%{name}.png # Menus cat > ${RPM_BUILD_ROOT}%{_datadir}/applications/mandriva-%{name}.desktop << EOF [Desktop Entry] Name=GWC GenericName=Gnome Wave Cleaner GenericName[nl]=Gnome Audio Restauratie Gereedschap Comment=Dehiss, denoise and declick WAV audio files Comment[nl]=Ontruisen en 'declicken' van WAV audio bestanden Exec=%{_bindir}/%{name} Icon=%{name} Terminal=false Type=Application StartupNotify=true Encoding=UTF-8 Categories=AudioVideo;Audio;AudioVideoEditing; MimeType=audio/x-wav; EOF %if %mdkversion < 200900 %post %update_menus %endif %if %mdkversion < 200900 %postun %clean_menus %endif %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc README COPYING Changelog %doc %dir %{_datadir}/gnome/help/%{name} %doc %dir %{_datadir}/gnome/help/%{name}/C %doc %{_datadir}/gnome/help/%{name}/C/* %{_bindir}/%{name} %{_iconsdir}/gwc.png %{_miconsdir}/gwc.png %{_liconsdir}/gwc.png %{_datadir}/pixmaps/gwc-logo.png %{_datadir}/applications/mandriva-%{name}.desktop %changelog * Fri Sep 04 2009 Thierry Vignaud <tvignaud@mandriva.com> 0.21.08-3mdv2010.0 + Revision: 429348 - rebuild * Thu Aug 07 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.21.08-2mdv2009.0 + Revision: 267037 - rebuild early 2009.0 package (before pixel changes) + Pixel <pixel@mandriva.com> - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas * Sun Jun 01 2008 Guillaume Rousse <guillomovitch@mandriva.org> 0.21.08-1mdv2009.0 + Revision: 214053 - import gwc * Sat May 31 2008 Guillaume Rousse <guillomovitch@mandriva.org> 0.21.08-1mdv2009.0 - contributed by Maxim Heijndijk <macchus at gmail dot com>