# # Conditional build: %bcond_with tests # perform "make test" (requires X server) # %include /usr/lib/rpm/macros.perl %define pnam Gnome2 Summary: Perl interface to the 2.x series of the Gnome libraries Summary(pl): Perlowy interfejs do bibliotek GNOME 2.x Name: perl-%{pnam} Version: 0.90 Release: 0.1 License: GPL Group: Development/Languages/Perl Source0: http://dl.sourceforge.net/gtk2-perl/%{pnam}-%{version}.tar.gz # Source0-md5: 2e2219cc133afef04e6ac7b62ffacfc5 URL: http://gtk2-perl.sf.net/ BuildRequires: gtk+2-devel BuildRequires: libgnomeui-devel >= 2.0.0 BuildRequires: perl-ExtUtils-Depends >= 0.1 BuildRequires: perl-ExtUtils-PkgConfig >= 1.00 BuildRequires: perl-Glib >= 1.020 BuildRequires: perl-Gnome2-VFS >= 0.10 BuildRequires: perl-Gtk2 >= 1.021 BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description The Gnome2 Perl module allows a perl developer to use the GNOME 2 libraries. %description -l pl Moduł Perla Gnome2 pozwala programistom perlowym na używanie bibliotek środowiska GNOME 2. %prep %setup -q -n %{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} \ OPTIMIZE="%{rpmcflags}" %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/%{pnam}/{*,*/*}.pod %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc AUTHORS ChangeLog README TODO %dir %{perl_vendorarch}/%{pnam}/Install %attr(755,root,root) %{perl_vendorarch}/auto/%{pnam}/*.so %{perl_vendorarch}/auto/%{pnam}/*.bs %{perl_vendorarch}/%{pnam}/Install/* %{perl_vendorarch}/%{pnam}.pm %{_mandir}/man3/*