--- /dev/null
+#
+# Conditional build:
+# _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.30
+Release: 0.1
+License: GPL
+Group: Development/Languages/Perl
+Source0: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/%{pnam}-%{version}.tar.gz
+# Source0-md5: 8bf851c4864076c3ef0d74c9e5050ba4
+BuildRequires: gtk+2-devel
+BuildRequires: perl-devel >= 5.8.0
+BuildRequires: perl-ExtUtils-Depends
+BuildRequires: perl-Glib >= 0.95
+BuildRequires: perl-Gtk2 >= 0.95
+BuildRequires: libgnomeui-devel >= 2.0.0
+BuildRequires: pkgconfig
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Gnome2 module allows a perl developer to use the Gnome libraries.
+
+%description -l pl
+Modu³ 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
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS TODO README druid.pl
+%{perl_vendorarch}/%{pnam}.pm
+%attr(755,root,root) %{perl_vendorarch}/auto/%{pnam}/*.so
+%{perl_vendorarch}/auto/%{pnam}/*.bs
+%{_mandir}/man3/*