3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
6 %define pnam Gtk2-TrayIcon
7 Summary: Gtk2::TrayIcon - Perl interface to the EggTrayIcon library
8 Summary(pl.UTF-8): Gtk2::TrayIcon - interfejs perlowy do biblioteki EggTrayIcon
9 Name: perl-Gtk2-TrayIcon
13 Group: Development/Languages/Perl
14 Source0: http://dl.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz
15 # Source0-md5: 522c328f14681a25d76eeaf317e05049
16 URL: http://gtk2-perl.sourceforge.net/
17 BuildRequires: libglade2-devel >= 2.0.0
18 BuildRequires: perl-Glib >= 1.00
19 BuildRequires: perl-Gtk2 >= 1.00
20 BuildRequires: perl-ExtUtils-Depends >= 0.1
21 BuildRequires: perl-ExtUtils-PkgConfig >= 0.1
22 BuildRequires: perl-devel >= 1:5.8.0
23 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Gtk2::TrayIcon module allows a Perl developer to embed an arbitrary
28 widget in a System Tray like the GNOME notification area.
30 %description -l pl.UTF-8
31 Moduł Gtk2::TrayIcon umożliwia programistom perlowym umieszczanie
32 dowolnych kontrolek w Zasobniku Systemowym (System Tray), takim jak w
33 obszarze powiadamiania GNOME.
36 %setup -q -n %{pnam}-%{version}
39 %{__perl} Makefile.PL \
44 OPTIMIZE="%{rpmcflags}"
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
51 %{__make} pure_install \
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
59 %doc ChangeLog README TODO
60 %{perl_vendorarch}/Gtk2/TrayIcon.pm
61 %dir %{perl_vendorarch}/Gtk2/TrayIcon
62 %{perl_vendorarch}/Gtk2/TrayIcon/Install
63 %dir %{perl_vendorarch}/auto/Gtk2/TrayIcon
64 %attr(755,root,root) %{perl_vendorarch}/auto/Gtk2/TrayIcon/*.so
65 %{perl_vendorarch}/auto/Gtk2/TrayIcon/*.bs
66 %{_mandir}/man3/Gtk2::TrayIcon*.3pm*