Philip Withnall c011118
# https://fedoraproject.org/wiki/Packaging:Haskell
Philip Withnall c011118
Philip Withnall c011118
%global pkg_name bustle
Philip Withnall c011118
Philip Withnall c011118
Name:           bustle
5d37945
Version:        0.4.8
03c18bd
Release:        3%{?dist}
Philip Withnall c011118
Summary:        Draw pretty sequence diagrams of D-Bus traffic
Philip Withnall c011118
Philip Withnall c011118
License:        LGPLv2+
07db642
Url:            https://hackage.haskell.org/package/%{name}
07db642
Source0:        https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
Philip Withnall c011118
Philip Withnall c011118
Requires:       gnome-icon-theme
Philip Withnall c011118
BuildRequires:  intltool
Philip Withnall c011118
BuildRequires:  help2man
Philip Withnall c011118
BuildRequires:  ghc-Cabal-devel
Philip Withnall c011118
BuildRequires:  ghc-rpm-macros
Philip Withnall c011118
BuildRequires:  desktop-file-utils
Philip Withnall c011118
# Begin cabal-rpm deps:
Philip Withnall c011118
BuildRequires:  ghc-bytestring-devel
Philip Withnall c011118
BuildRequires:  ghc-cairo-devel
Philip Withnall c011118
BuildRequires:  ghc-containers-devel
Philip Withnall c011118
BuildRequires:  ghc-dbus-devel
Philip Withnall c011118
BuildRequires:  ghc-directory-devel
Philip Withnall c011118
BuildRequires:  ghc-filepath-devel
Philip Withnall c011118
BuildRequires:  ghc-glib-devel
Philip Withnall c011118
BuildRequires:  ghc-gtk-devel
Philip Withnall c011118
BuildRequires:  ghc-hgettext-devel
Philip Withnall c011118
BuildRequires:  ghc-mtl-devel
Philip Withnall c011118
BuildRequires:  ghc-pango-devel
Philip Withnall c011118
BuildRequires:  ghc-parsec-devel
Philip Withnall c011118
BuildRequires:  ghc-pcap-devel
Philip Withnall c011118
BuildRequires:  ghc-process-devel
Philip Withnall c011118
BuildRequires:  ghc-setlocale-devel
Philip Withnall c011118
BuildRequires:  ghc-text-devel
Philip Withnall c011118
BuildRequires:  ghc-time-devel
Philip Withnall c011118
BuildRequires:  pkgconfig(glib-2.0)
Philip Withnall c011118
%if %{with tests}
Philip Withnall c011118
BuildRequires:  ghc-HUnit-devel
Philip Withnall c011118
BuildRequires:  ghc-QuickCheck-devel
Philip Withnall c011118
BuildRequires:  ghc-test-framework-devel
Philip Withnall c011118
BuildRequires:  ghc-test-framework-hunit-devel
Philip Withnall c011118
%endif
Philip Withnall c011118
# End cabal-rpm deps
Philip Withnall c011118
Philip Withnall c011118
%description
Philip Withnall c011118
Bustle is a better dbus-monitor!
Philip Withnall c011118
Philip Withnall c011118
It records and draws sequence diagrams of D-Bus activity, showing
Philip Withnall c011118
signal emissions, method calls and their corresponding returns, with
Philip Withnall c011118
timestamps for each individual event and the duration of each method
Philip Withnall c011118
call. This can help you check for unwanted D-Bus traffic, and pinpoint
Philip Withnall c011118
why your D-Bus-based application isn't performing as well as you like.
Philip Withnall c011118
It also provides statistics like signal frequencies and average method
Philip Withnall c011118
call times.
Philip Withnall c011118
Philip Withnall c011118
Philip Withnall c011118
%prep
Philip Withnall c011118
%setup -q
Philip Withnall c011118
Philip Withnall c011118
Philip Withnall c011118
%build
Philip Withnall c011118
%ghc_bin_build
Philip Withnall c011118
Philip Withnall c011118
Philip Withnall c011118
%install
Philip Withnall c011118
%ghc_bin_install
Philip Withnall c011118
make DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} INSTALL="install -p" install
Philip Withnall c011118
#%%find_lang %%{name}
Philip Withnall c011118
5d37945
Philip Withnall c011118
%post
Philip Withnall c011118
update-desktop-database &> /dev/null || :
Philip Withnall c011118
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
Philip Withnall c011118
Philip Withnall c011118
%postun
Philip Withnall c011118
update-desktop-database &> /dev/null || :
Philip Withnall c011118
if [ $1 -eq 0 ] ; then
Philip Withnall c011118
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
Philip Withnall c011118
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
Philip Withnall c011118
fi
Philip Withnall c011118
Philip Withnall c011118
%posttrans
Philip Withnall c011118
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
Philip Withnall c011118
Philip Withnall c011118
Philip Withnall c011118
%check
Philip Withnall c011118
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
Philip Withnall c011118
%if %{with tests}
Philip Withnall c011118
%cabal test
Philip Withnall c011118
%endif
Philip Withnall c011118
Philip Withnall c011118
Philip Withnall c011118
#%%files -f %%{name}.lang
Philip Withnall c011118
%files
Philip Withnall c011118
%doc LICENSE
Philip Withnall c011118
%{_bindir}/%{name}
Philip Withnall c011118
%{_bindir}/%{name}-pcap
Philip Withnall f4e7402
%{_datadir}/%{name}-%{version}/
Philip Withnall c011118
%exclude %{_datadir}/%{name}-%{version}/LICENSE
Philip Withnall c011118
%{_datadir}/appdata/%{name}.appdata.xml
Philip Withnall c011118
%{_datadir}/applications/%{name}.desktop
Philip Withnall c011118
%{_datadir}/icons/hicolor/*/apps/%{name}.png
5d37945
%{_datadir}/icons/hicolor/scalable/apps/%{name}*.svg
Philip Withnall c011118
%{_mandir}/man1/%{name}-pcap.1*
Philip Withnall c011118
Philip Withnall c011118
Philip Withnall c011118
%changelog
03c18bd
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.8-3
03c18bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
03c18bd
0d61b0d
* Mon Apr 20 2015 Jens Petersen <petersen@redhat.com> - 0.4.8-2
0d61b0d
- rebuild
0d61b0d
5d37945
* Thu Apr  2 2015 Jens Petersen <petersen@redhat.com> - 0.4.8-1
5d37945
- update to 0.4.8
5d37945
0d96333
* Sat Feb 14 2015 Jens Petersen <petersen@redhat.com> - 0.4.7-6
0d96333
- patch from git to build with pango/glib 0.13
07db642
Philip Withnall 52b04e6
* Fri Dec 12 2014 Philip Withnall <philip@tecnocode.co.uk> - 0.4.7-5
Philip Withnall 52b04e6
- Rebuilt for libHSbase changes
Philip Withnall 52b04e6
Philip Withnall a88c8b1
* Sun Sep 21 2014 Philip Withnall <philip@tecnocode.co.uk> - 0.4.7-4
Philip Withnall a88c8b1
- Rebuilt for ghc-setlocale 1.0.0.1
Philip Withnall a88c8b1
6a4fd69
* Mon Sep  8 2014 Jens Petersen <petersen@redhat.com> - 0.4.7-3
6a4fd69
- rebuild (for libHSdbus bump)
6a4fd69
6a4fd69
* Mon Sep 1 2014 Philip Withnall <philip@tecnocode.co.uk> - 0.4.7-2
Philip Withnall 84e3ab3
- Rebuilt for ghc-setlocale 1.0.0
Philip Withnall 84e3ab3
Philip Withnall c011118
* Tue Aug 12 2014 Philip Withnall <philip@tecnocode.co.uk> - 0.4.7-1
Philip Withnall c011118
- spec file generated by cabal-rpm-0.8.11