#this is to prevent empty debuginfo failur
%global debug_package %{nil}
Name: monobristol
Version: 0.60.3.1
Release: 1%{?dist}
Summary: GUI launcher for Bristol in Mono
Group: Applications/Multimedia
License: GPL+
URL: http://www.dacr.hu/monobristol/
Source: http://www.dacr.hu/monobristol/%{name}-%{version}.tar.gz
# No upstrem bugtracker. Patch emailed upstream 20120626
# The patch removes shebang from the top and removes .png extension from icon key
Patch1: %{name}-0.60.3-desktop.patch
Requires: bristol
Requires: mono-core
Requires: hicolor-icon-theme
BuildRequires: gtk-sharp2-devel
BuildRequires: desktop-file-utils
ExclusiveArch: %{mono_arches}
%description
monoBristol is very simple Gui for Bristol Synthesiser.
Bristol is an emulation package for a number of different 'classic'
synthesizers including additive and subtractive and a few organs.
%prep
%setup -q
%patch1 -p1
%build
%configure
make %{?_smp_mflags}
%install
#removal of buildroot is no longer necassary, except for EPEL5
make install DESTDIR=%{buildroot}
# install the AppData file
%__mkdir_p %{buildroot}%{_datadir}/appdata
cp monoBristol.appdata.xml %{buildroot}%{_datadir}/appdata/
#install the icon
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
mv %{name}.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
desktop-file-install \
--dir %{buildroot}%{_datadir}/applications \
monoBristol.desktop
%post
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun
if [$1 -eq 0 ] ; then
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
fi
%posttrans
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
%files
%doc AUTHORS COPYING README
%{_bindir}/%{name}
%{_datadir}/applications/monoBristol.desktop
%{_libdir}/%{name}/
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%{_datadir}/appdata/monoBristol.appdata.xml
%changelog
* Thu May 29 2014 Richard Hughes <richard@hughsie.com> - 0.60.3.1-1
- New upstream release
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.60.3-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.60.3-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Fri Jul 20 2012 Dan Horák <dan[at]danny.cz> 0.60.3-9
- set ExclusiveArch
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.60.3-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sat Jun 30 2012 Jørn Lomax <northlomax@gmail.com> 0.60.3-7
- fixed spelling error
* Thu Jun 28 2012 Jørn Lomax <northlomax@gmail.com> 0.60.3-6
- Changed licence and fixed ownerships
* Wed Jun 27 2012 Jørn Lomax <northlomax@gmail.com> 0.60.3-5
- Added installation of icon and spelling
- removed unused dependencies
* Tue Jun 26 2012 Jørn Lomax <northlomax@gmail.com> 0.60.3-4
- removed no arch and disabled empty debug warning
- fixed directories in files
* Thu Jun 21 2012 Jørn Lomax <northlomax@gmail.com> 0.60.3-3
- Clean up some more, change to added archbuild and quieted setup
* Thu Jun 21 2012 Brendan Jones <brendan.jones.it@gmail.com> 0.60.3-2
- clean up package, correct files
* Mon Jun 18 2012 Jørn Lomax <northlomax@gmail.com> 0.60.3-1
- inital package