3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam TrayManager
8 Summary: Gtk2::TrayManager - Perl bindings for EggTrayManager
9 Summary(pl.UTF-8): Gtk2::TrayManager - Dowiązania Perla dla EggTrayManager
10 Name: perl-Gtk2-TrayManager
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 88cf41ab0d72572ac3d2e9ab9b3ab8f0
17 URL: http://gtk2-perl.sourceforge.net/
18 BuildRequires: libglade2-devel >= 2.0.0
19 BuildRequires: perl-Glib >= 1.00
20 BuildRequires: perl-Gtk2 >= 1.00
21 BuildRequires: perl-devel >= 1:5.8.0
22 BuildRequires: perl-ExtUtils-Depends
23 BuildRequires: perl-ExtUtils-PkgConfig
24 BuildRequires: rpm-perlprov >= 4.1-13
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Gtk2::TrayManager allows a Perl developer to create notification area
31 %description -l pl.UTF-8
32 Gtk2::TrayManager pozwala programistom perlowym na tworzenie programów
33 wykorzystujących obszar powiadamiania.
36 %setup -q -n %{pdir}-%{pnam}-%{version}
39 %{__perl} Makefile.PL \
44 OPTIMIZE="%{rpmcflags}"
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
59 %{perl_vendorarch}/Gtk2/TrayManager.pm
60 %dir %{perl_vendorarch}/Gtk2/TrayManager
61 %{perl_vendorarch}/Gtk2/TrayManager/Install
62 %dir %{perl_vendorarch}/auto/Gtk2/TrayManager
63 %attr(755,root,root) %{perl_vendorarch}/auto/Gtk2/TrayManager/*.so