12b439d
Summary:       Free Music Instrument Tuner
12b439d
Name:          fmit
fe5c58e
Version:       1.1.12
a30039d
Release:       4%{?dist}
d59160d
License:       GPLv2+ and LGPLv2+
12b439d
Group:         Applications/Multimedia
d59160d
URL:           http://gillesdegottex.github.io/fmit/
d59160d
Source0:       https://github.com/gillesdegottex/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
12b439d
d59160d
BuildRequires: libappstream-glib
12b439d
BuildRequires: qt4-devel
12b439d
BuildRequires: freeglut-devel
12b439d
BuildRequires: libXi-devel
12b439d
BuildRequires: libXmu-devel
12b439d
BuildRequires: fftw3-devel
12b439d
BuildRequires: alsa-lib-devel
12b439d
BuildRequires: jack-audio-connection-kit-devel
12b439d
BuildRequires: portaudio-devel
12b439d
BuildRequires: desktop-file-utils
12b439d
12b439d
%global the_icon_file %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
12b439d
12b439d
%description
12b439d
%{name} is a graphical utility for tuning musical instruments, with
12b439d
error and volume history and advanced features like waveform shape,
12b439d
harmonics ratio (formants), and micro-tonal tuning.
12b439d
12b439d
%prep
d59160d
%setup -q
12b439d
# Otherwise an icon is not visible in the menu (at least in GNOME).
d59160d
sed -i 's#^Icon=.*#Icon=%{the_icon_file}#g' distrib/%{name}.desktop
12b439d
12b439d
%build
Rex Dieter ea7c01f
%{qmake_qt4} PREFIX=%{_prefix} CONFIG+="acs_alsa acs_jack acs_portaudio"
d59160d
lrelease-qt4 %{name}.pro
12b439d
make %{?_smp_mflags}
12b439d
12b439d
%install
d59160d
make INSTALL_ROOT=%{buildroot} install
d59160d
# we use svg icon
d59160d
rm -rf %{buildroot}%{_datadir}/icons/hicolor/128x128
d59160d
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/*.appdata.xml
12b439d
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
a9870c2
mkdir -p %{buildroot}%{_datadir}/%{name}/tr/
d59160d
cp -a tr/*.qm %{buildroot}%{_datadir}/%{name}/tr/
d59160d
rm -f %{buildroot}%{_datadir}/%{name}/tr/*.ts
12b439d
%find_lang %{name} --with-qt --without-mo
12b439d
12b439d
%files -f %{name}.lang
d59160d
%license COPYING_GPL.txt COPYING_LGPL.txt
d59160d
%doc INSTALL.txt README.txt
12b439d
%dir %{_datadir}/%{name}
12b439d
%dir %{_datadir}/%{name}/tr
d59160d
%dir %{_datadir}/%{name}/scales
d59160d
%{_datadir}/%{name}/scales/*.scl
12b439d
%{_bindir}/%{name}
12b439d
%{_datadir}/applications/%{name}.desktop
Richard Hughes 26fb66e
%{_datadir}/appdata/%{name}.appdata.xml
12b439d
%{the_icon_file}
12b439d
12b439d
%changelog
a30039d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.12-4
a30039d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a30039d
da5266e
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.12-3
da5266e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
da5266e
1b9e255
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.12-2
1b9e255
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1b9e255
fe5c58e
* Tue Jun 13 2017 Damian Wrobel <dwrobel@ertelnet.rybnik.pl> - 1.1.12-1
fe5c58e
- Update to the latest available version.
fe5c58e
1763976
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.8-3
1763976
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
1763976
5b74d06
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.8-2
5b74d06
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5b74d06
a9870c2
* Thu Aug 18 2016 Damian Wrobel <dwrobel@ertelnet.rybnik.pl> - 1.1.8-5
a9870c2
- Update to the latest available version.
a9870c2
8d07e44
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.12-4
8d07e44
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8d07e44
Rex Dieter ea7c01f
* Sat Jan 30 2016 Rex Dieter <rdieter@fedoraproject.org> 1.0.12-3
Rex Dieter ea7c01f
- use %%{qmake_qt4} macro to ensure proper build flags (#1303288)
Rex Dieter ea7c01f
d4ae687
* Mon Jan 25 2016 Damian Wrobel <dwrobel@ertelnet.rybnik.pl> - 1.0.12-2
d4ae687
- Enable also ALSA, JACK and PortAudio backends.
d4ae687
d59160d
* Wed Nov 11 2015 Damian Wrobel <dwrobel@ertelnet.rybnik.pl> - 1.0.12-1
d59160d
- Update to the latest available version, rhbz#1239505.
d59160d
79c7a3f
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.5-4
79c7a3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
79c7a3f
d48bd4d
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.5-3
d48bd4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
d48bd4d
dfb3ce7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.5-2
dfb3ce7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
dfb3ce7
Richard Hughes 224e2ee
* Fri May 30 2014 Richard Hughes <richard@hughsie.com> - 0.99.5-1
Richard Hughes 224e2ee
- Rebuilt for new upstream version 0.99.5
Richard Hughes 224e2ee
Richard Hughes 26fb66e
* Fri May 30 2014 Richard Hughes <richard@hughsie.com> - 0.99.4-1
Richard Hughes 26fb66e
- Rebuilt for new upstream version 0.99.4
Richard Hughes 26fb66e
baeb5b4
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.2-6
baeb5b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
baeb5b4
c8f4c80
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.2-5
c8f4c80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c8f4c80
f733ff6
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.2-4
f733ff6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f733ff6
9aa9848
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.2-3
9aa9848
- Rebuilt for c++ ABI breakage
9aa9848
95ead7e
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.2-2
95ead7e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
95ead7e
12b439d
* Sat Jan 27 2011 Damian Wrobel <dwrobel@ertelnet.rybnik.pl> - 0.99.2-1
12b439d
- update to the 0.99.2 version,
12b439d
- drop patches now upstream,
12b439d
- translation's files installation enabled.
12b439d
12b439d
* Mon Jan 17 2011 Damian Wrobel <dwrobel@ertelnet.rybnik.pl> - 0.98.1-4
12b439d
- preserve the timestamp of the icon file.
12b439d
12b439d
* Wed Dec 30 2010 Damian Wrobel <dwrobel@ertelnet.rybnik.pl> - 0.98.1-3
12b439d
- build process does not depend on the BUILD_SHARED_LIBS variable.
12b439d
12b439d
* Mon Dec 28 2010 Damian Wrobel <dwrobel@ertelnet.rybnik.pl> - 0.98.1-2
12b439d
- build corrected.
12b439d
- translation's files installation disabled until fixed upstream.
12b439d
12b439d
* Mon Dec 28 2010 Damian Wrobel <dwrobel@ertelnet.rybnik.pl> - 0.98.1-1
12b439d
- initial RPM release.