2 # - tests fail, likely need dbus server or sth
5 %bcond_with tests # do not perform "make test"
9 Summary: Desktop::Notify - Communicate with the Desktop Notifications framework
10 Name: perl-Desktop-Notify
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-authors/id/S/SA/SACAVILIA/Desktop-Notify-%{version}.tar.gz
17 # Source0-md5: 8847fe21dcd8572fec8c4e5f082aa24d
18 URL: http://search.cpan.org/dist/Desktop-Notify/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-Class-Accessor
23 BuildRequires: perl-Net-DBus
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 This module provides a Perl interface to the Desktop Notifications
32 The framework allows applications to display pop-up notifications on
33 an X desktop. This is implemented with two components: a daemon that
34 displays the notifications, and a client library used by applications
35 to send notifications to the daemon. These components communicate
36 through the DBus message bus protocol.
38 More information is available from
39 <http://trac.galago-project.org/wiki/DesktopNotifications>
41 This module serves the same purpose as libnotify, in an
42 object-oriented Perl interface. It is not, however, an interface to
43 libnotify itself, but a separate implementation of the specification
47 %setup -q -n %{pdir}-%{pnam}-%{version}
50 %{__perl} Makefile.PL \
54 %{?with_tests:%{__make} test}
57 rm -rf $RPM_BUILD_ROOT
59 %{__make} pure_install \
60 DESTDIR=$RPM_BUILD_ROOT
63 rm -rf $RPM_BUILD_ROOT
66 %defattr(644,root,root,755)
68 %dir %{perl_vendorlib}/Desktop
69 %{perl_vendorlib}/Desktop/*.pm
70 %{perl_vendorlib}/Desktop/Notify