The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
Summary: Gtk2-GladeXML Perl module
Name: perl-Gtk2-GladeXML
Version: @VERSION@
Release: 1
Packager: gtk-perl-list@gnome.org
License: LGPL
Group: Development/Libraries
URL: http://search.cpan.org/dist/Gtk2-GladeXML/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: perl >= 2:5.8.0
BuildRequires: libglade2-devel => @GLADE@
BuildRequires: perl-ExtUtils-Depends >= @PERL_EXTUTILS_DEPENDS@
BuildRequires: perl-ExtUtils-PkgConfig >= @PERL_EXTUTILS_DEPENDS@
BuildRequires: perl-Glib >= @PERL_GLIB@
BuildRequires: perl-Gtk2 >= @PERL_GTK@
Requires: libglade2 => %(pkg-config --modversion libglade-2.0)
Requires: perl-Glib >= @PERL_GLIB@
Requires: perl-Gtk2 >= @PERL_GTK@
Requires: %(perl -MConfig -le 'if (defined $Config{useithreads}) { print "perl(:WITH_ITHREADS)" } else { print "perl(:WITHOUT_ITHREADS)" }')
Requires: %(perl -MConfig -le 'if (defined $Config{usethreads}) { print "perl(:WITH_THREADS)" } else { print "perl(:WITHOUT_THREADS)" }')
Requires: %(perl -MConfig -le 'if (defined $Config{uselargefiles}) { print "perl(:WITH_LARGEFILES)" } else { print "perl(:WITHOUT_LARGEFILES)" }')
Source0: @SOURCE@

%description
Glade is open source project that provides utilities for rapid user interface
development. After designing an application with glade-2 the layout and
configuration is saved in a XML formatted file. libglade is a library to load
and use files of this particular XML format at application run time. This
module is a set of mappings of libglade. More specifically the gladexml portion
of libglade. These mappings allow access to libglade from PERL code.  Better
yet you can load a file's contents into a PERL scalar do a few magical regular
expressions to customize things and the load up the app. It doesn't get any
easier. 

%prep
%setup -q -n Gtk2-GladeXML-%{version}

%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix} 
make OPTIMIZE="$RPM_OPT_FLAGS"
make test

%install
%makeinstall
 
[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress

find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;

find $RPM_BUILD_ROOT/usr -type f -print | \
	sed "s@^$RPM_BUILD_ROOT@@g" | \
	grep -v perllocal.pod | \
	grep -v "\.packlist" > %{name}-%{version}-filelist
if [ "$(cat %{name}-%{version}-filelist)X" = "X" ] ; then
	exit -1
fi

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}-%{version}-filelist
%defattr(-,root,root)

%changelog
* @DATE@ gtk-perl-list@gnome.org - @VERSION@
- Specfile autogenerated.