Blob Blame History Raw
Name:           perl-Gtk2-Sexy
Version:        0.05
Release:        1%{?dist}
Summary:        Perl interface to the sexy widget collection 

Group:          Development/Libraries
License:        LGPLv2+
URL:            http://search.cpan.org/dist/Gtk2-Sexy/
Source0: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Gtk2-Sexy-%{version}.tar.gz        
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

# non-perl
BuildRequires:  libsexy-devel, libxml2-devel

BuildRequires:  perl(Glib::MakeHelper)
BuildRequires:  perl(Gtk2::CodeGen)
BuildRequires:  perl(ExtUtils::Depends)
BuildRequires:  perl(ExtUtils::PkgConfig)
# test
BuildRequires:  perl(Gtk2::TestHelper)

Requires:  perl(Gtk2)

%description
This module allows a perl developer to access the widgets of the sexy widget
collection.

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

# keep rpmlint happy...
chmod -x examples/*

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}

# make -debuginfo whole....
cp xs/* .

%install
rm -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
%{_fixperms} %{buildroot}/*


%check
make test


%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc ChangeLog examples README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Gtk2
%{_mandir}/man3/*.3*


%changelog
* Sun Jan 25 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.05-1
- update to 0.05

* Thu Oct 23 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.04-1
- update to 0.04

* Tue Jun 17 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.03-1
- update to 0.03

* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.02-8
Rebuild for new perl

* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.02-7
- Autorebuild for GCC 4.3

* Tue Aug 21 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.02-6
- bump

* Thu Aug 31 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.02-5
- bump for mass rebuild

* Mon Jul 31 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.02-4
- bump for build

* Mon Jul 31 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.02-3
- add an explicit dep on perl(Gtk2)
- add additional br, plus fix -debuginfo package

* Fri Jul 28 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.02-2
- add missing br

* Thu Jul 27 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.02-1
- Initial spec file for F-E