diff --git a/README.md b/README.md index 8d511aa..81c400e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # fmit +A Free Music Instrument Tuner. + diff --git a/fmit-0.97.7-input_40db.patch b/fmit-0.97.7-input_40db.patch new file mode 100644 index 0000000..d68754d --- /dev/null +++ b/fmit-0.97.7-input_40db.patch @@ -0,0 +1,12 @@ +diff -Nru fmit-0.97.7.orig/ui/ConfigForm.ui fmit-0.97.7/ui/ConfigForm.ui +--- fmit-0.97.7.orig/ui/ConfigForm.ui 2008-02-18 14:44:46.000000000 +0100 ++++ fmit-0.97.7/ui/ConfigForm.ui 2008-02-18 14:44:24.000000000 +0100 +@@ -1579,7 +1579,7 @@ + 0 + + +- -28 ++ -40 + + + Horizontal diff --git a/fmit-0.97.7-jack_autoconnect.patch b/fmit-0.97.7-jack_autoconnect.patch new file mode 100644 index 0000000..022bf2e --- /dev/null +++ b/fmit-0.97.7-jack_autoconnect.patch @@ -0,0 +1,24 @@ +diff -ru fmit-0.97.7.orig/ui/ConfigForm.ui fmit-0.97.7/ui/ConfigForm.ui +--- fmit-0.97.7.orig/ui/ConfigForm.ui 2007-11-18 15:30:55.000000000 +0100 ++++ fmit-0.97.7/ui/ConfigForm.ui 2008-02-18 14:39:59.000000000 +0100 +@@ -499,13 +499,19 @@ + + Connect automaticaly FMIT to the following source at startup (eg. alsa_pcm:capture_1) + ++ ++ true ++ + + + + ui_txtJACKSourcePort + ++ ++ alsa_pcm:capture_1 ++ + +- false ++ true + + + diff --git a/fmit-0.98.1-jackd2.patch b/fmit-0.98.1-jackd2.patch new file mode 100644 index 0000000..2a18218 --- /dev/null +++ b/fmit-0.98.1-jackd2.patch @@ -0,0 +1,11 @@ +diff -Nru fmit-0.98.1-Source.orig//src/CaptureThreadImplJACK.cpp fmit-0.98.1-Source/src/CaptureThreadImplJACK.cpp +--- fmit-0.98.1-Source.orig//src/CaptureThreadImplJACK.cpp 2010-05-17 22:57:39.000000000 +0200 ++++ fmit-0.98.1-Source/src/CaptureThreadImplJACK.cpp 2010-12-15 19:47:31.690038946 +0100 +@@ -164,7 +164,6 @@ + + jack_set_process_callback(m_jack_client, JackProcess, (void*)this); + jack_on_shutdown(m_jack_client, JackShutdown, (void*)this); +- jack_set_error_function(jack_error_callback); + jack_set_sample_rate_callback(m_jack_client, JackSampleRate, (void*)this); + + cerr << "CaptureThread: INFO: JACK: sampling rate=" << jack_get_sample_rate(m_jack_client) << endl; diff --git a/fmit-desktop b/fmit-desktop new file mode 100644 index 0000000..672bd24 --- /dev/null +++ b/fmit-desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Name=fmit +GenericName=A music instrument tuner +GenericName[it]=Accordatore di strumenti musicali +Comment=Music instrument tuner +Exec=fmit +Icon=fmit.png +Categories=Qt;AudioVideo diff --git a/fmit-icon.png b/fmit-icon.png new file mode 100644 index 0000000..872cb4e Binary files /dev/null and b/fmit-icon.png differ diff --git a/fmit.spec b/fmit.spec new file mode 100644 index 0000000..1c5a816 --- /dev/null +++ b/fmit.spec @@ -0,0 +1,90 @@ +Name: fmit +Version: 0.99.2 +Release: 1mamba +Summary: Free Music Instrument Tuner +Group: Graphical Desktop/Applications/Multimedia +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://home.gna.org/fmit +Source: http://download.gna.org/fmit/fmit-%{version}-Source.tar.bz2 +Source1: fmit-desktop +Source2: fmit-icon.png +Patch0: %{name}-0.97.7-jack_autoconnect.patch +Patch1: %{name}-0.97.7-input_40db.patch +Patch2: %{name}-0.98.1-jackd2.patch +License: GPL +BuildRoot: %{_tmppath}/%{name}-%{version}-root +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libalsa-devel +BuildRequires: libfftw-devel +BuildRequires: libgcc +BuildRequires: libGL-devel +BuildRequires: libGLU-devel +BuildRequires: libGLUT-devel +BuildRequires: libICE-devel +BuildRequires: libjack-devel +BuildRequires: libportaudio-devel +BuildRequires: libqt-devel +BuildRequires: libSM-devel +BuildRequires: libstdc++6-devel +BuildRequires: libX11-devel +BuildRequires: libXext-devel +BuildRequires: libXi-devel +BuildRequires: libXmu-devel +BuildRequires: libXt-devel +## AUTOBUILDREQ-END + +%description +A Free Music Instrument Tuner. + +%prep +%setup -q -n fmit-%{version}-Source +#%patch0 -p1 +#%patch1 -p1 +#%patch2 -p1 + +%build +%cmake +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall +install -D -m 0664 %{SOURCE1} %{buildroot}%{_datadir}/applications/fmit.desktop +install -D -m 0664 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/fmit.png +#install -D -m 0755 libs/CppAddons/libCppAddons.so %{buildroot}%{_libdir}/libCppAddons.so +#install -D -m 0755 libs/Music/libMusic.so %{buildroot}%{_libdir}/libMusic.so +#install -D -m 0755 src/modules/libfmit_modules.so %{buildroot}%{_libdir}/libfmit_modules.so +rm -rf %{buildroot}%{_datadir}/mimelnk + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/fmit +#%{_libdir}/libCppAddons.so +#%{_libdir}/libMusic.so +#%{_libdir}/libfmit_modules.so +%lang(de) %{_datadir}/fmit/tr/fmit_de.qm +%lang(fr) %{_datadir}/fmit/tr/fmit_fr.qm +%{_datadir}/applications/fmit.desktop +%{_datadir}/pixmaps/fmit.png +%{_datadir}/icons/hicolor/scalable/apps/fmit.svg +#%{_datadir}/fmit/tr/fmit_fr.qm +%doc README.txt COPYING ChangeLog TODO + +%changelog +* Sun Mar 06 2011 Automatic Build System 0.99.2-1mamba +- automatic update by autodist + +* Wed Dec 15 2010 Silvan Calarco 0.98.1-1mamba +- update to 0.98.1 + +* Mon Feb 18 2008 Silvan Calarco 0.97.7-1mamba +- update to 0.97.7 + +* Fri Oct 26 2007 Silvan Calarco 0.97.6-1mamba +- package created by autospec