File fmit.spec of Package fmit
# spec file for fmit (version 0.97.6)
Name: fmit
Summary: Free Music Instrument Tuner
Version: 0.99.2
Release: 0
Group: Productivity/Multimedia/Sound/Utilities
BuildRequires: alsa-devel cmake freeglut-devel fftw3-devel jack-devel portaudio portaudio-devel libqt4-devel update-desktop-files
Requires: alsa jack fftw3 freeglut
Source: %{name}-%{version}.tar.bz2
License: GNU General Public License (GPL)
URL: http://home.gna.org/fmit/index.html
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Instrument Tuner with following features: Error history, Volume history, Wave shape, Harmonic ratios, Statistics, Microtonal tuning (with Scala file support), Discrete Fourier Transform view. JACK, OSS, ALSA, Portaudio support.
Author: Gilles Degottex <gilles.degottex@gmail.com>
%debug_package
%prep
%setup -n %{name}-%{version}-Source
%build
#CFLAGS="$RPM_OPT_FLAGS" \
#./configure --prefix=%{_prefix} \
# --libdir=%{_libdir} \
# --with-x \
# --enable-Mesa \
# --enable-alsa \
# --enable-jack
mkdir -p build
cd build
cmake -DSOUNDSYSTEM_USE_PORTAUDIO=ON -DCMAKE_INSTALL_PREFIX=/usr ..
make
%install
cd build
%makeinstall
%suse_update_desktop_file -i fmit Audio AudioVideo Music
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc ChangeLog COPYING README.txt TODO
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/icons/*
%{_datadir}/applications/*.desktop
%changelog -n fmit