Name: gnaural Version: 1.0.20080808 Release: 4%{?dist} Summary: A multi-platform programmable binaural-beat generator Group: Applications/Multimedia License: GPLv2+ URL: http://gnaural.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gtk2-devel, libglade2-devel, libsndfile-devel BuildRequires: portaudio-devel BuildRequires: desktop-file-utils Requires: hicolor-icon-theme %description Gnaural is a multi-platform programmable binaural-beat generator. It is actually brainwave entrainment software for creating binaural beats intended to be used as personal brainwave synchronization software, for scientific research, or by professionals. Gnaural allows for the creation of binaural beat tracks specifying different frequencies and exporting tracks into different audio formats. Gnaural runnings can also be linked over the internet, allowing synchronous sessions between many users. %prep %setup -q -n %{name}-%{version} %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install INSTALL="install -p" DESTDIR=$RPM_BUILD_ROOT install -p -dm 755 $RPM_BUILD_ROOT/%{_datadir}/pixmaps install -p -dm 755 $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps install -p -m 644 pixmaps/%{name}-icon.xpm \ $RPM_BUILD_ROOT/%{_datadir}/pixmaps install -p -m 644 pixmaps/%{name}-icon.png \ $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps install -p -dm 755 $RPM_BUILD_ROOT/%{_datadir}/applications sed -i -e 's|^Categories=.*$|Categories=Application;AudioVideo;AudioVideoEditing;|g' \ -e 's|^Encoding=UTF-8$||g' \ -e 's|^GenericName=Audio binaural beat editor/generator$||g' \ -e 's|^Icon=.*$|Icon=%{name}-icon|g' \ $RPM_BUILD_ROOT/%{_datadir}/gnome/apps/Multimedia/%{name}.desktop desktop-file-install \ --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ $RPM_BUILD_ROOT%{_datadir}/gnome/apps/Multimedia/%{name}.desktop rm -r $RPM_BUILD_ROOT%{_datadir}/gnome %clean rm -rf $RPM_BUILD_ROOT %post touch --no-create %{_datadir}/icons/hicolor if [ -x %{_bindir}/gtk-update-icon-cache ] ; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi %postun touch --no-create %{_datadir}/icons/hicolor if [ -x %{_bindir}/gtk-update-icon-cache ] ; then %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : fi %files %defattr(-,root,root,-) %doc AUTHORS COPYING ChangeLog NEWS README %{_bindir}/%{name} %dir %{_datadir}/%{name} %{_datadir}/%{name}/%{name}.glade %dir %{_datadir}/%{name}/pixmaps %{_datadir}/%{name}/pixmaps/%{name}-icon.* %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}-icon.xpm %{_datadir}/icons/hicolor/48x48/apps/%{name}-icon.png %changelog * Sun Jan 04 2009 Rakesh Pandit 1.0.20080808-4 - Fixed missing -p for install command. * Sun Jan 04 2009 Rakesh Pandit 1.0.20080808-3 - Removed fedora as vendor - as per new guidelines. * Sun Jan 04 2009 Rakesh Pandit 1.0.20080808-2 - Fixed %%version, %%description, timestamp, fixed icon path, - removed useless buildrequires, fixed .desktop file installation * Sat Dec 06 2008 Rakesh Pandit 1.0-1.20080808 - Initial build