20fdc78
# generated by cabal-rpm-0.11.1
Philip Withnall c011118
# https://fedoraproject.org/wiki/Packaging:Haskell
Philip Withnall c011118
a6e9a88
%bcond_with tests
Philip Withnall c011118
Philip Withnall c011118
Name:           bustle
805662a
Version:        0.5.4
b856206
Release:        6%{?dist}
a6e9a88
Summary:        Draw 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
805662a
BuildRequires:  ghc-gio-devel
Philip Withnall c011118
BuildRequires:  ghc-glib-devel
805662a
BuildRequires:  ghc-gtk3-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
8ddc454
%cabal_test
Philip Withnall c011118
Philip Withnall c011118
Philip Withnall c011118
#%%files -f %%{name}.lang
Philip Withnall c011118
%files
a6e9a88
%license LICENSE
a6e9a88
%doc README.md LICENSE.bundled-libraries
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
b856206
* Mon Aug 14 2017 Jens Petersen <petersen@redhat.com> - 0.5.4-6
b856206
- reenable i686 (#1427000)
b856206
267405c
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-5
267405c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
267405c
5c3639b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-4
5c3639b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5c3639b
20fdc78
* Fri Feb 24 2017 Jens Petersen <petersen@redhat.com> - 0.5.4-3
20fdc78
- refresh to cabal-rpm-0.11.1
f7a42bb
- exclude i686 due to missing deps (gcc7 __float128)
20fdc78
1f64a51
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-2
1f64a51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
1f64a51
805662a
* Tue Jun 21 2016 Jens Petersen <petersen@redhat.com> - 0.5.4-1
805662a
- update to 0.5.4
805662a
e5e8360
* Mon Mar  7 2016 Jens Petersen <petersen@redhat.com> - 0.4.8-7
e5e8360
- rebuild
e5e8360
0eccf27
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.8-6
0eccf27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0eccf27
a6e9a88
* Wed Jul 22 2015 Jens Petersen <petersen@redhat.com> - 0.4.8-5
a6e9a88
- rebuild
a6e9a88
Philip Withnall e0bb2b7
* Fri Jul  3 2015 Philip Withnall <philip@tecnocode.co.uk> - 0.4.8-4
Philip Withnall e0bb2b7
- Rebuilt for ghc-setlocale 1.0.0.3
Philip Withnall e0bb2b7
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